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

Status Closed — not planned
Reported on v2.1.111
Maintainer reply None cached
Activity 14 comments · opened Apr 16, 2026 · 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 ↗

13 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5017
  2. https://github.com/anthropics/claude-code/issues/13328
  3. https://github.com/anthropics/claude-code/issues/47658

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

eter5nityforce-oss · 4 months ago

Hello! I had the exact same issue and managed to fix it, so I'm sharing this in hopes it might help. Try updating your current Node version to the latest one. I was using 22.12.0, and after upgrading to 22.22.2, everything works perfectly for me.

nvm install 22.22.2
nvm use 22.22.2
npm install -g @anthropic-ai/claude-code
kavania2002 · 4 months ago

I was so excited after reading this but after trying, it didn't work for me :(
FYI, I was using v20.19.6 and upgraded to latest v20.20.2, do you think I should maybe shift to v22 and try?

eter5nityforce-oss · 4 months ago

Yes, try it out after installing 22

hackerman2906 · 4 months ago

Still not working after have v22

JeremyFriesen · 4 months ago

Reproduces on Windows 10 Home (10.0.19045) / Claude Code 2.1.113 / VS Code 1.116.0 integrated terminal. Behaviour is intermittent — large pastes occasionally succeed but usually truncate silently. Same account and configuration works correctly on Linux (no truncation observed). No workaround found short of saving content to a file and referencing the path.

moonjoungyoung · 4 months ago

Still not working on node 22.22.2.

lgsf · 4 months ago

Not working for me either

dayeggpi · 4 months ago

still not working... many duplicate tickets, all being closed, but issue never resolved..

lgsf · 4 months ago
still not working... many duplicate tickets, all being closed, but issue never resolved..

Anthropic in a nutshell. Just ignore and pretend issues do not exist

hackerman2906 · 4 months ago

what worked for me is to do an update for Claude

mpnow · 4 months ago
what worked for me is to do an update for Claude

@hackerman2906 To what version? What version fixed it for you?

github-actions[bot] · 3 months ago

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

Showing cached comments. Read the full discussion on GitHub ↗