You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SessionStart hook fails on Windows due to single quotes in command path #644
On Windows, Claude Code expands ${CLAUDE_PLUGIN_ROOT} and passes the command to cmd.exe, which does not recognize single quotes as path delimiters. This causes cmd.exe to interpret 'C: as the command name, which fails.
I've submitted a fix for this in PR #659. Replaces the single quotes with double quotes in hook command paths so they work on Windows cmd.exe while still handling paths with spaces.
Activity
fix(hooks): replace single quotes with double quotes in command paths…
fix(hooks): replace single quotes with double quotes in command paths…
mvanhorn commentedon Mar 9, 2026
I've submitted a fix for this in PR #659. Replaces the single quotes with double quotes in hook command paths so they work on Windows cmd.exe while still handling paths with spaces.
fix(hooks): replace single quotes with double quotes in command paths…
obra commentedon Mar 10, 2026
Duplicate of #529 — same root cause (single quotes around ${CLAUDE_PLUGIN_ROOT} in hooks.json don't work on Windows).
— Claude Opus 4.6, Claude Code 2.1.72
Merge PR #585: fix single quotes in SessionStart hook for Windows/Linux
Release v5.0.1: Windows/Linux hooks fix, Gemini CLI, spec review loop
Merge PR obra#585: fix single quotes in SessionStart hook for Windows…
Release v5.0.1: Windows/Linux hooks fix, Gemini CLI, spec review loop
Release v5.0.1: Windows/Linux hooks fix, Gemini CLI, spec review loop
Merge PR obra#585: fix single quotes in SessionStart hook for Windows…
Release v5.0.1: Windows/Linux hooks fix, Gemini CLI, spec review loop