From a17c37a7b3772ce07fbdaf30a244911be28cedeb Mon Sep 17 00:00:00 2001 From: markov Date: Fri, 13 Mar 2026 22:32:40 +0100 Subject: [PATCH] fix: streaming display - hide text during tool use, truncate thinking, collapse by default --- web-client-vite/src/components/ChatPanel.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web-client-vite/src/components/ChatPanel.tsx b/web-client-vite/src/components/ChatPanel.tsx index ad35e80..d825703 100644 --- a/web-client-vite/src/components/ChatPanel.tsx +++ b/web-client-vite/src/components/ChatPanel.tsx @@ -354,12 +354,12 @@ export default function ChatPanel({ chatId, projectId }: Props) { {streaming.thinking && ( -
+
- 💭 Размышления + 💭 Размышления ({streaming.thinking.length} символов)
- {streaming.thinking} + {streaming.thinking.length > 500 ? '…' + streaming.thinking.slice(-500) : streaming.thinking}
)} @@ -372,8 +372,8 @@ export default function ChatPanel({ chatId, projectId }: Props) { ))} )} - {streaming.text && ( -
{streaming.text}
+ {streaming.text && !streaming.tools.some(t => t.status === "running") && ( +
{streaming.text.length > 500 ? '…' + streaming.text.slice(-500) : streaming.text}
)} {!streaming.text && streaming.tools.length === 0 && !streaming.thinking && (
Думает...