[BUG] Large paste is silently trimmed — only partial content reaches the input

Resolved 💬 13 comments Opened Apr 16, 2026 by kavania2002 Closed May 29, 2026

Preflight Checklist

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

What's Wrong?

Pasting a large block of content into the Claude Code prompt causes the content to be silently trimmed. Only the first portion of what I pasted reaches the input — the rest is cut off with no warning, no indicator, and no "[Pasted text]" placeholder showing the original size.

This is different from the existing paste-collapse behavior (#23134, #29375), where the full content is preserved and just hidden behind a placeholder. In my case the content itself is being truncated before submission, so Claude only receives a partial version of what I pasted. This makes it impossible to reliably share logs, stack traces, diffs, or file contents by pasting.

Version: 2.1.111
OS: Windows 11 (10.0.26200)

What Should Happen?

Restore the previous behavior: when a large block is pasted, collapse it behind a "[Pasted text #N +X lines]" placeholder in the input display, but preserve the full content and send it to Claude in its entirety.

The placeholder UX was great — it kept the prompt clean while guaranteeing nothing was lost. The current behavior silently trims the content, so Claude only receives part of what I pasted. I have no way to tell what made it through and what got cut.

Summary of the regression:

  • Before: paste → "[Pasted text]" placeholder shown, full content sent to Claude ✅
  • Now: paste → content silently trimmed, only partial content sent to Claude ❌

Please restore the placeholder-with-full-content behavior.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code in a terminal (claude --version: 2.1.111, Windows 11).
  2. Copy a large block of text to the clipboard — e.g., a long log file, a large JSON payload, or several hundred lines of source code (anything more than a few hundred lines / a few thousand characters).
  3. Paste it into the Claude Code prompt (Ctrl+V).
  4. Submit the message.
  5. Observe Claude's response — it only reflects the first portion of what was pasted; the tail is missing.

Previously (in earlier versions), the same paste would show a "[Pasted text #N +X lines]" placeholder in the input and Claude would receive the full content. Now there's no placeholder and the content itself is trimmed before sending.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.111

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

FYI — I'm using Git Bash (MINGW64) running inside Windows Terminal on native Windows. Not WSL

View original on GitHub ↗

This issue has 13 comments on GitHub. Read the full discussion on GitHub ↗