React crash (error #185) when pasting large text into input field
Status Closed — not planned
Reported on v2.1.4
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 11 comments · opened Jan 11, 2026 · closed Feb 25, 2026
Description
Claude Code crashes with React error #185 (Maximum update depth exceeded) when pasting a large block of text into the input field.
Steps to Reproduce
- Record or prepare a large block of text (e.g., voice transcription, several paragraphs)
- Paste it into Claude Code's input field
- App crashes with React error #185
Expected Behavior
Large paste should be handled gracefully, or at minimum show a warning if input is too large.
Actual Behavior
React enters an infinite render loop and crashes with:
error: 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 v7 (/$bunfs/root/claude:683:16258)
at yB (/$bunfs/root/claude:683:15768)
Environment
- Claude Code version: 2.1.4
- Platform: macOS Darwin 24.6.0
- Context: Text was transcribed via WhisperDictation and pasted into input
Workaround
Paste text into a file and have Claude read it instead of pasting directly into the input field.
11 Comments
Correction/clarification: The crash occurred when the Whisper app (voice-to-text transcription) pasted the content programmatically, not from a manual paste. This distinction may be relevant if the input handling differs between user-initiated paste events and programmatic paste from accessibility/automation tools.
Content that triggered the crash:
This is plain English text from a Whisper voice transcription - no special characters or unusual formatting. Multi-line, ~1500 characters.
Error message from the crash:
The minified source context (lines 678-683) shows React internals related to
DetermineComponentFrameRoot, stack trace generation, and Suspense handling.React error #185 typically indicates: "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate."
So the Whisper paste may be triggering an infinite re-render loop in the input handling.
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
#15307 seems to be similar to what you are describing. I have tested in v2.1.1 and reproduced this error, @gnomad1618 are you still seeing this in the latest version?
I previously thought it had to do with something about the speed characters were input from STT but I think now I am seeing more it with longer inputs like you are.
Yes, v2.1.4
First thing I checked.
Crash looks to have been caused by pynput's keyboard_controller.type(text) method dropping a large chunk of text.
It looks slightly different than #15307, which references continuous text input from voice. This was definitely not that.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.