/insights reports wildly inflated session counts (10k+ instead of actual ~450)
Resolved 💬 2 comments Opened Feb 4, 2026 by andrewting19 Closed Feb 5, 2026
Description
The /insights command generates fabricated aggregate statistics that don't match actual usage data.
Observed behavior
/insightsreports 10,412 sessions, ~98k messages- Actual data in
stats-cache.json: 451 sessions, 190k messages - Only ~1000
.jsonlfiles exist in.claude/projects/ - Clearing all cached data (
rm -rf ~/.claude/usage-data/ ~/.claude/stats-cache.json) and regenerating produces the same wrong numbers - After fresh regeneration,
stats-cache.jsonisn't even created, but report still shows 10k+ sessions
Expected behavior
Session counts should match actual session files or stats-cache.json data.
Steps to reproduce
- Run
/insights - Compare reported session count to:
cat ~/.claude/stats-cache.json | jq '.totalSessions'find ~/.claude/projects -name "*.jsonl" | wc -l
- Numbers don't match (off by ~20x in my case)
Additional bugs found
/bugand/feedbackcommands cancel when user starts typing, making it impossible to report issues from within Claude Code
Environment
- Version: 2.1.31
- OS: macOS (Darwin 24.5.0), arm64
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗