Skip to content

Permission 'don't ask again' not persisting across sessions #21080

Description

@paolino

Description

When selecting "Yes, and don't ask again for [command] in [project]" during a permission prompt, the setting does not persist across sessions. Users are prompted again in each new session despite having the permission already saved in .claude/settings.local.json.

Steps to Reproduce

  1. Run a command that triggers a permission prompt (e.g., gh pr create)
  2. Select "Yes, and don't ask again for gh pr create commands in /path/to/project"
  3. Verify the permission is added to .claude/settings.local.json (it is)
  4. Start a new Claude Code session
  5. Run the same command again
  6. Actual: Permission prompt appears again
  7. Expected: Command runs without prompting since permission is in settings file

Environment

  • The permission Bash(gh pr create *) is correctly present in .claude/settings.local.json
  • Issue persists across multiple sessions

Expected Behavior

Permissions saved via "don't ask again" should be respected in subsequent sessions when the pattern matches the command being run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:autharea:corebugSomething isn't workingduplicateThis issue or pull request already existshas reproHas detailed reproduction stepsstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions