-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
area:toolsbugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsIssue specifically occurs on Windows
Description
Bug Description
The Ralph Loop plugin's stop-hook.sh fails on Windows with Git Bash because the cat command is not found in PATH when the hook executes.
Error Message
Stop hook error: Failed with non-blocking status code:
hooks/stop-hook.sh: line 10: cat: command not found
Root Cause
Line 10 of hooks/stop-hook.sh uses:
HOOK_INPUT=$(cat)When Claude Code executes bash scripts on Windows, the PATH doesn't include Git Bash's /usr/bin directory where cat resides.
Suggested Fix
Use the full path to cat:
HOOK_INPUT=$("/usr/bin/cat")Environment
- OS: Windows 10/11
- Shell: Git Bash
- Claude Code version: Latest
Workaround
Manually edit the cached hook script:
sed -i '10s/.*/HOOK_INPUT=$("\/usr\/bin\/cat")/' ~/.claude/plugins/cache/claude-plugins-official/ralph-loop/*/hooks/stop-hook.shReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:toolsbugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsIssue specifically occurs on Windows