claude-code - 💡(How to fix) Fix [Bug] CLI freezes when pasting text chunks, requires terminal restart [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#50868Fetched 2026-04-20 12:10:49
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4closed ×1commented ×1

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description Sometimes when pasting in even somewhat small chunks of text (less than 1000 tokens id say) claude code freezes and the only thing to do is delete the whole terminal and start fresh

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 2.1.114
  • Feedback ID: eac11d85-ba22-4a87-ba18-c3a0a4054f05

Errors

[]

extent analysis

TL;DR

The issue may be resolved by adjusting the terminal or system settings to handle large text inputs more efficiently.

Guidance

  • Investigate the terminal's buffer size limit and consider increasing it to accommodate larger text inputs.
  • Check for any existing issues or limitations in the terminal version 2.1.114 that may be contributing to the freezing problem.
  • Try pasting smaller chunks of text to see if the issue is specific to certain sizes or formats of text.
  • Look into system resource usage when the terminal freezes to determine if it's a memory or CPU-related issue.

Notes

The lack of error messages in the Errors section suggests that the issue might not be directly related to the code itself, but rather to the environment or system settings.

Recommendation

Apply workaround: The best course of action seems to be to adjust the terminal settings or find a way to handle large text inputs more efficiently, as there is no clear indication of a code-level fix being necessary or available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING