From 30d85173ee5ea2075f174faa23ce6ab46312b8ac Mon Sep 17 00:00:00 2001 From: Huarch Date: Wed, 29 Apr 2026 15:42:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BC=9A=E8=AF=9D=20ID=20?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=94=99=E8=AF=AF=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chat/GlobalChatbox.tsx | 2 +- tsconfig.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/chat/GlobalChatbox.tsx b/src/components/chat/GlobalChatbox.tsx index d01aa9b..2835684 100644 --- a/src/components/chat/GlobalChatbox.tsx +++ b/src/components/chat/GlobalChatbox.tsx @@ -396,7 +396,7 @@ export const GlobalChatbox: React.FC = ({ open, onClose }) => { handleStopSpeech(); stopListening(); setMessages([]); - setConversationId(undefined); + setSessionId(undefined); setInput(""); setIsStreaming(false); handleHeaderMenuClose(); diff --git a/tsconfig.json b/tsconfig.json index d90975c..f25bd34 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,10 @@ "esModuleInterop": true, "module": "esnext", "moduleResolution": "bundler", + "types": [ + "jest", + "node" + ], "resolveJsonModule": true, "isolatedModules": true, "jsx": "react-jsx",