claude-code - 💡(How to fix) Fix [BUG] Extra-usage balance on claude.ai/settings/usage does not update without page refresh [3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48093Fetched 2026-04-15 06:33:25
View on GitHub
Comments
3
Participants
2
Timeline
10
Reactions
0
Timeline (top)
commented ×3cross-referenced ×2mentioned ×2subscribed ×2

On the claude.ai settings/usage page, the quota gauges (Q5h, Q7d) update dynamically via ajax, but the extra-usage credit balance does not. The dollar amount remains stale until the user manually refreshes the page.

Root Cause

When a user crosses 100% Q5h and enters extra-usage billing:

  • The quota gauge correctly shows 100% (live update)
  • The extra-usage balance appears unchanged because it doesn't refresh
  • The user has no real-time indication that credits are being consumed
  • By the time they notice (manual refresh or next page load), significant extra-usage charges may have accumulated
RAW_BUFFERClick to expand / collapse

Summary

On the claude.ai settings/usage page, the quota gauges (Q5h, Q7d) update dynamically via ajax, but the extra-usage credit balance does not. The dollar amount remains stale until the user manually refreshes the page.

Impact

When a user crosses 100% Q5h and enters extra-usage billing:

  • The quota gauge correctly shows 100% (live update)
  • The extra-usage balance appears unchanged because it doesn't refresh
  • The user has no real-time indication that credits are being consumed
  • By the time they notice (manual refresh or next page load), significant extra-usage charges may have accumulated

Community report from @przadka on #41930: extra_usage.used_credits went from $56.66 → $83.94 (+$27.28) between two API checks, with no visible change on the web UI.

Steps to Reproduce

  1. Use Claude Code on a Max plan until Q5h reaches 100%
  2. Continue working (extra-usage billing activates)
  3. Observe claude.ai/settings/usage — quota gauge shows 100% but the extra-usage dollar amount does not change
  4. Refresh the page — the balance jumps to reflect actual spend

Expected Behavior

The extra-usage balance should update dynamically (same ajax pattern as the quota gauges), especially since this is the moment users most need real-time cost visibility.

Related

  • #41930 — przadka's data showing the mismatch
  • #47512 — broader auth/frontend dependency issues

extent analysis

TL;DR

Update the AJAX request to include the extra-usage balance, ensuring it refreshes dynamically alongside the quota gauges.

Guidance

  • Investigate the current AJAX implementation for updating quota gauges (Q5h, Q7d) and extend it to include the extra-usage balance.
  • Verify that the API endpoint used for updating the quota gauges also returns the extra-usage balance or modify it to do so if necessary.
  • Check for any caching mechanisms that might prevent the extra-usage balance from updating in real-time and adjust them accordingly.
  • Consider adding a timestamp or version number to the AJAX response to ensure the client-side can detect updates to the extra-usage balance.

Example

No specific code example can be provided without knowing the exact implementation details, but the idea would be to modify the existing AJAX call to include an update for the extra-usage balance, similar to how the quota gauges are updated.

Notes

The solution assumes that the API endpoint used for updating the quota gauges can also provide the extra-usage balance. If this is not the case, additional backend changes might be necessary to expose this information.

Recommendation

Apply a workaround by modifying the AJAX request to include the extra-usage balance, as this directly addresses the reported issue and provides real-time cost visibility to users when they need it most.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Extra-usage balance on claude.ai/settings/usage does not update without page refresh [3 comments, 2 participants]