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
Add Force Stop Capability to Interrupt Agent Reasoning or Tool Calls #2853
** Please make sure you read the contribution guide and file the issues in the right place. ** Contribution guide.
Is your feature request related to a problem? Please describe.
Currently, once an agent starts thinking, reasoning, or calling a tool, there is no way to stop it mid-execution. This can lead to wasted time and resources if the reasoning loop takes too long or when the model hallucinates, if a tool call hangs, or if the user realizes they want to cancel the current request.
Describe the solution you'd like
Introduce a "force stop" mechanism that allows users (or the calling application) to immediately halt an agent’s reasoning process or tool invocation. This could be an API call, a UI button (for interactive sessions), or a timeout mechanism that can safely interrupt ongoing reasoning/tool usage without corrupting state.
Describe alternatives you've considered
Relying on timeouts at the system level (not ideal, as it doesn’t provide fine-grained control).
Restarting the entire agent session
Manually killing the process
Additional context
A force stop option would greatly improve developer and user experience, especially in long-running workflows, debugging scenarios, or cases where an agent mistakenly enters repetitive or non-terminating reasoning.
Reacted by Shobhit Singh, Peter Chung, Madlad, Rosemarie Wentz, Yan Liao Amorelli, Juan Pablo Anwandter, Jeremy Peters, Yuji Nagaoka, Mike Slinn, Ioana Manea and 8 more
@malto101 Thank you for reporting this. I understand the request is currently under review. Please keep me posted if anything else is needed. Thanks for your patience.
Activity
klateefa commentedon Nov 24, 2025
@malto101 Thank you for reporting this. I understand the request is currently under review. Please keep me posted if anything else is needed. Thanks for your patience.
DeanChensj commentedon Sep 2, 2026
Closing this as it is duplicate of #2425