[BUG] Large paste is silently trimmed — only partial content reaches the input
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
- Open Claude Code in a terminal (claude --version: 2.1.111, Windows 11).
- 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).
- Paste it into the Claude Code prompt (Ctrl+V).
- Submit the message.
- 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
Showing cached comments. Read the full discussion on GitHub ↗
13 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
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.
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?
Yes, try it out after installing 22
Still not working after have v22
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.
Still not working on node 22.22.2.
Not working for me either
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
what worked for me is to do an update for Claude
@hackerman2906 To what version? What version fixed it for you?
Closing for now — inactive for too long. Please open a new issue if this is still relevant.