From b0f21309f721fe52d757b16ce81e07278dba2893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=96=E6=B3=BD=E6=B6=9B?= Date: Wed, 25 Feb 2026 19:09:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(agent):=20=E4=BF=AE=E5=A4=8D=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E4=B9=9F=E5=8F=98=E6=88=90=E5=9C=A8=E6=B5=81=E5=BC=8F?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/AgentChatComponent.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/components/AgentChatComponent.vue b/web/src/components/AgentChatComponent.vue index 4b5f7275..833d3628 100644 --- a/web/src/components/AgentChatComponent.vue +++ b/web/src/components/AgentChatComponent.vue @@ -825,7 +825,10 @@ const enqueueLoadingChunkForTyping = (threadId, chunk) => { } const msg = chunk.msg || {} - const contentChars = splitChars(msg.content) + const msgType = String(msg.type || '').toLowerCase() + const isToolMessage = msgType === 'tool' || msgType.includes('tool') + const streamText = typeof chunk.response === 'string' ? chunk.response : '' + const contentChars = !isToolMessage ? splitChars(streamText) : [] if (contentChars.length === 0) { typingChunkQueue.push({ threadId, chunk, isChar: false }) scheduleTypingRender() @@ -838,6 +841,7 @@ const enqueueLoadingChunkForTyping = (threadId, chunk) => { isChar: true, chunk: { ...chunk, + response: char, msg: { ...msg, content: char