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: bash cannot resolve path to session-start.sh #431
Claude Code 2.1.x auto-detects .sh files and prepends bash on Windows. However, the resulting invocation fails because /bin/bash (Git Bash) cannot resolve the C:/... forward-slash Windows path in this context.
The file does exist on disk — it's purely a path resolution issue at execution time.
Relevant Debug Log
2026-02-06T00:32:27.743Z [DEBUG] Hook SessionStart:resume (SessionStart) error:
/bin/bash: C:/Users/<user>/.claude/plugins/cache/claude-plugins-official/superpowers/4.1.1/hooks/session-start.sh: No such file or directory
Notes
The deprecated run-hook.cmd polyglot wrapper in the hooks directory documents the Claude Code 2.1.x behavior change that caused this.
A local workaround is to edit the cached hooks.json to explicitly call bash with a properly escaped Windows path, but this gets overwritten on plugin updates.
Activity
puneet1409 commentedon Feb 6, 2026
Closing as duplicate of #420 — same root cause (Claude Code path handling on Windows).