/insights command throws TypeError: Cannot convert undefined or null to object

Resolved 💬 3 comments Opened Feb 18, 2026 by morecoffeyplease Closed Feb 18, 2026

Description

Running the /insights built-in command throws an error:

TypeError: Cannot convert undefined or null to object

Steps to Reproduce

  1. Open a Claude Code session
  2. Run /insights
  3. Error is thrown immediately

Expected Behavior

The /insights command should display session insights without error.

Environment

  • Claude Code version: 2.1.37
  • Node.js version: v25.2.1
  • OS: macOS 15.7.2 (Build 24G325)
  • Architecture: arm64 (Apple Silicon)
  • Shell: zsh

View original on GitHub ↗

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