Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
441a17a
fix(sse): scope Claude rate limits per model
riez Sep 16, 2026
2a967d7
docs: add Claude quota fix changelog fragment
riez Sep 16, 2026
68429e2
fix(sse): use Claude scoped quota evidence
riez Sep 17, 2026
99a19fc
Merge remote-tracking branch 'upstream/release/v3.8.51' into fix/clau…
riez Sep 17, 2026
8a3c3ce
chore(quality): reconcile release validation baselines
riez Sep 17, 2026
9c5f41a
test(integration): stabilize routing validation
riez Sep 17, 2026
4ae95fa
Merge remote-tracking branch 'upstream/release/v3.8.51' into fix/clau…
riez Sep 17, 2026
bd0bd36
chore(quality): restore file-size gate
riez Sep 17, 2026
d7db9fb
Merge remote-tracking branch 'upstream/release/v3.8.51' into fix/clau…
riez Sep 17, 2026
39069b7
Merge remote-tracking branch 'upstream/release/v3.8.51' into fix/clau…
riez Sep 17, 2026
3f5d7c9
fix(claude): honor authoritative quota scope
riez Sep 17, 2026
c481124
Merge upstream release/v3.8.51
riez Sep 17, 2026
a91bba7
Merge remote-tracking branch 'upstream/release/v3.8.51' into fix/clau…
riez Sep 17, 2026
5991b3d
merge: sync upstream release/v3.8.51
riez Sep 19, 2026
0d9299d
merge: sync latest upstream release fixes
riez Sep 19, 2026
6b2a0f7
fix(sse): preserve unresolved Claude quotas and exact versions
riez Sep 22, 2026
27d5161
fix(usage): stabilize Claude surface quota identities
riez Sep 22, 2026
9a2ae7a
merge: reconcile upstream release/v3.8.51 quota routing changes
riez Sep 22, 2026
935d4fc
Merge remote-tracking branch 'origin/release/v3.8.51' into HEAD
diegosouzapw Sep 24, 2026
879b20f
test(combo): make stale Claude quota fixture robust to fetchedAt jitter
riez Sep 24, 2026
c124179
chore: merge upstream release/v3.8.51 into quota-scope fix
riez Sep 24, 2026
e4d9644
chore: merge release/v3.8.51 into fix/claude-model-quota-scope
diegosouzapw Sep 29, 2026
6a01c6d
chore: merge release/v3.8.51 into fix/claude-model-quota-scope
diegosouzapw Sep 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/fixes/13888-claude-model-scoped-429.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- **fix(sse):** Keep native Claude model quota limits scoped to the affected model so sibling models remain routable ([#13888](https://github.com/diegosouzapw/OmniRoute/pull/13888)) - thanks @riez
2 changes: 1 addition & 1 deletion open-sse/services/accountFallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ export function hasPerModelQuota(
const canonicalId = resolveProviderId(provider);
if (getCanonicalLockProvider(canonicalId) === "antigravity") return true;
if (getCanonicalLockProvider(canonicalId) === "codex") return true;
if (canonicalId === "gemini" || canonicalId === "github") return true;
if (canonicalId === "claude" || canonicalId === "gemini" || canonicalId === "github") return true;
if (canonicalId === "antigravity" || canonicalId === "agy") return true;
if (getPassthroughProviders().has(canonicalId)) return true;
// #11071: getPassthroughProviders() reads the open-sse REGISTRY. A provider can declare
Expand Down
38 changes: 38 additions & 0 deletions tests/unit/sse-auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,44 @@ test("markAccountUnavailable applies a model-only lockout for Gemini 429 respons
assert.equal(Number(updated.errorCode), 429);
});

test("markAccountUnavailable scopes native Claude account rate limits to the failed model", async () => {
const failedModel = "claude-fable-5-1";
const siblingModel = "claude-opus-5";
const connection = await seedConnection("claude", {
name: "claude-model-limit",
authType: "oauth",
accessToken: "claude-model-limit-access",
refreshToken: "claude-model-limit-refresh",
});

const result = await auth.markAccountUnavailable(
connection.id,
429,
"This request would exceed your account's rate limit. Please try again later.",
"claude",
failedModel
);
await flushWrites();
const updated = await providersDb.getProviderConnectionById(connection.id);

assert.equal(result.shouldFallback, true);
assert.ok(result.cooldownMs > 0);
assert.equal(updated.isActive, true);
assert.equal(updated.testStatus, "active");
assert.equal(updated.rateLimitedUntil, undefined);
assert.equal(fallback.isModelLocked("claude", connection.id, failedModel), true);
assert.equal(fallback.isModelLocked("claude", connection.id, siblingModel), false);

const failedSelection = await auth.getProviderCredentials("claude", null, null, failedModel);
const siblingSelection = await auth.getProviderCredentials("claude", null, null, siblingModel);

assert.equal(failedSelection.allRateLimited, true);
assert.equal(failedSelection.cooldownScope, "model");
assert.equal(failedSelection.cooldownModel, failedModel);
assert.equal(siblingSelection.connectionId, connection.id);
assert.equal(siblingSelection.authType, "oauth");
});

test("markAccountUnavailable applies a model-only lockout for compatible provider 429 responses", async () => {
const connection = await seedConnection("openai-compatible-custom-node", {
name: "compatible-model-limit",
Expand Down