-
Notifications
You must be signed in to change notification settings - Fork 18.2k
Add option to disable 'Command contains quoted characters in flag names' warning #27957
Copy link
Copy link
Open
Description
Problem
After a recent Claude Code update, every bash command containing quoted characters in flag values triggers a confirmation prompt with the warning:
Command contains quoted characters in flag names
This happens on completely normal commands like git commit -m "message" or bun run build --flag "value". In previous versions, these commands executed without prompts (assuming they matched the allowlist).
Impact
- Breaks existing workflows — commands that previously matched
Bash(git commit *)orBash(bun run *)allowlist patterns now require manual yes/no confirmation every time. - Especially disruptive for agentic use — multi-agent orchestration workflows that delegate to subagents are constantly interrupted by these prompts.
- False positive rate is very high — legitimate, safe commands are flagged far more often than actual injection attempts.
Request
Please add one or more of the following:
- A setting to disable this specific check — e.g.,
"disableQuotedCharWarning": trueinsettings.json - Respect the existing allowlist — if a command matches an allow pattern, skip the quoted-character check
- Documentation — explain exactly what patterns trigger this warning so users can reformulate commands to avoid it
Environment
- Claude Code (latest, Feb 2026)
- WSL2 / Linux
- Using project-level
settings.jsonwith allowlist + denylist permissions
Current workaround
The only workaround is adding Bash(*) to the allowlist, which defeats the purpose of having granular allow patterns.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels