[BUG] Pasted text cannot be added in `/permissions` allow list
Resolved 💬 4 comments Opened Mar 10, 2026 by BoruiXu Closed Apr 7, 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?
When adding an allow command in /permissions (for example, Bash or WebFetch), the input does not work correctly if the command is pasted.
Currently, the command can only be added successfully when it is typed manually from the keyboard. If the same content is pasted, the add action fails or does not complete as expected.
What Should Happen?
Pasted text should work the same as manually typed text, and the command should be added successfully.
Error Messages/Logs
Steps to Reproduce
- Open
/permissions - Try to add an
allowcommand such asBashorWebFetch - Paste the command text into the input field
- Attempt to confirm/add it
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.72 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗