From eedbe1b7707a58838505305da67777109c53ba0d Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 20 Feb 2024 11:24:27 +0800 Subject: [PATCH] fix: chat restart (#2488) --- web/app/components/base/chat/chat/hooks.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/base/chat/chat/hooks.ts b/web/app/components/base/chat/chat/hooks.ts index 896ef74369..00d62241c8 100644 --- a/web/app/components/base/chat/chat/hooks.ts +++ b/web/app/components/base/chat/chat/hooks.ts @@ -146,8 +146,9 @@ export const useChat = ( }, [stopChat, handleResponsing]) const handleRestart = useCallback(() => { - handleStop() connversationId.current = '' + taskIdRef.current = '' + handleStop() const newChatList = config?.opening_statement ? [{ id: `${Date.now()}`,