[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?

  1. I run /permissions
  2. Press twice the right arrow to select "Deny"
  3. Press <kbd>Enter</kbd> to "Add a new rule..."
  4. Start typing Bash(ansible-playbook:*) but just as I type the n letter, it exits the dialog. Typing n right 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

  1. Run claude
  2. Type /permissions and <kbd>Enter</kbd>
  3. Press <kbd>Enter</kbd> to "Add a new rule..." (the bug happens with any permission type: Allow/Ask/Deny/Workspace)
  4. 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

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗