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
cd command 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
cd command
- 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
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 forcdcommands despite the rule being present.Steps to Reproduce
cdcommand in Bash"Bash(cd:*)"is now in.claude/settings.local.jsoncdcommandcdExpected 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
cdcommands despite the allow rule being present in settings.Environment
🤖 Generated with Claude Code