anthropics / anthropics/claude-code

[BUG] Session and weekly usage limits jump to a high percentage with no activity

オープン
#90,022 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:cost bug platform:macos
主要言語
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?

Hello,

I believe there is a usage accounting problem on my account and I'd like it investigated.

The issue:

1) Immediately after my five-hour session resets, the "Current session" value jumps straight to around 50% without me sending a single message. It is not a gradual increase — it goes up in one step.

2) The same happens with the weekly limit. When the weekly window renews, it does not start from zero but from an already high percentage.

In both cases I have no active usage at that moment: no new conversation, no messages sent, no background job running, and no other device or tab left open.

Account details:
- Name: Ahmet Balaman
- Account email: ahmetbalaman073@gmail.com
- Plan: [Pro / Max 5x / Max 20x]
- Primary surface: Claude Code (CLI) on macOS
- Date and time the jump was observed (UTC+3): [date/time]
- Screenshots attached: Settings > Usage, before and after the jump

Could you please review how usage is being metered on my account and explain why these percentages increase this way? If there is an accounting error, I'd appreciate it being corrected and the lost usage restored.

Thank you,
Ahmet Balaman

Image

### What Should Happen?

Please fix it

### Error Messages/Logs

```shell

```

### Steps to Reproduce

Hello,

I believe there is a usage accounting problem on my account and I'd like it investigated.

The issue:

1) Immediately after my five-hour session resets, the "Current session" value jumps straight to around 50% without me sending a single message. It is not a gradual increase — it goes up in one step.

2) The same happens with the weekly limit. When the weekly window renews, it does not start from zero but from an already high percentage.

In both cases I have no active usage at that moment: no new conversation, no messages sent, no background job running, and no other device or tab left open.

Account details:
- Name: Ahmet Balaman
- Account email: ahmetbalaman073@gmail.com
- Plan: [Pro / Max 5x / Max 20x]
- Primary surface: Claude Code (CLI) on macOS
- Date and time the jump was observed (UTC+3): [date/time]
- Screenshots attached: Settings > Usage, before and after the jump

Could you please review how usage is being metered on my account and explain why these percentages increase this way? If there is an accounting error, I'd appreciate it being corrected and the lost usage restored.

Thank you,
Ahmet Balaman

Image

### Claude Model

None

### Is this a regression?

Yes, this worked in a previous version

### Last Working Version

_No response_

### Claude Code Version

2.1.247

### Platform

Anthropic API

### Operating System

macOS

### Terminal/Shell

Terminal.app (macOS)

### Additional Information

_No response_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

No source files or tests are named. Start with Claude Code 2.1.247 on macOS and the Settings > Usage view; compare session and weekly values immediately before and after each reset using the missing UTC+3 timestamps and screenshots. Confirm whether any messages, jobs, devices, or tabs were active. Done means the accounting cause is identified and the usage is corrected or the behavior explained.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api, cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。