Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug: Windows spawn EINVAL in watch capabilities that use execFile()
Environment
- OS: Windows 11
- Node: v22+
- squad-cli:
@bradygaster/squad-cli@0.9.4-insider.1 - agency: 2026.4.8.1
Problem
Capabilities monitor-teams, monitor-email, retro, and decision-hygiene fail with spawn EINVAL on Windows when running watch --execute.
Root Cause
These capabilities use execFile(cmd, args, ...) without shell: true. On Windows, execFile cannot:
- Resolve bare command names (like
gh) through PATH - Execute
.cmd/.batwrapper scripts
The execute capability works fine because it handles this differently.
Additional Issue
These capabilities hardcode gh copilot --message but don't respect the agentCmd config. Users with copilot.exe (standalone WinGet) or agency CLI can't use these capabilities even with a working agentCmd configured.
Suggested Fix
- Add
shell: trueto theexecFileoptions inspawnWithTimeout() - Have all capabilities respect
agentCmdfrom config (not justexecute)
Workaround
Disable the broken capabilities in .squad/config.json:
{
"watch": {
"monitor-teams": false,
"monitor-email": false,
"retro": false,
"decision-hygiene": false
}
}Output
spawn EINVAL on monitor-teams, monitor-email, retro, decision-hygiene
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Activity
tamirdresher commentedon Apr 8, 2026
Clarification:
gh copilotis the deprecated GH CLI extension. The current tool is standalonecopilot(installed via WinGet atcopilot.exe).The preferred pattern (matching the PS1 ralph-watch) is
agency copilot --yolo --autopilot --mcp mail --agent squad -p <promptfile>.So the fix should be:
agentCmdfrom.squad/config.json(not justexecute)gh copilot— it's deprecatedshell: truetoexecFile()calls on Windows so.cmdwrappers and PATH resolution workThe
agentCmdconfig already exists and works forexecute— just wire it into the other capabilities too.fix(watch): shared issue fetch, Windows shell:true, agentCmd default (g…
fix: Windows shell:true, shared agent spawn module, round-level issue…
fix: Windows shell:true, shared agent spawn module, round-level issue…
fix: Squash the Gremlins — 5 bug fixes (github#920, github#1062, gith…
refactor(cli): consolidate duplicated agent-spawn logic across watch …
chore: promote dev -> main (v0.12.0) (#1698)