On Windows, T3 Code currently assumes codex is available on PATH. That works for standalone npm installs, but Codex Desktop and Microsoft Store installs keep their CLI under %LOCALAPPDATA%\OpenAI\Codex\bin\<runtime>\codex.exe, so the provider reports "not installed" even though Codex is present. This adds a Windows-only fallback that first respects explicit binary paths and normal PATH resolution, then selects the newest valid Desktop runtime; the resolved path is captured once so probes, sessions, and text generation all use the same executable. Non-Windows behavior is unchanged, and standalone CLI installs still win. I added focused coverage for PATH priority, explicit overrides, missing runtimes, platform isolation, and runtime selection, plus a prerequisite note. Validation: 7 focused tests, a read-only smoke test against a real Microsoft Store installation (codex-cli 0.145.0-alpha.18), server and full-workspace typechecks, and vp check (0 errors; 14 unrelated existing warnings).
Note
Fix Codex Desktop CLI detection on Windows by resolving executable path from LOCALAPPDATA#
- On Windows,
resolveCodexExecutablePath first checks if codex/codex.exe resolves via PATH; if not, it searches %LOCALAPPDATA%/OpenAI/Codex/bin for the newest versioned codex.exe unpacked by Codex Desktop.
- The
CodexDriver factory now calls resolveCodexExecutablePath at creation time and stores the resolved path in effectiveConfig, which is also passed to maintenance capability checks.
findCodexDesktopBinary selects the newest binary by modified time across versioned subdirectories, with path as a tiebreaker.
- Non-Windows platforms and non-default binary paths are returned unchanged.
- Behavioral Change: on Windows with no
codex on PATH, the provider may silently switch to the Codex Desktop-extracted binary instead of failing.
Macroscope summarized 6a5bfc2.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
5b7fe545-e076-4ac2-870d-6302fd5a2384You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share