[BUG] Typing an "n" in the input of "new permission" dialog exits it
Resolved 💬 3 comments Opened Jan 13, 2026 by bfontaine Closed Jan 27, 2026
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?
- I run
/permissions - Press twice the right arrow to select "Deny"
- Press <kbd>Enter</kbd> to "Add a new rule..."
- Start typing
Bash(ansible-playbook:*)but just as I type thenletter, it exits the dialog. Typingnright away has the same effect
What Should Happen?
It should let me enter the command without exiting the dialog unless I press <kbd>Esc</kbd>.
Error Messages/Logs
Steps to Reproduce
- Run
claude - Type
/permissionsand <kbd>Enter</kbd> - Press <kbd>Enter</kbd> to "Add a new rule..." (the bug happens with any permission type: Allow/Ask/Deny/Workspace)
- Type <kbd>n</kbd>
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.7
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
- I use the Terminator (version 2.1.3) terminal app on Ubuntu 24.04.3 (update: same issue with Ghostty 1.2.3)
- Screencast: https://github.com/user-attachments/assets/f6b2d757-0209-4550-af3a-18120c1ab3bc
- Issue reproduced in Claude Code 2.1.6 and 2.1.7
- Issue not reproducible in Claude Code 2.1.9 on macOS with iTerm
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗