Skip to content

fix(open-sse): replay title-shaped insufficient_quota refusals once - #15451

Merged
diegosouzapw merged 1 commit into
diegosouzapw:release/v3.8.52from
maxmad64bis:fix/insufficient-quota-replay
Oct 6, 2026
Merged

diegosouzapw merged 1 commit into
diegosouzapw:release/v3.8.52from
maxmad64bis:fix/insufficient-quota-replay

Conversation

@maxmad64bis

@maxmad64bis maxmad64bis commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ base-red inherited: #15306

Summary

A 403 or 451 title refusal carrying insufficient_quota was 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

  • Change type: provider
  • Focused tests and category gates from the golden path
  • npm run lint
  • Reconciled with the current active release base; focused checks rerun afterward
  • Production-code changes include a new or updated automated test in this PR

Tests 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 by tests/unit/opencode-shape-replay-insufficient-quota.test.ts.
  • open-sse/executors/opencodeRequestShape.ts: import and call only, covered by the same test.

Reviewer Notes

@maxmad64bis
maxmad64bis force-pushed the fix/insufficient-quota-replay branch from 4a7d701 to 5fd3417 Compare October 3, 2026 13:40
A 403 or 451 title refusal carrying the quota token now probes the other tool shape before surfacing exhausted credits.
@maxmad64bis
maxmad64bis force-pushed the fix/insufficient-quota-replay branch from 5fd3417 to a6634da Compare October 3, 2026 13:53
@maxmad64bis
maxmad64bis marked this pull request as ready for review October 3, 2026 14:33
@diegosouzapw
diegosouzapw merged commit 1fe734f into diegosouzapw:release/v3.8.52 Oct 6, 2026
122 of 144 checks passed
@maxmad64bis
maxmad64bis deleted the fix/insufficient-quota-replay branch October 7, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants