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
[Bug] Cancel button does not always stop ongoing execution #864
The Cancel/Stop button in the chat input does not always cancel the current execution.
Sometimes, after clicking the red stop button, Nanocoder continues executing the current request, tool calls, or pending operations instead of stopping completely.
Steps to Reproduce
Start a request that triggers a longer agent execution or multiple tool calls.
While the request is still running, click the red Stop/Cancel button.
Observe the execution after cancellation.
Expected Behavior
Clicking the Cancel/Stop button should immediately stop the entire current execution, including:
Ongoing model generation
Pending tool calls
Subsequent tool calls queued by the agent
Any remaining execution loop for the current request
The UI should return to an idle state so the user can submit a new request.
Actual Behavior
The cancel button sometimes appears to be clicked successfully, but the current execution continues. Tool calls or other operations may continue running after cancellation.
In some cases, the UI also shows a warning such as:
"Nanocoder: Please approve or deny the pending tool before sending a..."
This can leave the user unable to properly stop the current request or immediately start a new one.
Logs/Screenshots
Additional Context
Cancellation should be treated as a hard stop for the current user request. Once the user clicks Cancel, no new model generation or tool execution should continue for that request.
Activity
fix: make the stop button end the turn it was pressed during (Nano-Co…
Resolve conflicts with upstream main for timeline undo (#3)