TypeError: null is not an object (evaluating 'q.split') in diff rendering

Resolved 💬 2 comments Opened Mar 22, 2026 by wxmpro Closed May 26, 2026

Bug Description

Encountered a crash when Claude Code tried to render a diff preview. The error occurs in the CLI's internal diff rendering logic.

Error Stack Trace

TypeError: null is not an object (evaluating 'q.split')
/$bunfs/root/src/entrypoints/cli.js:3142:2024

Full stack trace context:

kF7 (/$bunfs/root/src/entrypoints/cli.js:3142:2024)
EW7 (/$bunfs/root/src/entrypoints/cli.js:2593:44450)
SA (/$bunfs/root/src/entrypoints/cli.js:675:21000)
BH (/$bunfs/root/src/entrypoints/cli.js:675:39546)
G8 (/$bunfs/root/src/entrypoints/cli.js:675:50237)
Ce_ (/$bunfs/root/src/entrypoints/cli.js:675:86958)

Environment

  • OS: macOS Darwin 25.3.0
  • Shell: zsh
  • Git repository with many deleted files pending changes

Context

The error occurred when processing a diff/patch preview. The codebase had:

  • Multiple deleted files (D status in git)
  • Large diff output

Expected Behavior

CLI should handle null values gracefully when rendering diffs, rather than crashing with a TypeError.

Actual Behavior

CLI crashes with null is not an object (evaluating 'q.split') when attempting to render certain diff content.

View original on GitHub ↗

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