Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThe PR makes bounded Codex model lookup honor the configured request timeout while preserving the turn deadline. Example: A model catalog responds after six seconds with an eight-second request timeout and a twenty-second turn budget.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open: current main retains the premature five-second lookup deadline, and this focused repair has no identified correctness defect. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Codex plugin's bounded-turn owner receives isolated inference requests, obtains a native model catalog, selects a model, and starts an ephemeral thread that returns text or an error. flowchart LR
A[Bounded inference request] --> B[Turn deadline]
A --> C[Configured request timeout]
B --> D[Model lookup]
C --> D
D --> E[Codex catalog]
E --> F[Ephemeral thread]
F --> G[Text or error]
Technical reviewBest possible solution: Keep model lookup in the existing bounded-turn owner and use its configured request limit together with the elapsed turn deadline. Do we have a high-confidence way to reproduce the issue? Source establishes the failure path: current main rejects a six-second model/list response under its fixed five-second cap despite a longer configured request and turn budget; the contributor reports a matching base failure, but this read-only review ran no reproduction. Is this the best way to solve the issue? This is a narrow owner-level repair that reuses an existing setting, retains cancellation and authority checks, and avoids adding another timeout policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 95dcdf93588b. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +66, Docs +3. Total +71 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 11, 2026, 1:29 PM ET / 17:29 UTC (Revision 2). |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
What Problem This Solves
Fixes: a bounded Codex side turn can fail before it starts when a live
model/listreply takes more than five seconds, even when the configured app-server request budget and remaining turn budget are longer.User Impact
Side questions and settled-turn finalizers that need a live model list can proceed when the lookup completes within the configured request budget. A stalled lookup may now wait longer than five seconds, but it remains bounded by both
appServer.requestTimeoutMsand the remaining turn budget. No configuration or data migration is required.Why This Change Was Made
The bounded-turn model lookup had a fixed five-second ceiling. It now uses the smaller of the remaining turn budget and the configured app-server request timeout, matching the caller's intended deadlines. The documentation describes that behavior.
Evidence
model/listafter client acquisition, exceeding the previous five-second ceiling. This observation establishes that the lookup can take longer than the old cap; it is not an end-to-end bounded-turn success claim.CodexAppServerClienttransport with controlled response timing: on the unchanged base, a six-second catalog response failed withmodel/list timed outdespite an eight-second configured request budget. With this change, the six-second response succeeds and starts the turn, while a nine-second response still times out beforeturn/start.pnpm test extensions/codex/src/app-server/bounded-turn.test.ts --maxWorkers=1: 44/44 passed, 20.27 seconds local wall time. The adjacent bounded-turn clock suite also passed: 47/47 tests across the two files in 21.91 seconds.git diff --checkpassed. Local scoped autoreview found no actionable findings.The full changed-lane check did not finish: its extension-test typecheck was interrupted during heavy host contention. CI has not been awaited. A separate live foreground-agent path still showed app-server request timeouts after an integration build containing this change, so this PR does not claim to fix those broader fresh-session failures.