mirror of
https://github.com/obra/superpowers.git
synced 2026-09-25 22:09:05 +00:00
SessionStart hook fails on Windows due to mixed path separators #418
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#418
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?
Describe the bug
On Windows, the SessionStart hook fails with a "No such file or directory" error on every session start. The hook
eventually succeeds on retry, but displays an error message to the user each time Claude Code starts.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The session should start without displaying any hook errors.
Logs
2026-02-04T20:48:03.107Z [DEBUG] Hook SessionStart:startup (SessionStart) error:
/bin/bash: C:\Users\JesusMendoza.claude\plugins\cache\superpowers-marketplace\superpowers\4.0.3/hooks/run-hook.cmd:
No such file or directory
Additional context
The issue is caused by mixed path separators. The CLAUDE_PLUGIN_ROOT environment variable contains Windows-style
backslashes (C:\Users...), but the hook command in hooks/hooks.json appends Unix-style forward slashes:
"command": ""${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd" session-start.sh"
This creates a hybrid path like C:\Users...\4.0.3/hooks/run-hook.cmd which bash cannot resolve properly.