claude-code - 💡(How to fix) Fix [Bug] Auto mode bypasses explicit `ask` permissions configured by user [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#51689Fetched 2026-04-22 07:55:30
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Bug Description

Auto mode is useful, but it's buggy. Auto mode should: automatically decide permissions for most things. Auto mode should not bypass ask permissions rules. Any time permissions are explicitly configured by the user, they should be respected, and no model should be permitted to bypass them.

While there's a lot to like about auto mode, I was dismayed to switch to the tab where Claude Code was running and find out that it had silently run commands (such as git add or git commit) for which I had explicitly configured ask permissions. The fact that I've explicitly configured the permissions means that I want them to be followed. Auto mode should only apply when the user has not explicitly configured permissions.

I realize that some permissions get set inadvertently due to the way permissions prompts work. But the prompts never set ask permissions so in that case the only way for that permission to get set is that the user explicitly set it.

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.116
  • Feedback ID: c1673bcf-dc6d-40c8-b506-4e3cdb2a4cee

extent analysis

TL;DR

The auto mode should be modified to respect explicitly configured ask permissions and only apply when no explicit permissions are set by the user.

Guidance

  • Review the auto mode logic to ensure it checks for explicitly configured ask permissions before automatically deciding permissions.
  • Modify the auto mode to only apply when no explicit permissions are set by the user, respecting the user's configuration.
  • Verify that the auto mode is not bypassing ask permissions rules by testing scenarios where ask permissions are explicitly configured.
  • Consider adding a check to distinguish between explicitly set permissions and those set inadvertently due to permission prompts.

Example

No code snippet is provided as the issue does not contain specific code references.

Notes

The solution may require changes to the auto mode logic and permission handling. The exact implementation details are not provided in the issue.

Recommendation

Apply a workaround to modify the auto mode logic to respect explicitly configured ask permissions, as the issue implies a bug in the current implementation.

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] Auto mode bypasses explicit `ask` permissions configured by user [1 comments, 2 participants]