Bash(git commit) bypasses permission prompt in default mode
Resolved 💬 3 comments Opened Mar 9, 2026 by RichAyotte Closed Mar 13, 2026
Description
Bash(git commit ...) ran without triggering a permission prompt despite the session being in default permission mode and no prior approval being granted.
Settings
- Permission mode:
default - Only explicit allow rules:
Bash(shellcheck *)andBash(shfmt *) - No
Bash(git *)orBash(git commit *)in the allow list
What happened
- User invoked
/commitskill - Claude ran
git add README.md(prompted and approved) - Claude ran
git commit -m "..."— no permission prompt was shown - The commit executed successfully
Expected behavior
git commit should have triggered a permission prompt since it is not in the allow list.
Evidence
- Session transcript at
8f5552af-271b-4211-8900-01f8383ed419.jsonlshowspermissionMode: "default"and no decision/approval records for the git commit call settings.jsonhas no git-related allow rules
Environment
- Claude Code (CLI)
- Linux (Debian)
- Model: claude-opus-4-6
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗