From a7a2832e552dc9ee209829870d9af8591424aaad Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Mon, 25 Aug 2025 23:21:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(AgentMessageComponent):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=9C=AA=E5=A4=84=E7=90=86=E6=B6=88=E6=81=AF=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=89=8D=E5=90=8E=E7=A9=BA=E6=A0=BC=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/AgentMessageComponent.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/src/components/AgentMessageComponent.vue b/web/src/components/AgentMessageComponent.vue index 029cd338..bf3e6c71 100644 --- a/web/src/components/AgentMessageComponent.vue +++ b/web/src/components/AgentMessageComponent.vue @@ -17,7 +17,6 @@ - { const parsedData = computed(() => { // Start with default values from the prop to avoid mutation. - let content = props.message.content || ''; + let content = props.message.content.trim() || ''; let reasoning_content = props.message.additional_kwargs?.reasoning_content || ''; // Regex to find ... or an unclosed ... at the end of the string.