From e63f7b22496da3583b0ecb573dec01caa2c3fa0d Mon Sep 17 00:00:00 2001 From: twwu Date: Wed, 21 Jan 2026 16:45:38 +0800 Subject: [PATCH] fix: include state snapshot in workflow event URLs for chat hooks --- web/app/components/base/chat/chat/hooks.ts | 2 +- web/app/components/workflow/panel/debug-and-preview/hooks.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/base/chat/chat/hooks.ts b/web/app/components/base/chat/chat/hooks.ts index 22e4fae0c1..e9365d98cb 100644 --- a/web/app/components/base/chat/chat/hooks.ts +++ b/web/app/components/base/chat/chat/hooks.ts @@ -221,7 +221,7 @@ export const useChat = ( ) => { const getOrCreatePlayer = createAudioPlayerManager() // Re-subscribe to workflow events for the specific message - const url = `/workflow/${workflowRunId}/events` + const url = `/workflow/${workflowRunId}/events?include_state_snapshot=true` const otherOptions: IOtherOptions = { isPublicAPI, 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 251b64b3fc..4fcb0df2ab 100644 --- a/web/app/components/workflow/panel/debug-and-preview/hooks.ts +++ b/web/app/components/workflow/panel/debug-and-preview/hooks.ts @@ -647,7 +647,7 @@ export const useChat = ( }: SendCallback, ) => { // Re-subscribe to workflow events for the specific message - const url = `/workflow/${workflowRunId}/events` + const url = `/workflow/${workflowRunId}/events?include_state_snapshot=true` const otherOptions: IOtherOptions = { getAbortController: (abortController) => {