claude-code - 💡(How to fix) Fix [BUG] Permission model is totally broken

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

The other CLIs, Codex and Gemini, are not so restrictive. Why is yours like this? Is it user error or misunderstanding? I've tried asking Claude to help me and changes it makes to the settings file do not work!

Error Messages/Logs

Root Cause

This is a usability issue that boils over into being a security issue because it makes people more apt to run --dangerously-ignore-permissions because the UX is so bad

Code Example

"Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --oneline --all -- \"qdv1/scripts/dasp_run*.py\")",
      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --oneline --diff-filter=D --all -- \"**/dasp_run*.py\")",
      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --all --oneline -- \"scripts/modes/chamber.py\")",
      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --all --diff-filter=AD --name-only)",
      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --all --oneline -- \"qdv1/scripts/modes/chamber.py\")",
      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --all --source --oneline -- \"qdv1/scripts/modes/chamber.py\")"

...others omitted...

---

"Bash(git log *)",

---

git -C /Users/jwheeler/Projects/temeculadsp/qdv1 show 71a9a51~1:qdv1/scripts/dasp_run.py

---

git -C *

---
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Ever since I started using Claude Code, your permission model has been non-intuitive or broken. Why should I have to grant this command permission ten times in a row?

git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --oneline

Here is my .claude/settings.local.json file (permissions block)

      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --oneline --all -- \"qdv1/scripts/dasp_run*.py\")",
      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --oneline --diff-filter=D --all -- \"**/dasp_run*.py\")",
      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --all --oneline -- \"scripts/modes/chamber.py\")",
      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --all --diff-filter=AD --name-only)",
      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --all --oneline -- \"qdv1/scripts/modes/chamber.py\")",
      "Bash(git -C /Users/jwheeler/Projects/temeculadsp/qdv1 log --all --source --oneline -- \"qdv1/scripts/modes/chamber.py\")"

...others omitted...

I shouldn't have to go in and manually add:

"Bash(git log *)",

and I think if I do in some cases, it doesn't even work or the settings file gets overwritten the next time it asks me for permission.

This is a usability issue that boils over into being a security issue because it makes people more apt to run --dangerously-ignore-permissions because the UX is so bad

The other CLIs, Codex and Gemini, are not so restrictive. Why is yours like this? Is it user error or misunderstanding? I've tried asking Claude to help me and changes it makes to the settings file do not work!

What Should Happen?

It should not include option arguments when a command is granted access.

agreeing to

git -C /Users/jwheeler/Projects/temeculadsp/qdv1 show 71a9a51~1:qdv1/scripts/dasp_run.py

should add

git -C *

to the permissions file or equivalent

Error Messages/Logs

Steps to Reproduce

  1. Run claude code
  2. Ask it to do something that requires running shell command

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.142

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Permission model is totally broken