Repository navigation
fix: fail over instead of waiting on long rate limits - #152983
jzmudzinski wants to merge 1 commit into
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. Reviewed September 29, 2026, 10:52 PM ET / September 30, 2026, 02:52 UTC. ClawSweeper reviewWhat this changesThe branch makes the embedded agent runner leave a same-model rate-limit wait for a configured model fallback when the provider requests more than 60 seconds, and adds controller tests. Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR open. PR close coverage proof kept this PR open against #148580: model PR close coverage proof was incomplete: PR B carries PR A's useful failover behavior in the merged implementation while addressing the material safety concerns identified in PR A's report. PR A's fixed 60-second cutoff is not distinct work that still needs review. Priority: P2 Review scores
Verification
How this fits togetherThe embedded agent runner receives provider failures and retry timing hints during a model turn. Its retry controller decides whether to wait on the current model or return control to auth-profile and model fallback. flowchart LR
A[Provider rate limit] --> B[Retry timing hint]
B --> C[Embedded retry controller]
D[Saved retry cap] --> C
E[Replay safety] --> C
C --> F[Wait and continue]
C --> G[Eligible fallback]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +12, Tests +37. Total +49 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep this PR open until a linked canonical PR proves it covers this PR's unique work, or a maintainer confirms closure. Do we have a high-confidence way to reproduce the issue? No current-main reproduction was established in this read-only review. Current source and the embedded-runner fault-sequence coverage show the reported long-header case following the configured fallback. Is this the best way to solve the issue? No for this branch: its fixed cutoff ignores the existing setting and replay-safety state. The merged cap-aware implementation is the narrower solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 53ccbd1b7b1f; fix evidence: release v2026.9.6, commit fcc927f58d02. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Closing as superseded by #148580, which landed a configurable, replay-safe version of the same failover behavior. Thanks for the review. |
Summary
Retry-Afterexceeds 60 secondsTesting
pnpm exec vitest run src/agents/embedded-agent-runner/run/failover-retry-controller.test.ts(32 passed)pnpm tsgo:coreoxfmt --checkandoxlintRefs sc-2741.