/insights command crashes with TypeError: u.split is not a function

Resolved 💬 7 comments Opened Mar 5, 2026 by salvoravida Closed Apr 23, 2026

Bug Description

Running the /insights command in Claude Code CLI crashes with:

TypeError: u.split is not a function. (In 'u.split(`\n`)', 'u.split' is undefined)

Steps to Reproduce

  1. Open Claude Code CLI in any project directory
  2. Run /insights
  3. Observe the error

Expected Behavior

The /insights command should display insights without crashing.

Actual Behavior

The command crashes immediately with a TypeError because it tries to call .split('\n') on a value that is undefined.

Environment

  • OS: macOS (Darwin 25.3.0)
  • Shell: zsh
  • Model: claude-opus-4-6

View original on GitHub ↗

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