/insights crashes with TypeError: v.split is not a function on v2.1.34
Resolved 💬 3 comments Opened Feb 7, 2026 by micahbrich Closed Feb 10, 2026
Bug Description
Running /insights immediately crashes with:
TypeError: v.split is not a function. (In 'v.split(`\n`)', 'v.split' is undefined)
This is a different crash from #23138 (Object.keys(b) on undefined). The workarounds from that thread (deleting corrupted facet files, pre-creating valid facet files for all sessions) do not resolve this issue.
Steps to reproduce
- Run
/insightsfrom any directory (tried both git repos and non-git directories)
What was tried
- Pre-created valid facet files for all 1,402 sessions in
~/.claude/usage-data/facets/— no effect - Ran
grep -l '"error":' ~/.claude/usage-data/facets/*.json | xargs rm -v— no corrupted files found - Created
~/.claude/usage-data/facets/directory manually — no effect - Tried running from different working directories (git repo vs non-git) — no effect
Notes
- The error does not appear in the debug log at all, suggesting it crashes in the UI/rendering layer before any debug logging occurs
- The debug log only shows standard MCP startup errors and AxiosErrors unrelated to
/insights
Environment Info
- Platform: darwin (macOS 24.3.0)
- Terminal: iTerm / CLI
- Version: 2.1.34
Related
- #23138 (similar but different crash path)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗