-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Milestone
Description
Problem Statement
Users should be able to cancel tool calls that are currently executing, rather than having to wait for them to complete or fail.
Feature Idea
Currently, when a tool call is initiated, users must wait for it to complete entirely, even if:
The tool call is taking longer than expected
The user realizes they made an error in their request
The tool call appears to be stuck or unresponsive
The user wants to modify their approach mid-execution
This leads to poor user experience and wasted computational resources.
Proposed Solution
Implement a cancellation mechanism that allows users to interrupt running tool calls through:
The "Stop" button in the chat box during tool execution
Expected Behavior
When a tool call is cancelled:
- The execution stops immediately or at the next safe breakpoint
- Any partial results are preserved if useful
- The system returns to a ready state for new commands
- Appropriate cleanup is performed to free resources
- User receives confirmation that the cancellation was successful