Repository navigation
fix(auth): pause only the refused model on the no-auth path - #15443
Merged
diegosouzapw merged 3 commits intoOct 6, 2026
Merged
diegosouzapw merged 3 commits into
diegosouzapw merged 3 commits into
Conversation
maxmad64bis
force-pushed
the
fix/opencode-pause-per-model
branch
2 times, most recently
from
October 3, 2026 10:14
eeada92 to
0eef368
Compare
5 tasks done
maxmad64bis
force-pushed
the
fix/opencode-pause-per-model
branch
from
October 3, 2026 15:35
0eef368 to
c69fb0a
Compare
maxmad64bis
marked this pull request as ready for review
October 3, 2026 16:40
This was referenced Oct 3, 2026
Paused no-auth selection returned null (401); now returns a connection-scoped 429 cooldown, proven by 16 passing selection tests (incl. combo fallthrough).
A free-tier refusal scoped to one model left siblings blocked; the pause key now includes the model.
maxmad64bis
force-pushed
the
fix/opencode-pause-per-model
branch
from
October 4, 2026 15:30
c69fb0a to
fb5ceba
Compare
diegosouzapw
merged commit Oct 6, 2026
a1f3d32
into
diegosouzapw:release/v3.8.52
5 of 7 checks passed
diegosouzapw
pushed a commit
that referenced
this pull request
Oct 6, 2026
Onda 8. Este squash entra com o crédito de @maxmad64bis (fix(noauth): show active free-tier pauses on the account card). #15402 e #15443 já estavam neste branch e entram com ele. O comportamento que o #15436 já publicou ficou o da release. O cartão de pausa e a rota de visibilidade são deste PR. O teto de file-size fica para o follow-up da onda.⚠️ base-red inherited: #15306 Obrigado, @maxmad64bis.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A free-tier refusal used to pause the whole provider for about three minutes and now pauses only the refused model, because the pause key holds the provider plus the model. Users saw healthy sibling models skipped after one unrelated refusal, since the key held only the provider name while each request targets one provider plus one model. Now the refused model alone waits out its pause while siblings keep serving, and a refusal recorded without a model still covers the whole provider as before.
Related Issues
Validation
npm run lintTests Added Or Updated
tests/unit/opencode-free-tier-per-model-pause.test.ts: 14 cases covering sibling isolation, refused-model pause and expiry, combo-filter scoping, the no-auth pause envelope, model-less reads, unknown and blank models, normalization, the entry bound, and the non-family guard.Coverage Notes
open-sse/services/opencodeFreeTierSkip.ts: covered by the new per-model test (isolation, expiry, eviction, normalization, non-family guard).open-sse/services/autoCombo/resilienceCandidateFilter.ts: covered by the new per-model test (filter drops only the refused model; pool scenario).src/sse/services/noAuthModelCooldown.ts: covered by the new per-model test (envelope fires for the refused model only) plus the existing no-auth pause suite (unchanged, green).open-sse/handlers/chatCore.ts: one-line write threading, guarded by the existing no-auth suites driving the chat handler (unchanged, green), key semantics covered by the new per-model test.src/sse/services/auth.ts: four-site model threading, non-regression guarded by the existing no-auth suites (unchanged, green), pause semantics covered by the new per-model test.Reviewer Notes