[BUG] TypeError in /insights command: undefined is not an object

Resolved 💬 4 comments Opened Feb 5, 2026 by ravi03071991 Closed Feb 5, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The /insights command throws a TypeError immediately when invoked. The command fails before displaying any output.

What Should Happen?

The /insights command should display usage insights/statistics without throwing an error.

Error Messages/Logs

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

Steps to Reproduce

  1. Open Claude Code CLI
  2. Run the /insights command
  3. Error is thrown immediately

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.31

Platform

Google Vertex AI

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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