Merge remote-tracking branch 'origin/pr-3862' into stewardship/20261116

This commit is contained in:
haelyra committed 2026-11-16 13:38:19 -05:00
commit aabcddebfb
2 files changed
+19 -1

No files matched your search

+1 -1
View File
@@ -300,7 +300,7 @@ function isSensitiveTarget(classPath) {
// `.claude/settings*.json` holds the switches for GateGuard and the other
// hooks, so it must count as restricted on every edit path — including the
// subagent paths that only deny sensitive or hard-linked targets (#3862).
const CLAUDE_SETTINGS_PATH = /(^|\/)\.claude\/settings(?:\.([^/]+))?\.json$/;
const CLAUDE_SETTINGS_PATH = /(^|\/)\.claude\/settings[^/]*\.json$/;
function isClaudeSettingsPath(classPath) {
return CLAUDE_SETTINGS_PATH.test(String(classPath || '').replace(/\\/g, '/').toLowerCase());