From ffa8738a78e48460119286c8356d95b375ea839a Mon Sep 17 00:00:00 2001 From: balibabu Date: Wed, 22 Apr 2026 23:22:51 +0800 Subject: [PATCH] Fix: Remove duplicate text output from the thought model on the chat page. (#14301) ### What problem does this PR solve? Fix: Remove duplicate text output from the thought model on the chat page. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/hooks/logic-hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/hooks/logic-hooks.ts b/web/src/hooks/logic-hooks.ts index 1ef34170c0..dd4e6446f4 100644 --- a/web/src/hooks/logic-hooks.ts +++ b/web/src/hooks/logic-hooks.ts @@ -275,7 +275,7 @@ export const useSendMessageWithSse = () => { if (typeof d !== 'boolean') { setAnswer((prev) => { const prevAnswer = prev.answer || ''; - const currentAnswer = d.answer || ''; + const currentAnswer = d.final ? '' : d.answer || ''; let newAnswer: string; if (prevAnswer && currentAnswer.startsWith(prevAnswer)) {