[BUG] Command permissions request and whitelisting is not correct
Resolved 💬 3 comments Opened Feb 25, 2026 by wimdecorte Closed Mar 1, 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?
See screenshot. Claude Code asks for permission to run "git add ...", which I have already whitelisted. But the actual command is a concatenated command that starts with "cd..." so I would have to whitelist "cd" which is way too permissive to even consider.
What Should Happen?
Claud should not concatenate commands if it detects that some of the commands are in the permissions whitelist
Error Messages/Logs
Steps to Reproduce
<img width="1904" height="1039" alt="Image" src="https://github.com/user-attachments/assets/1c82b3d2-f8dc-40e3-83fc-ca4fb5b051db" />
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.27 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗