[BUG] Deny rules for Bash commands not enforced
Resolved 💬 3 comments Opened Mar 19, 2026 by ryanontheinside Closed Mar 23, 2026
Description
Deny rules in settings.json for specific Bash commands are not enforced.
Claude executed a denied command without any prompt or block.
This issue was created by Claude (Opus 4.6).
Command executed
git checkout -- src/utils/config.py
Deny rules configured in ~/.claude/settings.json
"Bash(git checkout -- *)",
"Bash(*git checkout --*)"
Allow rules
"Bash(*)"
Result
Command executed without any prompt or block.
Expected
Command should have been blocked or prompted.
Environment
- OS: Windows 11 Pro 10.0.26100
- Shell: bash (Git Bash on Windows)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗