You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The stream is stuck when trigger stop/ abort during tool call #1614
Describe the bug
I'm using AI chat agent in my project and trying to let user cancel/ abort the response from agent.
I tried these both ways:
Use stop() in useAgentChat hook
Make a callable in agent for triggering abortAllRequests()
Both works well when there is no tool call happening, the isStreaming flag turns false immediately.
But if there is tool call running, the isStreaming is stuck at true
In my case, the tools are provided by MCP server
To Reproduce
Steps to reproduce the behavior:
Chat with Agent
Wait till it's running tool
Trigger stop/ abort but isStreaming does not turn false
Expected behavior
The isStreaming always turns false when trigger stop/ abort.
Screenshots
Let me know which kind of data you want, cause I'm not sure what to attach here
Version:
0.13.2
Additional context
Add any other context about the problem here.
Thanks for reporting this! I've taken a look and narrowed it down to a client bug (surprisingly). If you're able to take a look and test that the preview release of ai-chat solves the issue for you, that would be very helpful!
Activity
cjol commentedon Jun 2, 2026
Thanks for reporting this! I've taken a look and narrowed it down to a client bug (surprisingly). If you're able to take a look and test that the preview release of
ai-chatsolves the issue for you, that would be very helpful!