Repository navigation
fix(open-sse): replay title-shaped insufficient_quota refusals once - #15451
Merged
diegosouzapw merged 1 commit intoOct 6, 2026
Merged
diegosouzapw merged 1 commit into
diegosouzapw merged 1 commit into
Conversation
maxmad64bis
force-pushed
the
fix/insufficient-quota-replay
branch
from
October 3, 2026 13:40
4a7d701 to
5fd3417
Compare
A 403 or 451 title refusal carrying the quota token now probes the other tool shape before surfacing exhausted credits.
maxmad64bis
force-pushed
the
fix/insufficient-quota-replay
branch
from
October 3, 2026 13:53
5fd3417 to
a6634da
Compare
maxmad64bis
marked this pull request as ready for review
October 3, 2026 14:33
5 tasks
diegosouzapw
merged commit Oct 6, 2026
1fe734f
into
diegosouzapw:release/v3.8.52
122 of 144 checks passed
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 403 or 451 title refusal carrying
insufficient_quotawas returned as-is instead of probing the other tool shape. The shape replay now recognizes the token and tries once more before surfacing exhausted credits.Related Issues
Validation
npm run lintTests Added Or Updated
tests/unit/opencode-shape-replay-insufficient-quota.test.ts: quota token on either shape replays once; exhausted credits unchanged when both shapes refuse; exclusion signals still win.Coverage Notes
open-sse/executors/opencodeGeoBlock.ts: covered bytests/unit/opencode-shape-replay-insufficient-quota.test.ts.open-sse/executors/opencodeRequestShape.ts: import and call only, covered by the same test.Reviewer Notes