CLI crash: React error #185 when using /output-style command

Resolved 💬 3 comments Opened Jan 16, 2026 by alexeyv Closed Jan 19, 2026

Description

The CLI crashes with a React error #185 when using the /output-style command, even after the command correctly reports an invalid style. The crash appears to be unrelated to the invalid input itself.

Steps to Reproduce

  1. Run /output-style tts-summary (or potentially any invalid style)
  2. CLI correctly outputs: Invalid output style: tts-summary
  3. CLI then crashes with React error

Error Output

Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at w6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:733:16255)
    at $2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:733:15768)
    at S7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:733:31879)
    at M2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:733:31478)
    at CA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3314:570)
    at onInput (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2859:8200)
    at Object.wrappedOnInput [as current] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2859:5060)
    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:863:2516
    at Xa.J (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:863:3364)
    at Xa.emit (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:852:1462)

Environment

  • Platform: macOS (Darwin 25.1.0)
  • Installation: Homebrew (/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/)

Notes

React error #185 typically indicates "Maximum update depth exceeded" - suggesting a component is calling setState inside useEffect without proper dependencies, causing an infinite loop.

View original on GitHub ↗

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