Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: chat restart (#2488)

zxhlyheedbe1b7707a
diff --git a/web/app/components/base/chat/chat/hooks.ts b/web/app/components/base/chat/chat/hooks.ts
index 896ef743695..00d62241c88 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()}`,