[BUG] Technical enforcement layer failed in Claude Code

Resolved 💬 2 comments Opened Apr 1, 2026 by ArunNelsonX Closed May 9, 2026

Preflight Checklist

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

What's Wrong?

  • settings.Local. json onLy allows Bash(git status:*)
  • git add and git commit executed without approval prompt
  • Expected: permission prompt for both commands

<img width="789" height="309" alt="Image" src="https://github.com/user-attachments/assets/ac092424-27d0-4d2a-b216-4619ff89a1e5" />

What Should Happen?

Claude Code should have asked for permission to add Git add and commit based on my settings.local.json.

Error Messages/Logs

Steps to Reproduce

I have added restriction for Claude to auto-commit to git. But it failed one time

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.87

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗