Skip to content

test(providers): pin opencode 400 model-unavailable catalog rule at registry level - #14251

Merged
diegosouzapw merged 1 commit into
cheaper-inference:release/v3.8.51from
maxmad64bis:fix/opencode-400-model-unavailable-rule
Sep 22, 2026
Merged

diegosouzapw merged 1 commit into
cheaper-inference:release/v3.8.51from
maxmad64bis:fix/opencode-400-model-unavailable-rule

Conversation

@maxmad64bis

@maxmad64bis maxmad64bis commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ base-red inherited: #13866

Summary

When the upstream reports a model as unavailable with a 400, the catalog rule now pins that outcome at registry level with a model-scoped lock and a bounded cooldown. Any other 400 from the same provider stays terminal and locks nothing. This is a catalog default only; the same effect was already reachable per install through settings.providerErrorRules.

Related Issues

Validation

  • Change type: provider
  • Focused tests and category gates from the golden path
  • npm run lint — ESLint on the touched test file is clean; the full run is red on the base (🔴 Release branch not green: release/v3.8.51 #13866), unrelated to this diff
  • 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-400-model-unavailable-registry.test.ts (new, 3 cases: marked 400 locks the model, unmarked 400 stays terminal, cooldown comes from the rule; RED shown by local marker neutralization, restored byte-identical)
  • Neighbors re-run green (5/5 + 9/9 on the two adjacent registry suites)

Coverage Notes

  • Test-only change: no production file touched (git diff upstream/release/v3.8.51 -- open-sse/ is empty).
  • No coverage movement.

Reviewer Notes

@maxmad64bis
maxmad64bis force-pushed the fix/opencode-400-model-unavailable-rule branch from 5124ba1 to a3504f7 Compare September 20, 2026 08:38
@maxmad64bis
maxmad64bis marked this pull request as ready for review September 20, 2026 08:42
@maxmad64bis
maxmad64bis force-pushed the fix/opencode-400-model-unavailable-rule branch from a3504f7 to 5ca7ec8 Compare September 20, 2026 09:00
@diegosouzapw
diegosouzapw merged commit 84988bd into cheaper-inference:release/v3.8.51 Sep 22, 2026
7 of 16 checks passed
@maxmad64bis
maxmad64bis deleted the fix/opencode-400-model-unavailable-rule branch September 24, 2026 21:14
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