mirror of
https://github.com/OthmanAdi/planning-with-files.git
synced 2026-04-25 16:06:02 +03:00
[GH-ISSUE #32] Stop hook error: Failed with non-blocking status code: '${CLAUDE_PLUGIN_ROOT}' #24
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/planning-with-files#24
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?
Originally created by @mtuwei on GitHub (Jan 17, 2026).
Original GitHub issue: https://github.com/OthmanAdi/planning-with-files/issues/32
Trouble shoot:

System info.:
@OthmanAdi commented on GitHub (Jan 17, 2026):
Hi @mtuwei,
First, my sincere apologies for the delayed response. Thank you for reporting this issue and providing the system details – that was extremely helpful!
✅ This is now FIXED in v2.2.0
I've just released v2.2.0 which includes comprehensive Windows PowerShell support. This completely resolves the
${CLAUDE_PLUGIN_ROOT}and Stop hook issues you encountered.What Was Wrong
The issue had two root causes:
check-complete.shbash script doesn't run natively in PowerShell${CLAUDE_PLUGIN_ROOT}has known resolution issues on Windows (documented Claude Code bug)What's Fixed
New PowerShell Scripts:
check-complete.ps1- PowerShell equivalent of the bash scriptinit-session.ps1- PowerShell session initializationOS-Aware Hook Execution:
The Stop hook now automatically detects your operating system and uses the appropriate script:
How to Update
After updating, the Stop hook should work perfectly on Windows 11 PowerShell!
Technical Details
The hook now uses this logic:
Want to Verify?
After updating, you can test the completion check manually:
Thank you again for this report! Your issue helped make planning-with-files work for all Windows users. I've added you to the acknowledgments in CHANGELOG.md and CONTRIBUTORS.md.
Let me know if you encounter any issues with v2.2.0!
Best regards,
Ahmad
@aqlkzf commented on GitHub (Jan 21, 2026):
First of all, thanks for the great tool!
I encountered this issue on my Linux system (Ubuntu). The detailed description is below.
Title
Stop hook in
ralph-loopplugin fails with/bin/sh: [[: not foundon Ubuntu/DebianDescription
Problem
When the
ralph-loopplugin's stop hook runs, it fails with the following error:Root Cause
The script
~/.claude/plugins/marketplaces/claude-plugins-official/plugins/ralph-loop/hooks/stop-hook.shhas a#!/bin/bashshebang but is being executed with/bin/sh.On Ubuntu/Debian systems,
/bin/shis symlinked todash, which doesn't support bash-specific[[syntax.The script uses
[[extensively (lines 15, 28, 39, 51, 60, 82, 98, 107, 115, 123, 138, 159):Possible Causes
/bin/shregardless of the script's shebang line/bin/sh -cEnvironment
/bin/sh: dash (Debian default)@SaladDay commented on GitHub (Jan 24, 2026):
I've encountered this problem too. ubuntu20.04