Claude Code crashes with Minified React error #31 (object with keys {optional})

Resolved 💬 3 comments Opened Feb 18, 2026 by Icemeka Closed Feb 22, 2026

Description

Claude Code crashed with a React rendering error in its internal terminal UI. The crash appears to happen when the renderer receives a raw object instead of a renderable React element.

Error

ERROR Minified React error #31; visit https://react.dev/errors/31?args[]=object%20with%20keys%20%7Boptional%7D for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

/$bunfs/root/claude:682:8796

React error #31 translates to: "Objects are not valid as a React child (found: object with keys {optional})"

Stack Trace (bottom of crash)

No matching component was found for:
 - sD (/$bunfs/root/claude:682:8796)
 - C_ (/$bunfs/root/claude:682:10909)
 - I2 (/$bunfs/root/claude:682:12481)
 - vv (/$bunfs/root/claude:682:14772)
 - <anonymous> (/$bunfs/root/claude:682:15288)
 - F8 (/$bunfs/root/claude:682:35676)
 - CTT (/$bunfs/root/claude:682:51849)
 - Fv (/$bunfs/root/claude:682:86110)
 - LTT (/$bunfs/root/claude:682:85081)
 - pp (/$bunfs/root/claude:682:84905)

Environment

  • Platform: macOS (Darwin 25.3.0, Apple Silicon)
  • Shell: zsh
  • Claude Code binary: Bun-compiled (/$bunfs/root/claude)

Notes

The crash appears to be in Claude Code's React/Ink terminal UI renderer. An internal object with key {optional} was passed where a React-renderable value was expected. The crash produced 1000+ lines of minified React internals in the terminal output.

View original on GitHub ↗

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