"Don't ask again" permission prompt does not persist — keeps re-prompting for the same command
Resolved 💬 3 comments Opened Feb 27, 2026 by mc15 Closed Mar 3, 2026
Description
When selecting **"Yes, and don't ask again for: cd:\"* (option 2) on the permission prompt, Claude Code continues to re-prompt for the same command pattern in subsequent invocations.
The rule "Bash(cd:*)" does appear in .claude/settings.local.json, confirming that the selection is being saved. However, the prompt keeps appearing for cd commands despite the rule being present.
Steps to Reproduce
- Run a session that triggers a
cdcommand in Bash - When prompted, select **"Yes, and don't ask again for: cd:\"*
- Verify
"Bash(cd:*)"is now in.claude/settings.local.json - In a subsequent session (or even the same session), trigger another
cdcommand - The permission prompt appears again for
cd
Expected Behavior
Once "don't ask again" is selected and the rule is persisted to settings, Claude Code should not prompt again for commands matching that pattern.
Actual Behavior
The prompt keeps appearing for cd commands despite the allow rule being present in settings.
Environment
- macOS (Darwin 25.3.0)
- Claude Code CLI
🤖 Generated with Claude Code
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗