diff --git a/web/app/components/workflow/panel/debug-and-preview/__tests__/hooks/handle-resume.spec.ts b/web/app/components/workflow/panel/debug-and-preview/__tests__/hooks/handle-resume.spec.ts index c5c9198c3b..328de5a0af 100644 --- a/web/app/components/workflow/panel/debug-and-preview/__tests__/hooks/handle-resume.spec.ts +++ b/web/app/components/workflow/panel/debug-and-preview/__tests__/hooks/handle-resume.spec.ts @@ -122,7 +122,7 @@ describe('useChat – handleResume', () => { }) expect(mockSseGet).toHaveBeenCalledWith( - '/workflow/wfr-1/events?include_state_snapshot=true&replay=true', + '/workflow/wfr-1/events?include_state_snapshot=true', {}, expect.any(Object), ) 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 f18c7f26f0..2529d505be 100644 --- a/web/app/components/workflow/panel/debug-and-preview/hooks.ts +++ b/web/app/components/workflow/panel/debug-and-preview/hooks.ts @@ -680,10 +680,8 @@ export const useChat = ( onGetSuggestedQuestions, }: SendCallback, ) => { - // Re-subscribe to workflow events for the specific message. - // replay=true tells the backend to read from the beginning of the Redis Stream - // so all retained events are replayed on reconnection (e.g. page refresh). - const url = `/workflow/${workflowRunId}/events?include_state_snapshot=true&replay=true` + // Re-subscribe to workflow events for the specific message + const url = `/workflow/${workflowRunId}/events?include_state_snapshot=true` const otherOptions: IOtherOptions = { getAbortController: (abortController) => {