claude-code - 💡(How to fix) Fix [BUG] Large paste silently truncated from beginning in prompt input (v2.1.112) [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#49673Fetched 2026-04-17 08:34:33
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

Paste is silently truncated from the beginning. No error, no indicator. Content from the top of the clipboard is missing.

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?

Platform: Windows 11 Claude Code version: 2.1.112 Terminal: Windows Terminal

What's wrong: When pasting a large multi-line block (~150+ lines) into the Claude Code prompt input, only the tail end of the pasted content is captured. The beginning of the paste is silently dropped with no warning or indication that content was cut off. The prompt input shows content starting partway through the pasted block rather than from the top.

What Should Happen?

Expected behavior: Full paste content should be captured (either inline or collapsed to [Pasted text #N +M lines] chip as intended) Actual behavior: Paste is silently truncated from the beginning. No error, no indicator. Content from the top of the clipboard is missing.

Error Messages/Logs

Steps to Reproduce

Steps to reproduce:

Copy a multi-line text block of 150+ lines to clipboard Open Claude Code and paste into the prompt input Observe that only the last portion of the content appears — content from the beginning is missing

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.112

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Additional context: Clipboard contents are confirmed intact (pasting into a text editor works correctly). Related to but distinct from #5017, #13328, #14771 which report end-truncation on older versions.

extent analysis

TL;DR

The issue can be mitigated by investigating the input handling mechanism in Claude Code version 2.1.112 to determine why it silently truncates large pasted text blocks.

Guidance

  • Investigate the character limit or buffer size of the prompt input in Claude Code to see if it's causing the truncation of pasted content.
  • Compare the input handling code between version 2.1.112 and the last known working version to identify potential changes that may have introduced this bug.
  • Test the paste functionality with smaller blocks of text to determine the exact threshold at which truncation occurs.
  • Consider adding error handling or warnings when the input exceeds the character limit to prevent silent truncation.

Example

No code example is provided as the issue does not include specific code snippets to work with.

Notes

The issue seems to be specific to version 2.1.112 and Windows 11, and may be related to changes in input handling. The fact that it worked in a previous version suggests a regression bug.

Recommendation

Apply workaround: Modify the input handling mechanism to either increase the character limit or add warnings for truncated input, as the root cause is likely related to the input buffer size or character limit.

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] Large paste silently truncated from beginning in prompt input (v2.1.112) [1 comments, 2 participants]