[Bug] Permission prompt pattern field edits ignored when saving
Bug Description
Bug: Editable pattern field in permission prompt has no effect
When Claude requests permission to run a Bash command, the prompt displays an editable text field showing the suggested allow pattern (e.g. gh pr). Editing this field to a more specific pattern (e.g. gh pr check ) and then clicking "Always allow" saves the original suggested pattern, not the edited one. The edited text is silently ignored.
Steps to reproduce:
Trigger a permission prompt for any Bash command
Edit the suggested pattern in the text field to something more specific
Click "Always allow"
Check .claude/settings.local.json — the saved pattern matches the original suggestion, not the edited value
Expected: The edited pattern is saved to settings
Actual: The edit is ignored; original pattern is saved
Environment: Terminal, Windows/WSL
Version: 2.1.76 (Claude Code)
Environment Info
- Platform: linux
- Terminal: windows-terminal
- Version: 2.1.76
- Feedback ID: 038289fa-8b57-471d-9c32-38a0ae55b4d6
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗