agent-orchestrator/packages/plugins/agent-codex/src
Priyanshu Choudhary 43de59de23 fix(agents): use shell:true on Windows in detect() to honor PATHEXT
execFileSync with a bare command name on Windows does not consult
PATHEXT — it only finds literal .exe files. CLIs installed via
npm install -g land at %APPDATA%\npm\<name>.cmd, which detect() can't
see, so AO reports the agent as not installed.

Add shell: isWindows() so cmd.exe handles PATHEXT and finds .cmd shims.
Adds windowsHide: true while we're there to suppress conhost flashes.

Affects all 5 agent plugins: aider, claude-code, codex, cursor, opencode.
Reproduced with codex installed via npm on a Windows EC2 box where
where.exe codex resolved to codex.cmd but detect() returned false.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 18:49:52 +05:30
..
app-server-client.test.ts test: align codex plugin version checks and stabilize init port tests 2026-03-07 21:02:07 +05:30
app-server-client.ts test: align codex plugin version checks and stabilize init port tests 2026-03-07 21:02:07 +05:30
index.test.ts Merge origin/main into feat/windows-platform-adapter 2026-04-25 20:42:17 +05:30
index.ts fix(agents): use shell:true on Windows in detect() to honor PATHEXT 2026-04-27 18:49:52 +05:30
package-version.test.ts chore: bump all package versions to 0.2.5 (#1190) 2026-04-13 05:47:08 +05:30