Repository navigation
Description
On a Windows host where the WSL feature is installed but has no distributions, npx bigpowers@latest setup aborts during the skill-distribution step. Every adapter dispatch fails; the reported error names whichever adapter runs first (alphabetically agy), which makes it look like an adapter-specific problem when it is not.
Repro
Windows with Git Bash on PATH and the WSL launcher present (C:\Windows\System32\bash.exe) but no distro installed (wsl --list --verbose is empty):
npx bigpowers@latest setup
python-env: Using python3
sync-skills: WARN — yq unavailable or targets.yaml missing; using legacy render list (cursor gemini pi)
Error: adapter agy failed with exit code 1
Windows Subsystem for Linux has no installed distributions.
--target cursor, --target gemini, and --target pi all fail identically, so this is not adapter-specific — the dispatch itself is broken.
Environment
- Windows 11, Node v22.20.0
- Git Bash on
PATH(C:\Program Files\Git\usr\bin\bash.exe) - WSL feature present, no distro installed (
System32\bash.exeis the WSL stub) yqnot installed; PyYAML available topython3
Root cause
scripts/lib/srp-engine.py runs each adapter with a bare interpreter name:
subprocess.Popen(['bash', adapter_path], ...)On Windows, CreateProcess uses its own search order: the application directory, then the system directory (C:\Windows\System32), and only then PATH. That finds the WSL launcher stub System32\bash.exe — which prints Windows Subsystem for Linux has no installed distributions and exits 1 — instead of the Git Bash that a shell's which bash / shutil.which('bash') returns. Spawning a bare bash is not the same lookup as typing bash in a shell.
The sync-skills: WARN … legacy render list line is unrelated: the adapter set is recomputed from targets.yaml, and SKILL_ADAPTERS in scripts/sync-skills.sh is dead code that does not influence dispatch.
Impact
Any Windows user with the WSL feature installed but no distro cannot complete setup: distribution fails for every adapter, so no runtime (Claude Code, Cursor, Gemini, pi, …) receives its skills. On a Windows host without WSL the same command succeeds, which is why the failure is machine-dependent.
Fix
Resolve the interpreter through PATH and pass the absolute path to Popen:
def resolve_bash():
return os.environ.get("BIGPOWERS_BASH") or shutil.which("bash") or "bash"with BIGPOWERS_BASH as an explicit override and a bare-name fallback. Unit coverage asserts both resolve_bash() and that dispatch passes the resolved path.
I have this fix ready and am stacking it on #134's PR (#135) so the two Windows blockers land together.
Activity
github-actions commentedon Oct 25, 2026
🎉 This issue has been resolved in version 2.88.10 🎉
The release is available on:
Your semantic-release bot 📦🚀