Files
OmniRoute/tests
Diego Rodrigues de Sa e Souza 4a734734c4 fix(claude-oauth): respect 429 backoff on usage endpoint to reduce spam
Anthropic rate-limits the OAuth quota endpoint
(`/api/oauth/usage`) independently of `/v1/messages`. When several
connections polled at once, the dashboard hammered it and surfaced
noisy 429s. After a 429 we now cool down OAuth usage polling for that
access token (3 min) and transparently fall back to the legacy
settings/org endpoint — chat with the same token is unaffected.

The cooldown lives in a small pure helper module
(`open-sse/services/claudeUsageCooldown.ts`) so the policy is
TDD-covered without touching fetch.

Co-authored-by: decolua <decoluadt@example.com>
Inspired-by: https://github.com/decolua/9router/commit/79df34ca
2026-06-23 21:56:10 -03:00
..
2026-06-17 19:26:32 -03:00
2026-05-23 01:46:59 -03:00
2026-06-20 07:09:43 -03:00
2026-06-19 06:49:01 -03:00
2026-06-23 17:06:18 -03:00
2026-06-10 13:49:08 -03:00
2026-06-13 17:27:40 -03:00