/insights command throws TypeError: undefined is not an object (evaluating 'Object.keys(b)')

Resolved 💬 3 comments Opened Feb 10, 2026 by xueyuanhuang Closed Feb 13, 2026

Bug Report

Command: /insights

Error:

TypeError: undefined is not an object (evaluating 'Object.keys(b)')

Version: Claude Code 2.1.34

Platform: macOS (Darwin 23.6.0)

Steps to Reproduce:

  1. Run /insights command with no arguments
  2. Command fails with TypeError

Expected Behavior:
The insights command should display conversation insights or a helpful message if no insights are available.

Actual Behavior:
JavaScript error is thrown and no output is displayed.

This appears to be a bug where the command attempts to call Object.keys() on an undefined value (variable b), likely due to missing data or improper null/undefined handling.

🤖 Generated with Claude Code

View original on GitHub ↗

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