[Bug] Stack overflow in tool execution streaming path (RangeError: Maximum call stack size exceeded)

Resolved 💬 1 comment Opened Jan 9, 2026 by fazxes Closed Jan 26, 2026

Bug Description
Title: Stack overflow crash (RangeError: Maximum call stack size exceeded)
Description:
Claude Code crashes with RangeError: Maximum call stack size exceeded during execution. Exit code 7.
Version: 2.1.2
OS: macOS (Apple Silicon based on path: /Users/no9labs/.bun/install/global/)
Stack trace location:
file:///Users/no9labs/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:3362
Error appears to be in: Streaming tool execution path - the minified code shows iH1 class (tool queue/concurrency handling), functions like SN, YO0, nH1 which relate to query loops and tool execution.
Reproduction:

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 2.1.2
  • Feedback ID: 2c7ca530-9485-43b9-b1f2-36eb1df02b95

Errors

[{"error":"SyntaxError: Expected double-quoted property name in JSON at position 3328 (line 87 column 7)\n    at JSON.parse (<anonymous>)\n    at file:///Users/no9labs/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:75:672\n    at B (file:///Users/no9labs/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:8:6808)\n    at i37 (file:///Users/no9labs/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:3058:13568)\n    at async ae2 (file:///Users/no9labs/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:3058:16347)","timestamp":"2026-01-09T14:00:02.508Z"},{"error":"Error: LSP server plugin:rust-analyzer-lsp:rust-analyzer crashed with exit code 1\n    at ChildProcess.<anonymous> (file:///Users/no9labs/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2255:21508)\n    at ChildProcess.emit (node:events:519:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at ChildProcess._handle.onexit (node:internal/child_process:293:12)\n    at Process.callbackTrampoline (node:internal/async_hooks:130:17)","timestamp":"2026-01-09T14:00:02.638Z"}]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗