What happened?
Relates to: The original Windows agent spawn bug (error code 193 / node-pty cannot execute npm wrapper scripts), which was closed as fixed in 0.2.4.
On 0.2.4 running on an Azure Virtual Desktop (AVD), agent spawning partially works on Windows. Michael now loads successfully (previously he would clock in and disappear). However, when launched without the .exe wrapper workaround, every agent's terminal immediately fails with:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
─ process exited (code 1) ─
The path to node.exe (or claude.exe) under C:\Program Files\ contains a space that is not being quoted or escaped before being passed to the shell. The command interpreter splits at the space and tries to execute C:\Program as a standalone command.
With the .exe wrapper in place (which lives at a path without spaces), Michael loads and Claude starts in the terminal window. So the wrapper sidesteps the unquoted-path bug rather than the bug being fixed.
Additional evidence of Windows path handling issues:
The GOD agent attempted to move processed inbox files using mv with Unix-style MSYS/Git Bash paths:
Error: Exit code 1
mv: cannot stat '/c/Users/BillRehm/HarnessAgents/hive/hive/agents/god/inbox/2026-06-09T14-03-36-870Z-8d54df.json': No such file or directory
The /c/Users/ path format is MSYS convention, not native Windows. This suggests the harness is either shelling out through Git Bash or generating paths with a Unix-to-Windows translation layer that isn't converting back before executing file operations.
Behavior with the queue when terminal is dead: Any text sent via the message queue to an agent whose terminal failed with the C:\Program error simply refreshes the terminal with the same error text. There is no live session behind it.
Steps to reproduce
- Install Munder Difflin 0.2.4 on Windows 11 where Claude Code is installed under a path containing spaces (e.g. C:\Program Files\nodejs\npm-global, as is the case with npm global installs on an AVD).
- Launch without the .exe wrapper workaround.
- Michael loads on the floor and his terminal opens.
- Observe the terminal shows 'C:\Program' is not recognized and exits with code 1.
- Add any additional agents via Restore Team. Same error in their terminals.
- Repeat with the .exe wrapper in place. Michael's terminal works. Agent terminals work after Restore Team.
Logs / screenshots
Terminal output (verbatim, every agent):
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
─ process exited (code 1) ─
GOD inbox file operation error:
Error: Exit code 1
mv: cannot stat '/c/Users/BillRehm/HarnessAgents/hive/hive/agents/god/inbox/2026-06-09T14-03-36-870Z-8d54df.json': No such file or directory
macOS version
Windows 11 (Azure Virtual Desktop, build 10.0.26200.8457)
Node version
v24.13.0
Claude Code version (if relevant)
v2.1.126
Pre-flight
What happened?
Relates to: The original Windows agent spawn bug (error code 193 / node-pty cannot execute npm wrapper scripts), which was closed as fixed in 0.2.4.
On 0.2.4 running on an Azure Virtual Desktop (AVD), agent spawning partially works on Windows. Michael now loads successfully (previously he would clock in and disappear). However, when launched without the .exe wrapper workaround, every agent's terminal immediately fails with:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
─ process exited (code 1) ─
The path to node.exe (or claude.exe) under C:\Program Files\ contains a space that is not being quoted or escaped before being passed to the shell. The command interpreter splits at the space and tries to execute C:\Program as a standalone command.
With the .exe wrapper in place (which lives at a path without spaces), Michael loads and Claude starts in the terminal window. So the wrapper sidesteps the unquoted-path bug rather than the bug being fixed.
Additional evidence of Windows path handling issues:
The GOD agent attempted to move processed inbox files using mv with Unix-style MSYS/Git Bash paths:
Error: Exit code 1
mv: cannot stat '/c/Users/BillRehm/HarnessAgents/hive/hive/agents/god/inbox/2026-06-09T14-03-36-870Z-8d54df.json': No such file or directory
The /c/Users/ path format is MSYS convention, not native Windows. This suggests the harness is either shelling out through Git Bash or generating paths with a Unix-to-Windows translation layer that isn't converting back before executing file operations.
Behavior with the queue when terminal is dead: Any text sent via the message queue to an agent whose terminal failed with the C:\Program error simply refreshes the terminal with the same error text. There is no live session behind it.
Steps to reproduce
Logs / screenshots
macOS version
Windows 11 (Azure Virtual Desktop, build 10.0.26200.8457)
Node version
v24.13.0
Claude Code version (if relevant)
v2.1.126
Pre-flight
npm installsonode-ptyis rebuilt for the current Electron ABI.