When user stop streaming response from
- refresh app on browser
- click stop button which essentially run
stopGeneration()method
These will brick all subsequent messages on all clients even after refresh page. User will see error This operation was aborted.
From console, user will see
Error in async callback: Error: This operation was aborted
at useChat.useAsyncCallback[runChatCompletion] (use-chat.ts:594:19)
at useChat.useAsyncCallback[runChatCompletion].next (<anonymous>)
at fulfilled (dev-console.ts:19:1)
The only way to stop this is to restart nextjs server.
What I need to check to make sure I may did something wrong. Is this a known bug like
https://github.com/ag-ui-protocol/ag-ui/issues/733
https://github.com/CopilotKit/CopilotKit/issues/2749
♻️ Reproduction Steps Setup CopilotKit as detailed here Send any message in the chat Click the Stop button ✅ Expected Behavior A non-critical response indicating the generation was canceled by the ...