From 345a143e38a686aebbe7e26ef93a4123aa3d100b Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Wed, 6 May 2026 13:46:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A1=A5=E4=B8=8A=E5=90=91=E4=B8=BB?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=8F=91=E9=80=81isChatting=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/workspace/input-box.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/workspace/input-box.tsx b/frontend/src/components/workspace/input-box.tsx index 4e350a4f..49ebc4f5 100644 --- a/frontend/src/components/workspace/input-box.tsx +++ b/frontend/src/components/workspace/input-box.tsx @@ -1271,8 +1271,12 @@ function HistoryButton({ - router.replace(`/workspace/chats/${threadId}?is_chatting=true`) + onClick={() =>{ + sendToParent({ + type: POST_MESSAGE_TYPES.IS_CHATTING, + isChatting: true, + }); + router.replace(`/workspace/chats/${threadId}?is_chatting=true`)} } > - router.replace(`/workspace/chats/${threadId}?is_chatting=false`) - } + onClick={() => { + sendToParent({ + type: POST_MESSAGE_TYPES.IS_CHATTING, + isChatting: false, + }); + router.replace(`/workspace/chats/${threadId}?is_chatting=false`); + }} >