fix(server): explain how to configure a missing Codex executable #11345
main fromrefs/pull/11345/head·merged by maria-rcks View on GitHubWhen Codex cannot start, the provider error always names codex and says it is missing from PATH, even when a custom executable is configured. Show the configured executable and point to Settings → Providers → Codex → Binary path on the server. For the default command, explain that installing ChatGPT or Codex desktop may not put it on PATH.
Closes #10514. This implements the actionable Binary path guidance requested as an alternative to app-bundle discovery. Automatic discovery remains a separate enhancement. No executable selection or provider defaults change. Rebased onto main. Internal refinement remains pending after the final Fable retry failed.
Validation: 11 focused provider checks pass, including a real missing-executable probe through the registry. Four new expectations fail against the parent implementation. Server typecheck and scoped lint pass. Native Electron shows the old and new messages using a simulated provider-status payload; the new message fits the tested 1000px client without truncation. No generation turn or native macOS/Windows test was run. Before/after evidence. GitHub image upload is pending because the background browser connection is unavailable.
Model: GPT-6. Harness: Codex.
Rebased on main 20363c32c9bfdbf49c2716ef11d1f18483fcc01b. Scoped validation rerun after rebasing; existing native and human review limits remain.
Summary by CodeRabbit#
- Bug Fixes
- Improved Codex executable error messages by showing the configured executable path.
- Added tailored troubleshooting guidance for default, macOS, Windows-style, and custom executable paths.
- Installation advice is now shown only when using the default Codex executable.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Approvability#
Verdict: Approved at
5ad50d3Macroscope's review found this PR approvable — This is a focused diagnostic improvement that reports the configured Codex executable and directs users to the relevant server setting, with coverage for common path formats. It does not alter provider execution behavior, schemas, defaults, deployment, or security-sensitive code.
Notes:
- Diff unchanged. Approvability was decided on eligibility alone.
No code changes detected at
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).bcf094e. Prior analysis still applies.Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 13.5 KiB 13.6 KiB +66 B (+0.5%) 15.1 KiB ✅ Codex Thread snapshot wire 7.0 KiB 7.0 KiB −1 B (−0.0%) 7.3 KiB ✅ Codex Live turn WebSocket wire 6.5 KiB 6.6 KiB +67 B (+1.0%) 7.8 KiB ✅ Codex Live turn WebSocket decoded 57.0 KiB 57.1 KiB +88 B (+0.2%) 66.4 KiB ✅ Codex Live turn messages 8 10 +2 (+25.0%) 21 ✅ Claude Total thread wire 13.6 KiB 13.6 KiB −58 B (−0.4%) 15.1 KiB ✅ Claude Thread snapshot wire 7.1 KiB 7.1 KiB +1 B (+0.0%) 7.3 KiB ✅ Claude Live turn WebSocket wire 6.6 KiB 6.5 KiB −59 B (−0.9%) 7.8 KiB ✅ Claude Live turn WebSocket decoded 57.9 KiB 57.8 KiB −88 B (−0.1%) 66.4 KiB ✅ Claude Live turn messages 10 8 −2 (−20.0%) 21 ✅ Baseline:
e628683· PR result:bcf094e· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 113.9 KiB
- Claude decoded thread snapshot: 114.6 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
Bugbot is paused — on-demand spend limit reached
Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.
A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.
github-actions[bot](GitHub profile, opens in a new tab) added labels📱 Native Change
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
4a4b71c9-68bd-41cf-8a22-6e0cf3fff2b0📥 Commits
Reviewing files that changed from the base of the PR and between 20363c32c9bfdbf49c2716ef11d1f18483fcc01b and 5ad50d3128ec20ca25f7b7e509592ca083cc9e4d.
📒 Files selected for processing (2)
apps/server/src/provider/Layers/CodexProvider.tsapps/server/src/provider/Layers/ProviderRegistry.test.ts
Limit details: You’ve used all 10 included reviews currently available.
📝 Walkthrough
Walkthrough#
Codex spawn-probe errors now include the configured executable path. Default and custom paths receive different guidance. Tests cover default, macOS, Windows-style, and aggregated failure cases.
Changes#
Codex executable error handling
Layer / File(s) Summary Path-aware errors and test coverage
apps/server/src/provider/Layers/CodexProvider.ts,apps/server/src/provider/Layers/ProviderRegistry.test.tsErrors now identify the configured Codex executable. The default codexpath receives PATH and installation guidance. Custom paths receive executable-validity guidance. Tests cover multiple path formats and aggregated failures.Priority: ⬇️ Low
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Bug fix
Suggested reviewers:
juliusmarmingeMerge Risk: ⚪ Minimal · up to
bcf09The updated Codex startup diagnostic reports the configured executable and provides the intended path-specific guidance. The change is ready to merge.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2… Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request. Title check ✅ Passed The title clearly and concisely describes the main change: improving server guidance for a missing Codex executable. Description check ✅ Passed The description explains what changed, why it changed, scope limits, issue linkage, validation results, and known test limitations. It does not use the template headings or include the checklist, but … ✨ Finishing Touches
📝 Generate docstrings
- Create stacked PR
- Commit on current branch
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch `fix/server-codex-binary-guidance`
Comment `@coderabbitai help` to get the list of available commands.maria-rcks merged this2a264ad
maria-rcks closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed