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> |
||
|---|---|---|
| .. | ||
| src | ||
| CHANGELOG.md | ||
| package.json | ||
| tsconfig.json | ||