The dashboard (Next.js) sometimes spawns the runtime-process pty-host with a PATH that lacks C:\Windows\System32. Both `pwsh` and `powershell.exe` probes in resolveWindowsShell() then fail and we drop to cmd.exe — which can't execute the PowerShell-syntax launch commands agents emit (e.g. Codex's `& 'codex' ...`), producing `'&' was unexpected at this time.` and an immediately-exited orchestrator. Probe %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe directly via existsSync — this path is guaranteed on Windows 10+ and doesn't depend on PATH. Also add an AO_SHELL env override as an explicit escape hatch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| ao | ||
| cli | ||
| core | ||
| integration-tests | ||
| plugins | ||
| web | ||