[BUG] Maximum call stack size exceeded on first install

Resolved 💬 5 comments Opened Aug 8, 2025 by Keno Closed Jan 10, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.72 (Claude Code)
  • Operating System: Linux Sandbox
  • Terminal: iTerm2

Bug Description

Whenever I install Claude Code for the first time, I get an error with the following stack trace:

RangeError: Maximum call stack size exceeded
    at new bV1 (file:///opt/npm/lib/node_modules/@anthropic-ai/claude-code/cli.js:61:69344)
    at file:///opt/npm/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:62623
    at Q (file:///opt/npm/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)
    at file:///opt/npm/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:62924
    at Q (file:///opt/npm/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)
    at ul4 (file:///opt/npm/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:63356)
    at C1 (file:///opt/npm/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:64689)
    at kN (file:///opt/npm/lib/node_modules/@anthropic-ai/claude-code/cli.js:724:756)
    at P$2 (file:///opt/npm/lib/node_modules/@anthropic-ai/claude-code/cli.js:753:2376)
    at pA (file:///opt/npm/lib/node_modules/@anthropic-ai/claude-code/cli.js:753:1312)

It's fine the second time though.

Steps to Reproduce

  1. Install claude-code, e.g. by using the sandbox scripts at https://github.com/Keno/ClaudeBox.jl

Expected Behavior

It launches the first time

Actual Behavior

It errors the first time as above, works the second time.

View original on GitHub ↗

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