Skip to content

v2.34.1 — Stop hook Windows Git Bash fix

Latest

Choose a tag to compare

@OthmanAdi OthmanAdi released this 17 Apr 20:28

What changed

The Stop hook was silently failing on Windows 11 with Git Bash, specifically when running inside Command Prompt. Two separate bugs:

Bug 1: export SD= was treated as an external command instead of a shell builtin in certain Windows Git Bash invocation contexts. The error bash: export: No such file or directory was cosmetic noise on top of the real failure, but it meant the variable was never set.

Bug 2 (the real one for Claude Code): The fallback path $HOME/.claude/plugins/planning-with-files doesn't exist. The plugin installs to ~/.claude/plugins/cache/planning-with-files/planning-with-files/VERSION/ — a completely different location. So $SD was either empty or wrong, and both powershell.exe -File and sh calls failed.

What's fixed

Claude Code skill variants now use PowerShell's Get-ChildItem -Recurse to find check-complete.ps1 under ~/.claude/plugins/cache, with PowerShell's own ~ home expansion — no bash variable needed, no hardcoded path. The sh fallback uses a glob against the correct cache path. All other IDE variants (Codex, Cursor, CodeBuddy, Factory, Mastra Code, OpenCode) have export SD= replaced with SD=.

13 SKILL.md variants updated total.

How to update

npx skills add planning-with-files

Or if you installed via plugin:

claude plugin update

Reported by @nazeshinjite with an exceptionally clear diagnosis. Thank you.