[BUG] Escape key can deny a confirmation while the status window is open
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 a prompt is being executed, in the mode where the user has to accept every edit, if you open the status window using /status, scroll to the Usage tab & only then have claude pop open a permission request, hitting escape on the keyboard will deny the request, as oppose to closing the status window. This is especially annoying given by default, the status window blocks what you are about to accept unless you manually scroll up the content.
What Should Happen?
I believe correct behavior is that the status window should close before you have any impact on the permission dialog behind it.
Error Messages/Logs
Steps to Reproduce
- Write a prompt that requires claude ask you for permissions
- Before a permission confirmation comes up, open the status window using /status and scroll to the Usage tab (IDK if this is essential, this is just my observation)
- Hit Esc on your keyboard. you should see your prompt be denied, while the status window remains open!
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
2.1.195
Claude Code Version
2.1.195
Platform
Anthropic API
Operating System
Other
Terminal/Shell
PyCharm terminal
Additional Information
I'm running claude on a linux machine which I remote into on a windows machine, I use pycharm for this, which is also providing the terminal claude runs inside. Claude runs on the debian based machine holding the codebase, not the windows machine.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗