/insights: qualitative sections empty — facets generation silently fails

Resolved 💬 3 comments Opened Feb 25, 2026 by ppsplus-bradh Closed Feb 28, 2026

Bug Description

Running /insights generates a report with all quantitative sections populated (tool usage, languages, time-of-day, multi-clauding, errors) but all qualitative/narrative sections are empty or show "No data."

Affected Sections

These sections in the generated report.html are empty:

  • "What You Wanted" chart — "No data"
  • "Session Types" chart — "No data"
  • "What Helped Most (Claude's Capabilities)" — "No data"
  • "Outcomes" — "No data"
  • "Primary Friction Types" — "No data"
  • "Inferred Satisfaction" — "No data"
  • At a Glance summary — missing entirely from HTML
  • Project Areas — missing
  • Wins / Big Wins — missing
  • Friction details — missing
  • Features to Try — missing
  • New Usage Patterns — missing
  • On the Horizon — missing
  • Team Feedback — missing

Working Sections

Quantitative sections render correctly:

  • Top-level stats (messages, lines, files, days)
  • Top Tools Used (with counts)
  • Languages breakdown
  • User Messages by Time of Day
  • Multi-Clauding (parallel sessions)
  • Tool Errors Encountered
  • User Response Time Distribution

Root Cause Investigation

The facets/ directory (referenced by the insights output) does not exist. The pipeline appears to be:

  1. Session metadata~/.claude/usage-data/session-meta/ — ✅ 165 JSON files present with quantitative data (tool_counts, languages, git_commits, tokens, response_times, first_prompt, etc.)
  2. Facets generation (LLM analysis of session metadata → qualitative summaries) → ~/.claude/usage-data/facets/ — ❌ Directory never created
  3. Report generation (facets + raw data → HTML) → ~/.claude/usage-data/report.html — ⚠️ Partially generated (only raw data sections)

The facets generation step is silently failing. No error is reported to the user — the command completes normally and shows the report link.

Expected Behavior

  • Either populate the qualitative sections, or
  • Surface an error message explaining why they couldn't be generated (e.g., token budget exceeded, LLM call failed, timeout)

Environment

  • Claude Code model: claude-opus-4-6
  • Platform: Windows 11 (Git Bash)
  • Sessions: 195 total, 148 analyzed, 2,876 messages over 25 days
  • Session metadata files: 165
  • Ran /insights multiple times with the same result each time

Reproduction

  1. Have a substantial session history (~150+ sessions)
  2. Run /insights
  3. Observe that quantitative charts render but narrative sections are all empty
  4. Check ~/.claude/usage-data/facets/ — directory does not exist

View original on GitHub ↗

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