mirror of
https://github.com/anthropics/claude-code.git
synced 2026-01-30 04:02:03 +00:00
Add validation to prevent bash permission rules with unbalanced quotes from being saved to settings.local.json. Previously, malformed commands could be saved, causing settings to fail validation on load with error: "Unmatched " in Bash pattern". The fix adds validation before saving rules to ensure: - Quotes are properly balanced - Permission patterns are well-formed Bug reported via Slack: permission rule "Bash(250/0.029 \")" was being stored, which has an unbalanced quote. Includes: - Detailed bug analysis in .claude/bash-permission-bug-analysis.md - CHANGELOG entry for the fix