anthropics / anthropics/claude-code

Inconsistent usage percentage display between VS Code extension and claude.ai

未关闭
#90,177 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:cost bug platform:vscode platform:windows
主要语言
Python
星标
145k
派生
23.1k
PR 合并指标
PR 指标待抓取

描述

### 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?

Description:
I'm reporting a discrepancy in weekly usage limit information shown across different Claude Pro surfaces.

Issue 1: Incorrect reset time prediction
- On Wednesday afternoon, the Claude Code extension in VS Code showed: "95% used, resets in 1 day."
- Today (Thursday), 24 hours later, the same VS Code extension shows 99% used — no reset has happened yet.
- Checking Settings > Usage on claude.ai just now confirms 99% used, with the actual reset scheduled for tomorrow, Friday at 19:00.
- So the original "resets in 1 day" message (Wednesday afternoon) was wrong — the real gap was almost 2 days, not 1.

Because of this wrong prediction, I kept working on Thursday morning believing I still had quota available, and ran out unexpectedly.

Issue 2: Simultaneous percentage mismatch
- Right now, at the same moment:
- VS Code (Claude Code extension): 99% used
- claude.ai (Settings > Usage): 99% used
- Claude desktop app (Cowork): 75% used — for the same account and the same period
- Screenshots available showing all values at the same moment.

Impact:
The wrong "1 day" prediction caused me to lose track of my real usage and run out of quota mid-task. The percentage mismatch between the Claude desktop app (Cowork) and the other two interfaces (VS Code, claude.ai) makes it impossible to trust any single number without cross-checking claude.ai directly..

Environment:
Plan: Claude Pro
VS Code extension on Windows and Claude desktop app (Cowork)

Related issues:
Similar behavior reported in #51222, #69082, #54974, #55150, #49616, #52921 (e.g.)

### What Should Happen?

The weekly reset countdown and usage percentage should be accurate and consistent across all interfaces (claude.ai, the VS Code extension, and the Claude desktop app), always matching the exact reset date/time shown in claude.ai (Settings > Usage).

### Error Messages/Logs

```shell

```

### Steps to Reproduce

1. Use Claude Code in VS Code until usage approaches ~98-99% of the weekly quota
2. Note the "resets in X days" message shown in the extension
3. Compare it with the exact reset timestamp shown in claude.ai (Settings > Usage)
4. Separately, check the usage percentage shown in the Claude desktop app (Cowork) at the same moment
5. Compare the three values (VS Code, claude.ai, Claude desktop app) side by side

Image

### Claude Model

Other

### Is this a regression?

I don't know

### Last Working Version

_No response_

### Claude Code Version

Claude Code 2.1.247

### Platform

Anthropic API

### Operating System

Ubuntu/Debian Linux

### Terminal/Shell

VS Code integrated terminal

### Additional Information

https://github.com/anthropics/claude-code/issues/51222
https://github.com/anthropics/claude-code/issues/69082
https://github.com/anthropics/claude-code/issues/54974
https://github.com/anthropics/claude-code/issues/55150
https://github.com/anthropics/claude-code/issues/49616
https://github.com/anthropics/claude-code/issues/52921

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by comparing the usage shown in the VS Code extension, claude.ai Settings > Usage, and the Claude desktop app's Cowork view at the same time. Reproduce the reset countdown and percentage discrepancy near 98–99% usage, then verify that all interfaces show the same percentage and exact reset time.

由索引模型根据 Issue 内容生成。

评估

技术栈
linux, ubuntu, vscode
领域
analytics, api, backend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
需要澄清
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。