diff options
| author | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-05-19 15:37:56 -0700 |
|---|---|---|
| committer | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-05-19 17:53:52 -0700 |
| commit | b58bdbf5512a8c4f03c24057fe7bd756ce4db962 (patch) | |
| tree | 6c3340ec941ca1dd3490b814224b897e2ff1f736 /plugins/security-guidance/hooks | |
| parent | ae21a9367949f92df4e31231d7efe43eaa08207c (diff) | |
fix: quote \${CLAUDE_PLUGIN_ROOT} in hookify and security-guidance hook commandsfix/quote-claude-plugin-root-paths
Paths containing spaces (common on Windows, e.g. C:\Users\Some User\...)
cause shell word-splitting when CLAUDE_PLUGIN_ROOT is unquoted, resulting
in hooks erroring with "No such file or directory" on every tool call.
Wraps the path in double quotes for all five affected hook commands.
Fixes the pattern reported in issue #57946. Closes the fix surfaced in PR #1921.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'plugins/security-guidance/hooks')
| -rw-r--r-- | plugins/security-guidance/hooks/hooks.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/security-guidance/hooks/hooks.json b/plugins/security-guidance/hooks/hooks.json index 98df9bd2..9d728c9f 100644 --- a/plugins/security-guidance/hooks/hooks.json +++ b/plugins/security-guidance/hooks/hooks.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py" + "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py\"" } ], "matcher": "Edit|Write|MultiEdit" |
