mirror of
https://github.com/obra/superpowers.git
synced 2026-09-25 22:09:05 +00:00
SessionStart hook fails on Windows — bash cannot resolve ${CLAUDE_PLUGIN_ROOT} path #389
Labels
No labels
antigravity
automated-issue-report
brainstorming
bug
claude-code
codex
copilot
cursor
documentation
duplicate
enhancement
factory
gemini-cli
good first issue
help wanted
hermes
hooks
invalid
kiro
needs-categorization
needs-rebase-to-dev-branch
needs-repro-case
new-harness
no-obvious-human-review
opencode
pi
plans
pr-template-rules-ignored
question
skill:brainstorming
skill:diagnosing-superpowers
skill:dispatching-parallel-agents
skill:executing-plans
skill:finishing-a-development-branch
skill:receiving-code-review
skill:requesting-code-review
skills
skill:subagent-driven-development
skill:systematic-debugging
skill:test-driven-development
skill:using-git-worktrees
skill:using-superpowers
skill:verification-before-completion
skill:writing-plans
skill:writing-skills
stale
subagents
tdd
trae
triage
upstream-bug
windows
wontfix
worktrees
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
skills/obra-superpowers#389
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
The
SessionStarthook fails on Windows with:/bin/bash: C:UsersAlexanderMelnikov.claudepluginscacheclaude-plugins-officialsuperpowers4.1.1/hooks/session-start.sh: No such file or directory
Environment
C:\Program Files\Git\bin\bash.exe)Root cause
In
hooks/hooks.json, the command is:Found a fix that works for me.
The issue is Windows using WSL bash instead of Git Bash. WSL can't handle the Windows paths that Claude Code passes.
Fix:
Create hooks/session-start.cmd:
@echo off
"C:\Program Files\Git\bin\bash.exe" "%~dp0session-start.sh"
Change hooks/hooks.json to point to the .cmd instead:
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start.cmd"
The .cmd runs natively on Windows and calls Git Bash directly, bypassing the WSL issue.