claude-code - 💡(How to fix) Fix Bash tool calls not in allowlist executed without authorization prompt [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#56117Fetched 2026-05-05 05:57:46
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×5commented ×1

During a session, Bash tool calls for commands not present in the settings.json allowlist executed without triggering the authorization prompt. The user was not prompted to approve or deny the tool calls — they simply ran.

Root Cause

During a session, Bash tool calls for commands not present in the settings.json allowlist executed without triggering the authorization prompt. The user was not prompted to approve or deny the tool calls — they simply ran.

RAW_BUFFERClick to expand / collapse

Description

During a session, Bash tool calls for commands not present in the settings.json allowlist executed without triggering the authorization prompt. The user was not prompted to approve or deny the tool calls — they simply ran.

Commands that ran without prompting

  • git add
  • git commit
  • git push

Settings

The allowlist contained only git diff, git log, and git status for git commands. No broad allow rules (e.g. Bash(*)). No hooks configured. --dangerously-skip-permissions was not used.

Expected behavior

An authorization prompt should appear for any Bash command not matched by an allowlist rule, allowing the user to approve or deny before execution.

Actual behavior

The commands executed silently without any prompt.

Platform

macOS

Version

2.1.118

Notes

The session was running a skill, though it's unclear whether that's relevant — skill invocation shouldn't affect the authorization layer.

extent analysis

TL;DR

Review and update the settings.json allowlist to ensure it correctly handles git commands and consider adding a catch-all rule to enforce authorization prompts for unknown commands.

Guidance

  • Verify that the settings.json file is being read correctly by the application and that the allowlist rules are being applied as expected.
  • Check for any typos or incorrect formatting in the allowlist rules that might be causing the authorization prompt to be skipped.
  • Consider adding a broad allow rule for git commands (e.g. git(*)) to the allowlist, but be cautious of potential security implications.
  • Test the authorization prompt with different Bash commands to ensure it is working as expected.

Example

No code snippet is provided as the issue does not imply a specific code change.

Notes

The issue may be related to how the allowlist rules are being interpreted or applied, and further investigation is needed to determine the root cause. The fact that the session was running a skill may be relevant, but without more information, it's unclear how this affects the authorization layer.

Recommendation

Apply a workaround by updating the settings.json allowlist to include specific rules for the git commands that are being executed without prompting, and consider adding a catch-all rule to enforce authorization prompts for unknown commands. This is recommended because it allows for a more targeted and secure approach to managing command authorization.

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…

FAQ

Expected behavior

An authorization prompt should appear for any Bash command not matched by an allowlist rule, allowing the user to approve or deny before execution.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING