[Bug]: Claude Monthly spend limit omits the reported budget amounts#27344

opened12d agobyVvladikkuzn

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Sign in to the Claude provider with an Enterprise (or usage-credit) plan that reports a monthly spending budget.
  2. Open Usage → Limits.

Expected behavior

Show the provider-reported amounts under the bar, as Claude Code's own /usage does:

1Usage credits
2██████████████████████████████████▎ 68% used
3$342.60 / $500.00 spent

This is the follow-up left open in #10155. Its triage listed "$46.31 of $500.00 used" as the expected behavior and noted that it "needs optional used/limit/currency on the window … plus a small Limits-row change". When #10155 was closed, the comment said: "The fix reports percentage utilization; it does not yet display the dollar amounts."

Actual behavior

The Claude card shows only "Monthly spend — 30% left" and the bar. claudeUsageResponseToLimits already reads rate_limits.spend.used / .limit (amount_minor, currency, exponent) and extra_usage.used_credits / monthly_limit to compute the percentage. It then drops the amounts because ServerProviderUsageWindow holds only usedPercent.

The reset date is out of scope. get_usage does not report one for the spend budget. Claude Code shows the first of the next month, computed on the client.

Impact

Minor bug or occasional failure

Version or commit

main @ c8a606c7b7

Environment

macOS, Claude Enterprise account with a USD monthly budget, Claude Agent SDK 0.3.276