/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

  • /insights reports 10,412 sessions, ~98k messages
  • Actual data in stats-cache.json: 451 sessions, 190k messages
  • Only ~1000 .jsonl files 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.json isn'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

  1. Run /insights
  2. Compare reported session count to:
  • cat ~/.claude/stats-cache.json | jq '.totalSessions'
  • find ~/.claude/projects -name "*.jsonl" | wc -l
  1. Numbers don't match (off by ~20x in my case)

Additional bugs found

  • /bug and /feedback commands 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

View original on GitHub ↗

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