Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): explain how to configure a missing Codex executable #11345

Mergedshivamhwp(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/11345/headmerged by maria-rcks View on GitHub

When 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

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 5ad50d3

      Macroscope'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 bcf094e. Prior analysis still applies.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.5 KiB13.6 KiB+66 B (+0.5%)15.1 KiB✅
      CodexThread snapshot wire7.0 KiB7.0 KiB−1 B (−0.0%)7.3 KiB✅
      CodexLive turn WebSocket wire6.5 KiB6.6 KiB+67 B (+1.0%)7.8 KiB✅
      CodexLive turn WebSocket decoded57.0 KiB57.1 KiB+88 B (+0.2%)66.4 KiB✅
      CodexLive turn messages810+2 (+25.0%)21✅
      ClaudeTotal thread wire13.6 KiB13.6 KiB−58 B (−0.4%)15.1 KiB✅
      ClaudeThread snapshot wire7.1 KiB7.1 KiB+1 B (+0.0%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.6 KiB6.5 KiB−59 B (−0.9%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded57.9 KiB57.8 KiB−88 B (−0.1%)66.4 KiB✅
      ClaudeLive turn messages108−2 (−20.0%)21✅

      Baseline: e628683 · PR result: bcf094e · Source CI: success

      Scenario 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.

    4. 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.

    5. github-actions[bot](GitHub profile, opens in a new tab) added labels📱 Native Change

    6. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review Change StackReview Change Stack

      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.ts
      • apps/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.ts
      Errors now identify the configured Codex executable. The default codex path 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: juliusmarminge

      Merge Risk: ⚪ Minimal · up to bcf09

      The 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 nameStatusExplanation
      Docstring Coverage✅ PassedNo 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✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Title check✅ PassedThe title clearly and concisely describes the main change: improving server guidance for a missing Codex executable.
      Description check✅ PassedThe 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.
    7. maria-rcks merged this2a264ad

    8. maria-rcks closed this

Sign in to join this conversation.