[BUG] Plan mode approval dialog intercepts keystrokes when user is typing in chat input
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When the plan mode approval dialog appears, if I'm actively typing in the chat input, my keystrokes get captured by the dialog and accidentally approve or reject the plan.
A regular keystroke mid-sentence can dismiss the dialog without any deliberate intent to do so.
What Should Happen?
The approval dialog should require a deliberate, explicit action to confirm — a mouse click or a keyboard shortcut that wouldn't naturally occur while typing a sentence.
Keyboard focus should not silently shift to the dialog while the user is mid-keystroke in the chat input.
Error Messages/Logs
Steps to Reproduce
- Start a long planning session with multiple back-and-forth refinements
- While the agent is finalizing the plan, begin typing a follow-up message in the chat input
- The plan approval dialog appears mid-keystroke
- A normal keystroke accidentally approves or rejects the plan
Claude Model
Not sure / Multiple models
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.80 (Claude Code)
Platform
Other
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
I’m in the VS Code Extension
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗