React crash (error #185) when pasting large text into input field

Status Closed — not planned
Reported on v2.1.4
Maintainer reply None cached
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

  1. Record or prepare a large block of text (e.g., voice transcription, several paragraphs)
  2. Paste it into Claude Code's input field
  3. 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.

View original on GitHub ↗

11 Comments

gnomad1618 · 7 months ago

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.

gnomad1618 · 7 months ago

Content that triggered the crash:

The minor one, I just like to, I don't know if this is possible within
  using this as an arc browser, but I was wondering if it's possible to make
  the background transparent so that I can see my desktop and then the
  individual panes would retain the majority of their transparency like 80%
  while the background would be something in the lines of 35% or so. If it's
  not possible it's fine, we might do some kind of implementation later. You
  recommend another way of going about it once the UI is more or less stable.
  The major UI change is I would like to be able to drag these windows around
  and have them snap into place together. I know that's a pretty big ask, but
  I think that would be cool. If it's too big of an ask we can just, I can
  give you a sketch up on how I want it to be, how I think I'm gonna want it
  to be, and then we can just do it in the background and I won't be changing
  it that much. That may be better, maybe simpler, less buggy. I'm okay with
  going that direction. And then the other one that I definitely want to
  implement immediately regardless of what we do before we end this session is
  making a section for my packed thoughts. It lists seeing the packed
  thoughts that are available, maybe the date, and just keywords of the
  subjects that are packed in there, and make it clickable to open into a new
  window at the root directory to fill me in on what's going on or we can pick
  up where we left off.

This is plain English text from a Whisper voice transcription - no special characters or unusual formatting. Multi-line, ~1500 characters.

gnomad1618 · 7 months ago

Error message from the crash:

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)

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.

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/15307
  2. https://github.com/anthropics/claude-code/issues/15751
  3. https://github.com/anthropics/claude-code/issues/15781

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

zinglax · 7 months ago

#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.

gnomad1618 · 7 months ago

Yes, v2.1.4
First thing I checked.

gnomad1618 · 7 months ago

Crash looks to have been caused by pynput's keyboard_controller.type(text) method dropping a large chunk of text.

gnomad1618 · 7 months ago

It looks slightly different than #15307, which references continuous text input from voice. This was definitely not that.

github-actions[bot] · 6 months ago

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.

github-actions[bot] · 6 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 5 months ago

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.