[BUG] Crash/React Error #31 when using Tab autocomplete on slash commands in Ghostty
Resolved 💬 3 comments Opened Jan 14, 2026 by coygeek Closed Feb 27, 2026
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?
When I start typing a slash command (e.g., /xxx) in the Claude Code CLI and press the Tab key to trigger autocomplete, the application crashes immediately.
Instead of completing the command, the interface freezes and outputs a "Minified React error #31". The session becomes completely unresponsive (dead), and I am forced to manually terminate the process using Ctrl+C.
What Should Happen?
Pressing Tab while typing a slash command should autocomplete the command text (fill in the rest of the name) or display the available command options in the terminal UI without causing a crash.
Error Messages/Logs
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.
file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:8722
- F9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:8722)
- VB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:10832)
- ND (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:12400)
- rE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:14685)
- (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:15198)
- dZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:35538)
- PK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:51684)
- AX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:85828)
- Lh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:84806)
- nj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:732:84631)
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().
Steps to Reproduce
- Open your terminal application (I am using Ghostty).
- Start the Claude Code CLI (
claude). - Begin typing a slash command into the input field (e.g., type
/cleor/xxx). - Press the
Tabkey on the keyboard. - Result: The application crashes with the React error shown above and the session hangs.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.7
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
- Terminal: Ghostty
- OS: macOS (implied by
/opt/homebrewpath in logs) - Installation Method: Homebrew (implied by path)
- Recovery: The only way to exit the frozen state is to send a SIGINT (
Ctrl+C). - React Error Details: React Error_#31 usually indicates that an object was passed as a child to a React component where a string or number was expected ("Objects are not valid as a React child"). This suggests the autocomplete component might be trying to render a raw object instead of a string value.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗