[BUG] CLI crashes with "undefined is not an object (evaluating 'H.slice')" during message processing

Resolved 💬 3 comments Opened Mar 26, 2026 by ZilinXiang Closed Mar 30, 2026

Description

Claude Code CLI crashes with TypeError: undefined is not an object (evaluating 'H.slice') during an active session. The crash occurs in the message/content rendering pipeline in the bundled CLI code.

Error Details

ERROR  undefined is not an object (evaluating 'H.slice')

 /$bunfs/root/src/entrypoints/cli.js:7206:1286

The crash site is near the sNH(H) / AtH(H, _) functions in the minified code, which handle message content template concatenation and rendering.

Environment

  • Claude Code version: 2.1.84
  • Platform: macOS (Darwin 24.6.0)
  • Shell: zsh

Steps to Reproduce

The crash occurred during normal interactive usage (mid-session). Exact trigger is unclear but appears related to message content processing where a content block is unexpectedly undefined.

Related Issues

This appears to be in the same family of "undefined is not an object" crashes in the message processing pipeline:

  • #24646 (H.match variant)
  • #32160 (gH(M).length variant)
  • #35041 (H.type variant)
  • #26306 (T.includes variant)
  • #14620 (R.map / T.match variant)

All share the pattern of a minified variable being undefined when the rendering/processing code attempts to call a method on it.

Expected Behavior

Claude Code should handle potentially undefined message content gracefully instead of crashing.

View original on GitHub ↗

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