Stats cache not updating since March 2, 2026 - 283+ sessions not tracked
Resolved 💬 2 comments Opened Apr 10, 2026 by sanjog2022 Closed May 24, 2026
Description
The ~/.claude/stats-cache.json file has not been updated since March 2, 2026, despite 283+ active sessions being created since then. All session data is being properly saved to .jsonl files, but the aggregated statistics are not being computed.
Environment
- Claude Code Version: 2.0.64
- OS: macOS (Darwin 25.3.0, ARM64)
- Date Reported: April 10, 2026
Steps to Reproduce
- Check last update date in
~/.claude/stats-cache.json - Compare with recent session files in
~/.claude/projects/ - Observe gap of over 1 month with no stats updates
Expected Behavior
The stats cache should be continuously updated with:
- Daily activity counts (messages, sessions, tool calls)
- Token usage per model
- Cost calculations
- Session statistics
Actual Behavior
- Last computed date in stats file:
"lastComputedDate": "2026-03-01" - File modification time: March 2, 2026 at 16:43:24
- 283+ session files created since March 2 are not reflected in stats
- All individual session
.jsonlfiles are being saved correctly
Additional Context
All session transcripts are being properly written to ~/.claude/projects/, so the issue appears to be specifically with the stats aggregation process. No visible errors are shown during normal Claude Code usage.
Evidence
$ stat ~/.claude/stats-cache.json
Last modified: Mar 2 16:43:24 2026
$ find ~/.claude/projects -name "*.jsonl" -type f -newermt "2026-03-02" | wc -l
283This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗