[BUG] Wildcard permission matching not working
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 Claude Code CLI, regardless of my "Yes, and don't ask again" answer, Claude always asks again for confirmation of actions of the following type. I have tried using Claude itself to get advice how to prevent this, but none of the suggestions regarding changing permissions has worked. Because this is checking out source files, it greatly impedes my ability to let Claude run as an independent agent and complete its tasks:
"/c/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team
Explorer/TF.exe" checkout
"C:/abc/Development/Source/defghijk/lmnopqrstuvwxyz/abcdegh/AppSettings.ini"
TFS checkout source AppSettings.ini
This command requires approval
Do you want to proceed?
❯ 1. Yes
2.Yes, and don’t ask again: "/c/Program Files/Microsoft Visual Studio/2022/Enterprise/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/TF.exe" checkout:*
- No
What Should Happen?
Claude should not ask again when "Yes, and don't ask again" is selected
Error Messages/Logs
Steps to Reproduce
- Ensure two source files are checked in to TFS
- Request Claude to change one source file
- Claude attempts to check out the file and prompts user
- Select "Yes, and don't ask again" when prompted
- Request Claude to change the other source file
- User is still prompted despite responding "don't ask again" in step 4
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2,1,71 (Claude Code CLI)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
It seems all TFS actions are affected, not just checkouts
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗