fix: include state snapshot in workflow event URLs for chat hooks

This commit is contained in:
twwu 2026-01-21 16:45:38 +08:00
parent 307f0d5827
commit e63f7b2249
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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) => {