Feat cancel during process#43
Merged
Merged
Conversation
- Removed the Esc key functionality that allowed users to exit the application. - Updated the input hints to streamline user instructions by removing the Esc exit option.
- Revised input hints to include the new Ctrl+Q exit command for improved user guidance. - Implemented Ctrl+Q key binding to allow users to exit the application, enhancing usability.
…y state handling - Added cancel functionality to allow users to cancel ongoing operations using the Esc key when in specific busy states (Thinking, Streaming, ToolRunning). - Updated the TuiSessionState to handle the transition to Idle state when a run is cancelled. - Enhanced the run_blocking function to display a cancel hint in the UI, improving user experience during long-running tasks.
Owner
Author
|
tested, work great #40 Sometime it take like 1-3 second delay, but still "okaish" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by cubic
Adds in-TUI cancellation for an active run. Press Esc to cancel while the agent is Thinking, Streaming, or running tools; exit is now on Ctrl+Q.
New Features
Migration
Written for commit 97d0e59. Summary will update on new commits.