Repository navigation
fix(codex): allow slow provider probes to finish - #9303
Michel-Liao wants to merge 1 commit into
Conversation
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This narrowly scoped change raises the default Codex provider-probe timeout from 10 to 20 seconds for all enabled users, altering existing product behavior even though it includes focused regression coverage. The default-policy change warrants explicit human review. Not approved because:
Review your spending limits in Billing settings. You can add or adjust custom eligibility rules. Learn more. |
|
Note: GPT-6 on behalf of shivam (@shivamhwp). Please rebase the Codex timeout change onto current main. The import hunk conflicts with the newer custom-model and usage-limit work; keep |
176928e to
6931f69
Compare
Bugbot is paused — on-demand spend limit reachedBugbot 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. |
|
Rebased onto current Verification on
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe Codex provider probe timeout increases from 10 to 20 seconds. Tests verify that a 15-second probe succeeds and that timeout cleanup remains covered. ChangesCodex probe timeout
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change is limited to allowing slower Codex startup probes to complete; no unresolved merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Thanks for the PR. We're not taking changes to the orchestration and provider layers right now: that part of the server is being rewritten for V2, and merging into the current code would either conflict with or be thrown away by that work. Closing for now. If this is still an issue once V2 lands, please reopen (or open a fresh PR against the new code) and we'll take a proper look. |
A slow but healthy Codex app-server probe (handshake, account, models, skills) can run past the shared 10s AUTH_PROBE_TIMEOUT_MS on a loaded or slow machine, most often reported on Windows. When that happens, Settings marks a working Codex provider as unavailable with "Timed out while checking" until the next 5-minute refresh, even though Codex is installed, logged in, and working. Give Codex its own 20s probe timeout (CODEX_AUTH_PROBE_TIMEOUT_MS) instead of raising the shared constant for every provider. Adds a regression test for a 15s-healthy probe, and bumps the existing probe-scope-closes-on-timeout test from 11s to 21s to match the new budget. Fixes #7513. Reuses the fix from Michel-Liao's closed PR #9303, rewritten against the orchestration-v2 provider code. Co-authored-by: Michel-Liao <107891771+Michel-Liao@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A slow but healthy Codex app-server probe (handshake, account, models, skills) can run past the shared 10s AUTH_PROBE_TIMEOUT_MS on a loaded or slow machine, most often reported on Windows. When that happens, Settings marks a working Codex provider as unavailable with "Timed out while checking" until the next 5-minute refresh, even though Codex is installed, logged in, and working. Give Codex its own 20s probe timeout (CODEX_AUTH_PROBE_TIMEOUT_MS) instead of raising the shared constant for every provider. Adds a regression test for a 15s-healthy probe, and bumps the existing probe-scope-closes-on-timeout test from 11s to 21s to match the new budget. Fixes #7513. Reuses the fix from Michel-Liao's closed PR #9303, rewritten against the orchestration-v2 provider code. Co-authored-by: Michel-Liao <107891771+Michel-Liao@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A slow but healthy Codex app-server probe (handshake, account, models, skills) can run past the shared 10s AUTH_PROBE_TIMEOUT_MS on a loaded or slow machine, most often reported on Windows. When that happens, Settings marks a working Codex provider as unavailable with "Timed out while checking" until the next 5-minute refresh, even though Codex is installed, logged in, and working. Give Codex its own 20s probe timeout (CODEX_AUTH_PROBE_TIMEOUT_MS) instead of raising the shared constant for every provider. Adds a regression test for a 15s-healthy probe, and bumps the existing probe-scope-closes-on-timeout test from 11s to 21s to match the new budget. Fixes #7513. Reuses the fix from Michel-Liao's closed PR #9303, rewritten against the orchestration-v2 provider code. Co-authored-by: Michel-Liao <107891771+Michel-Liao@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Problem
The Codex provider health check performs a full app-server handshake plus account, model, and skill discovery under the shared 10-second auth-probe timeout. On Windows, healthy probes have been measured above that limit during startup, causing an installed and authenticated provider to appear broken until a later refresh.
Closes #7513.
Fix
Give the multi-step Codex probe a 20-second budget while leaving other provider probe timeouts unchanged. A focused virtual-clock regression test verifies that a 15-second healthy probe succeeds, and the existing timeout cleanup test now covers the new boundary.
Testing
node_modules/.bin/vp test run apps/server/src/provider/Layers/ProviderRegistry.test.ts(42 passed)Model: GPT-5.6 Sol
Harness: Codex in T3 Code
Note
Low Risk
Scoped to Codex health-check timing and tests; no auth or data-path changes.
Overview
Raises the Codex provider status probe timeout from the shared 10s to a Codex-specific 20s, because the app-server handshake plus account, model, and skill discovery can exceed 10s on Windows without indicating a real failure.
Other providers keep using
AUTH_PROBE_TIMEOUT_MSfromproviderSnapshot.ts. Tests add a case where a 15s healthy probe still reportsready, and the hanging-probe timeout test advances the clock 21s to match the new limit.Reviewed by Cursor Bugbot for commit 176928e7abb8dbec299988a388adf41c8dd4c23f. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit