[BUG] "All Time" stats inconsistent with "30 days"

Resolved 💬 5 comments Opened Mar 31, 2026 by initdav Closed May 11, 2026

Preflight Checklist

  • [x] I have searched existing issues 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?

There appears to be an inconsistency between the "All Time" and "30 days" statistics in Claude Code.

Based on my usage timeline, these two views should be aligned (or at least logically consistent), but they report significantly different values.

  • I started using Claude Code on this machine around March 11–12
  • The "30 days" view should include all of my usage (since it extends back to ~Feb 26)
  • As a result, "All Time" and "30 days" should be equivalent or nearly identical

From the screenshots:

  • All Time
  • Total tokens: ~1.8M
  • Sessions: 140
  • 30 days
  • Total tokens: ~920k
  • Sessions: 68

This is roughly 2x difference, which doesn’t align with the actual usage window.

What Should Happen?

If all usage falls within the last 30 days:

  • "All Time" ~~ "30 days"
  • Metrics such as:
  • total tokens
  • number of sessions
  • activity heatmap

Should match or be very close

Steps to Reproduce

  1. Start using Claude Code on a fresh machine/account
  2. Use it actively within a period < 30 days
  3. Compare:
  • /stats → "All Time"
  • /stats → "30 days"
  1. Observe discrepancies

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.87

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

All Time

<img width="1200" height="681" alt="Image" src="https://github.com/user-attachments/assets/a167eebb-8fc8-46bf-b135-9e4a2b70612d" />

30 Days

<img width="1200" height="681" alt="Image" src="https://github.com/user-attachments/assets/88f0c48b-ec7e-44b6-8b7f-fb0020676695" />

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗