[BUG] Plan mode freezes with "Path contains null bytes" error

Resolved 💬 2 comments Opened Oct 18, 2025 by Monireach88 Closed Oct 18, 2025

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?

Description:

Claude Code freezes in plan mode after asking questions, with the following error:

⏸ plan mode on (shift+tab to cycle)
This error originated either by throwing inside of an async function without a catch block,
or by rejecting a promise which was not handled with .catch(). The promise rejected with the
reason:
Error: Path contains null bytes
at $4 (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cl
i.js:64:1647)
at Y (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cli
.js:1423:10619)
at Y (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cli
.js:1423:10656)
at Y (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cli
.js:1423:10656)
at Y (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cli
.js:1423:10656)
at Y (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cli
.js:1423:10656)

Environment:

  • Node version: v20.19.5
  • OS: macOS (Darwin 25.0.0)

What Should Happen?

Claude should allow me to discuss in the Plan Mode.

Error Messages/Logs

Error: Path contains null bytes
      at $4 (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cl
  i.js:64:1647)
      at Y (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cli
  .js:1423:10619)
      at Y (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cli
  .js:1423:10656)
      at Y (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cli
  .js:1423:10656)
      at Y (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cli
  .js:1423:10656)
      at Y (file://~/.nvm/versions/node/v20.19.5/lib/node_modules/@anthropic-ai/claude-code/cli
  .js:1423:10656)

Steps to Reproduce

  1. Enter plan mode (shift+tab)
  2. Ask questions
  3. CLI freezes with the error above

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.22

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Warp

Additional Information

_No response_

View original on GitHub ↗

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