claude-code - 💡(How to fix) Fix [BUG] Terminal paste truncates/corrupts long text input across multiple sessions

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…

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When pasting long text into the Claude Code terminal, the content gets cut off or garbled. This has been happening consistently across 4-5 sessions. Only the latter portion of the pasted text arrives — the beginning is silently dropped.

What Should Happen?

Full pasted text should appear intact in the input field.

Error Messages/Logs

Steps to Reproduce

  1. Copy a long multi-paragraph prompt (e.g. a list of 8 subtasks)
  2. Paste into the Claude Code terminal input
  3. Only the last portion of the text is received

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.114 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Cursor

Additional Information

  • OS: Windows 11 Home Single Language
  • Shell: bash (via Cursor integrated terminal)
  • Claude Code version: 2.1.114 (Claude Code)
  • IDE: Cursor

extent analysis

TL;DR

The issue with pasted text getting cut off in the Claude Code terminal may be related to a limitation or bug in the current version, and a potential workaround could involve adjusting the terminal or input settings.

Guidance

  • Verify if the issue persists when using a different terminal or shell, to isolate if the problem is specific to the Cursor integrated terminal.
  • Test pasting shorter texts to determine if there's a specific character limit that's being exceeded, causing the text to be cut off.
  • Check the Claude Code documentation or Anthropics API guidelines for any known limitations on input text length.
  • Consider reaching out to the Anthropics support team or checking their forums for similar issues, given that this is identified as a regression.

Example

No specific code example is applicable in this case, as the issue seems related to the interaction between the Claude Code terminal and the operating system or shell.

Notes

The exact cause of the issue is unclear without further technical details, such as any error messages or logs that might be generated during the paste operation. The fact that this is a regression suggests a potential change in the Claude Code or Anthropics API that might be contributing to the problem.

Recommendation

Apply workaround: Given the information provided, the best course of action seems to be to explore workarounds, such as using a different terminal or adjusting input settings, until a fix can be identified and implemented.

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

claude-code - 💡(How to fix) Fix [BUG] Terminal paste truncates/corrupts long text input across multiple sessions