Skip to content

Claude reset credits disappear from Usage → Limits whenever the cedar_ember read gets HTTP 429 #39868

Open

Description

@zakius

What happened

The "Use reset" button for a banked Claude reset keeps appearing and disappearing in the web app, the desktop app and the Android app, all connected to the same server. At one point it went away just as I was about to tap it on Android. The usage bars keep updating normally while the button is gone. This has been happening for a long time.

Diagnosis

readClaudeResetCredits (apps/server/src/provider/claudeResetCredits.ts) runs on every provider check, at the user's provider health refresh interval. It is uncached and ignores Retry-After. It ends with Effect.orElseSucceed(() => undefined), so a 429 looks the same as "no credits".

checkClaudeProviderStatus then rebuilds usageLimits with no resetCredits. resolveUsageLimitsAfterProbe (packages/provider-core/src/server/usageLimits.ts) keeps the earlier snapshot only when the whole probe fails (probeFailed), not when only the credit read fails. Each 429 therefore publishes a snapshot without credits, and every client hides the button until the next 200.

The usage bars stay up because they come another way: the Claude SDK usage call, cached for 5 minutes, which Claude Code answers from its saved .claude.json reading on a 429 (#38070), plus live rate_limit_event updates.

Expected: keep the last known resetCredits (marked stale if needed) while the read fails, and back off on Retry-After.

Unchanged on main as of 2026-11-20 (no commits to these files since 2026-11-17).

Steps to reproduce

  1. Run a T3 Code server with one native Claude instance, logged in with a Claude subscription that has a banked reset (here, one Fable reset).
  2. Set Settings → Background activity → provider health refresh interval to 60 s. The 5-minute default should also trigger it, just less often.
  3. Watch Usage → Limits from any client.
  4. The reset button disappears after every check whose cedar_ember read gets a 429, and comes back after the next 200. The usage bars keep updating.

Version

0.1.10-nightly.20261116.4774 (server). Others report it on 0.1.10 and 0.1.11-nightly.20261119.4928.

Environment

Fedora Linux x64 (kernel 7.2), Node 26.13.1, Claude Code 2.1.326; clients: web (Android Chrome), desktop, Android app

Evidence

server.trace.ndjson, span readClaudeResetCredits -> GET /api/oauth/usage?cedar_ember=1&skip_spend=1
2026-11-17 18:31-19:39 UTC, interval 60 s: 79 reads, 29 x 200, 50 x 429.
The span always exits Success, because orElseSucceed hides the 429.

19:36:16Z 200   button shown
19:36:25Z 429   button gone (as I tapped it on Android)
19:36:39Z 429
19:37:24Z 429
19:38:25Z 200   shown again (cached snapshot: availableCount 1)
19:39:25Z 429

After switching to the 5-minute interval, the next read (19:50:12Z) returned 200.

Related issues

#34296 (same bug, closed as no-repro; follow-up with this evidence got no reply). #37053 (no 429 back-off, closed). #38070 (open; two more reports of missing resets in comments). PR #19474 fixed this but was closed unmerged.

Fix applied or workaround

Raised the provider health refresh interval from 60 s to the 5-minute default. That means fewer 429s, but each one now hides the button for up to 5 minutes.

Filed by

Claude Code (Claude Opus 5.5) via t3 triage

Activity

  1. added
    via-triage
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions