anthropics / anthropics/claude-code

[BUG] "Last updated" refresh does not update the remaining credit

Open
#95,487 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:cost bug platform:web
Dominant language
TypeScript
Stars
146k
Forks
23.8k
PR merge metrics
PR metrics pending

Description

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code

### What's Wrong?

At https://claude.ai/new#settings/usage, when I press the "Last updated" icon (round arrow), it does not refresh the available "Remaining" credit of "Usage credits".

Only when I close the Usage popup window, and open the window again, the current "Remaining" value is updated.

### What Should Happen?

The "Last updated" icon (round arrow), when pressed, updates the "Remaining" value of "Usage credits", in the same way as it updates the "Current session" and "This week usage" indicator bars and percentages.

### Error Messages/Logs

```shell

```

### Steps to Reproduce

1. While using credits for Claude Code CLI, go to https://claude.ai/new#settings/usage
2. Wait several minutes, then click the round arrow of the "Last updated" line.
3. The "Usage credits" and "Remaining" values don't change. See the first screenshot below.
4. Close the "Usage" popup window and open it again. Note that the ""Usage credits" and "Remaining" values are updated. See the second screenshot below.

Note also that "Monthly spend" limit value is updated (compare the two screenshots) by clicking the round arrow of the "Last updated" line.

### Claude Model

Not sure / Multiple models

### Is this a regression?

I don't know

### Last Working Version

_No response_

### Claude Code Version

2.1.274 (Claude Code)

### Platform

Anthropic API

### Operating System

Ubuntu/Debian Linux

### Terminal/Shell

Other

### Additional Information

## First screenshot - Remaining value not updated

Image

## Second screenshot - Remaining value updated

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start at the usage settings view and trace the refresh action, comparing how it updates the session, weekly usage, and remaining-credit values; done means clicking the refresh icon updates Remaining without closing and reopening the popup.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.