[BUG] [Windows 11] Pasting >25 lines into CLI input is truncated intermittently
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?
Environment
- OS: Windows 11
- Claude Code version: (2.1.104)
- Terminal: (填你用的终端,如 Windows Terminal / CMD / PowerShell)
Bug Description
When pasting text longer than approximately 25 lines into the Claude Code CLI prompt, the content is truncated — Claude only receives a partial message.
The issue is intermittent: the same content, same terminal, same input method sometimes works and sometimes fails.
Steps to Reproduce
- Open Claude Code CLI in any terminal on Windows 11
- Paste a block of text that is 25+ lines long
- Submit the message
- Observe that Claude's response indicates it only received partial content
Expected Behavior
Full pasted content is received and processed by Claude.
Actual Behavior
Content is truncated. Claude receives only part of the pasted text (appears to cut off around 25 lines).
Additional Context
- Other AI CLI tools (e.g., Codex) in the same terminal with the same input method handle the same content without truncation
- The issue is not consistent — identical input sometimes passes, sometimes fails
- Workaround: writing content to a file and using the Read tool
What Should Happen?
Pasting any length of text into the Claude Code CLI prompt should be received in full by the model, consistent with the behavior of other AI CLI tools running in the same terminal environment.
Error Messages/Logs
Steps to Reproduce
- Open any terminal on Windows 11 (e.g., Windows Terminal)
- Start Claude Code CLI
- Paste 25+ lines of text into the input prompt
- Submit
Actual Result: Claude only receives partial content — truncated around 25 lines
Expected Result: Claude receives the full pasted text
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.104
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗