Repository navigation
Re-enable commandcode on the provider-availability system (opencode#1828) - #6503
Conversation
…stem (opencode#1828) Removes commandcode from disabled_providers (definition and seats untouched) and pins the opencode fork to aba451ef, which carries the availability state machine (fork PR #1832). An exhausted or erroring provider now benches on first failure and costs sessions nothing while stopped; it rejoins automatically on a measured quota increase. Evidence on opencode#1828: harness seamlessness scenarios + a driven live session (3/3 sessions succeeded via the sibling; the permanently-500 leaf took zero attempts after its first bench).
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Correction to the test figures in the results aboveThe "1414 pass / 0 fail" full-suite figure quoted in my results comment (and in PR #1832 / code PR #6503) came from a background tool delivery that proved unreliable on re-check, so I re-ran the full Full suite on the merged branch: 8206 pass / 15 skip / 11 fail (8232 tests, 343 files). All 11 failures are accounted for and none is a regression from this change:
Everything that exercises the changed code was verified in foreground runs: availability + mock-provider 34 pass / 1 pre-existing skip; the model-route family 409 pass; resolver/title/tuning/persona 127 pass; session runner + step 298 pass (the 3 initial |
Re-enables
commandcode(removes it fromdisabled_providers; definition and all seats untouched, per the switchboard rule) and pins the opencode fork toaba451ef, which carries the provider-availability system.Why it was disabled, and what changed
The 2026-10-31 note names two blockers: credits exhausted (~$0.10 left), and a router that kept retry-looping its leaves (
deepseek-flash-plan,spark-plan,sol-plan,beam-plan,mimo-flash-plan,scout) on "insufficient credits".The router half is fixed by the provider-availability system — design + results: opencode#1828, implementation: opencode PR #1832 (merged
6b178f66, in this pin):quota/balance/rate-limit/auth/unknown/infra/slow), resume rule, and until.With that in place, an empty balance is no longer a reason to unseat the provider: it sits seated, stopped, visible — and rejoins on refill with no config change. Seats are never removed/re-added around quota walls; availability is routing-layer state.
Acceptance evidence (both legs required by #1828)
model-route-availability.test.ts(12 scenarios): the seamlessness property (a permanently erroring pool member receives exactly one attempt across five sessions, all served by its sibling; a quota-walled member is never re-attempted while stopped and serves again after a measured increase); classification parity (Antigravity's text wall ≡ Mistral's tagged quota); retry-after honored; unknown-error escalation; infra holds leave error standing untouched. Full@opencode/coresuite: 1414 pass / 0 fail;tscclean.livetest= ordered [deadleaf(local mock, always HTTP 500),goodleaf(local mock, canned SSE success)]. Three sessions driven over the HTTP API: all 3 succeeded via goodleaf.route_attemptshows the dead leaf attempted only in session 1's opening race (title generation + first prompt landing before the first failure was recorded), then zero attempts in sessions 2–3;route_healthrecords itscooldown-startbench; one attempt row recordsfailed_over_to = goodleaf/good-model.Activation
Both halves land together at the next switch: this config flip + the fork pin carrying the availability system.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit