Skip to content

"Don't ask again" permission prompt does not persist — keeps re-prompting for the same command #29400

Description

@mc15

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

  1. Run a session that triggers a cd command in Bash
  2. When prompted, select "Yes, and don't ask again for: cd:*"
  3. Verify "Bash(cd:*)" is now in .claude/settings.local.json
  4. In a subsequent session (or even the same session), trigger another cd command
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions