mirror of
https://mirror.skon.top/github.com/langgenius/dify.git
synced 2026-04-20 23:40:16 +08:00
refactor: remove replay parameter from workflow event URL
This commit is contained in:
@@ -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),
|
||||
)
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user