Preflight Checklist
What's Wrong?
When Claude Code generates a compound bash command using && (e.g.: cd /some/path && git add file && git commit -m "msg"), the permission approval prompt incorrectly identifies cd as the action requiring approval, showing a cd:* permission request instead of prompting for the meaningful actions (git add, git commit).
The problem repeats on every execution. The cd:* prompt keeps appearing and cannot be whitelisted for the session, making the workflow unusable.
What Should Happen?
In earlier versions, the same compound command correctly prompted for git add and git commit as the actions requiring permission, and allowed the user to whitelist them for the session.
Error Messages/Logs
Steps to Reproduce
- Open Claude Code in a project
- Ask Claude to stage and commit a specific file (e.g. CLAUDE.md)
- Claude generates a command like: cd /path/to/repo && git add CLAUDE.md && git commit -m "update"
- Observe the permission prompt . It asks for approval of cd:* instead of git add / git commit
- Approve it. The prompt appears again on the next execution, it cannot be whitelisted
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Around 2.1.40 it was working fine
Claude Code Version
2.1.52
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
No response
Preflight Checklist
What's Wrong?
When Claude Code generates a compound bash command using && (e.g.:
cd /some/path && git add file && git commit -m "msg"), the permission approval prompt incorrectly identifies cd as the action requiring approval, showing a cd:* permission request instead of prompting for the meaningful actions (git add, git commit).The problem repeats on every execution. The cd:* prompt keeps appearing and cannot be whitelisted for the session, making the workflow unusable.
What Should Happen?
In earlier versions, the same compound command correctly prompted for git add and git commit as the actions requiring permission, and allowed the user to whitelist them for the session.
Error Messages/Logs
Steps to Reproduce
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Around 2.1.40 it was working fine
Claude Code Version
2.1.52
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
No response