Skip to content

[BUG] Claude Repeatedly asks for permission to run commands, even when I've already granted it #819

Description

@f1sherman

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • Claude CLI version: 0.2.73 (Claude Code)
  • Operating System: MacOS 15.4.1
  • Terminal: iTerm2/tmux

Bug Description

In my project directory, I have a script (bin/rspec) to run tests. For some reason, even though I always choose Yes, and don't ask again for rspec commands in <path>, it keeps asking for permission. One strange thing is that Claude Code omits the bin/ in the message. I wonder if that's related?

Steps to Reproduce

  1. Ask Claude to run tests with bin/rspec <path>
  2. Answer Yes, and don't ask again for rspec commands in <path>
  3. Ask Claude to run tests again
  4. Claude prompts again on whether it can run the command

Expected Behavior

After step 3 I should not be prompted again

Actual Behavior

After step 3 I am prompted again

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions