[BUG] stats-cache.json missing daily data for 2026-02-28
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?
stats-cache.json has no entry for 2026-02-28 in either dailyActivity or dailyModelTokens, despite
multiple active CLI sessions that day. Surrounding dates are present and correct:
2026-02-27 — recorded (5,806 messages, 4 sessions)
2026-02-28 — missing
2026-03-01 — recorded (3,676 messages, 5 sessions)
The file's lastComputedDate is 2026-03-01. 2026 is not a leap year, so Feb 28 is the last day of the
month — possibly an edge case in end-of-February date handling.
Environment:
- Windows 11
- Claude Code CLI (Git Bash)
- stats-cache.json version: 2
What Should Happen?
the data should be there
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
- Use Claude Code CLI on February 28 in a non-leap year
- Use it again on March 1
- Check ~/.claude/stats-cache.json — Feb 28 entry is absent
Note: I can't confirm whether this reproduces every non-leap year Feb 28 or was a one-time
occurrence. The end-of-February timing is the most obvious suspect.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.63
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
<img width="1865" height="581" alt="Image" src="https://github.com/user-attachments/assets/c0963034-b880-43e7-b17a-085c9d0fcda5" />
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗