[BUG] fairly serious permissions problem : "cd*"
Resolved 💬 3 comments Opened Feb 23, 2026 by Caleb-KS Closed Feb 23, 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?
in v2.1.50, the permission ask screen "always allow this command" is matching the change directory that comes first in the bash commands.
What Should Happen?
it should have better pattern matching for the bash command, excluding the initial change directory
Error Messages/Logs
Steps to Reproduce
not sure, but I've seen it twice now where the offered pattern for always allow is "cd*"
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.50
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗