From 0f13b6b26d113c17061bd3b35183725c9318cecc Mon Sep 17 00:00:00 2001 From: twwu Date: Wed, 31 Dec 2025 16:52:22 +0800 Subject: [PATCH] fix: include workflowStore in dependency array for useChat hook to ensure proper state updates --- web/app/components/workflow/panel/debug-and-preview/hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/panel/debug-and-preview/hooks.ts b/web/app/components/workflow/panel/debug-and-preview/hooks.ts index eb0062fb5e..5d8117089a 100644 --- a/web/app/components/workflow/panel/debug-and-preview/hooks.ts +++ b/web/app/components/workflow/panel/debug-and-preview/hooks.ts @@ -550,7 +550,7 @@ export const useChat = ( }, }, ) - }, [threadMessages, chatTree.length, updateCurrentQAOnTree, handleResponding, formSettings?.inputsForm, handleRun, notify, t, config?.suggested_questions_after_answer?.enabled, fetchInspectVars, invalidAllLastRun]) + }, [threadMessages, chatTree.length, updateCurrentQAOnTree, handleResponding, formSettings?.inputsForm, handleRun, notify, t, workflowStore, fetchInspectVars, invalidAllLastRun, config?.suggested_questions_after_answer?.enabled]) const handleSubmitHumanInputForm = async (formID: string, formData: any) => { await submitHumanInputForm(formID, formData)