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()}`,