fix(cli): block Tab key during AI streaming to prevent mode switch interruption#2211
Closed
Drakaniia wants to merge 1 commit intoQwenLM:mainfrom
Closed
fix(cli): block Tab key during AI streaming to prevent mode switch interruption#2211Drakaniia wants to merge 1 commit intoQwenLM:mainfrom
Drakaniia wants to merge 1 commit intoQwenLM:mainfrom
Conversation
This was referenced Mar 10, 2026
Collaborator
|
@Drakaniia Hi, I understand your situation, but changing the approval mode during a run is actually a pretty common workflow, such as switching from Perhaps we should consider using a separate shortcut for switching approval modes on Windows. On macOS, the shortcut is |
This was referenced Mar 11, 2026
This was referenced Mar 12, 2026
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.
TLDR
Fixes issue #2210 where accidentally pressing Tab while AI is actively responding would switch approval modes and interrupt the ongoing response and file edits.
Dive Deeper
The
shouldBlockTabfunction inAppContainer.tsxpreviously only checked if autocomplete suggestions were visible. This PR adds an additional check for when the AI is actively streaming/responding.Changes made:
packages/cli/src/ui/AppContainer.tsxline 677shouldBlockTabto check both:hasSuggestionsVisible(autocomplete is showing)streamingState === StreamingState.Responding(AI is actively responding)This ensures Tab key mode cycling is blocked during active AI operations, preventing accidental interruption of YOLO/auto-accept-edits mode workflows.
Reviewer Test Plan
qwen -yTesting Matrix
Linked issues / bugs
Fixes #2210