/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
- Open a Claude Code session
- Run
/insights - 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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗