Long paste truncated on Windows (both Git Bash and PowerShell) — v2.1.112
Environment
- Claude Code: 2.1.112
- OS: Windows 11 Pro 10.0.26200
- Shells tested: Git Bash (MSYS), Windows PowerShell
- Terminal: Windows Terminal
Description
When pasting long text (~100+ lines, e.g. training logs or large code blocks) into the Claude Code prompt, the pasted content is truncated mid-line before being submitted. The visible input in the prompt already shows the cut-off content — so the data is lost before Claude receives it.
This is NOT the [Pasted text #N +N lines] collapse behavior (which sends the full content). The text is literally cut.
Reproduction
- Open Claude Code on Windows (
claudein any shell). - Copy a log of ~150+ lines to clipboard.
- Paste into the prompt (right-click or Ctrl+V).
- Observe: pasted text stops partway through.
Expected
Full pasted content is captured (or collapsed via the [Pasted text...] placeholder), without silent truncation.
Actual
Paste is cut off mid-content. Happens consistently in both Git Bash and PowerShell, suggesting the issue is in the CLI's stdin handling on Windows rather than a shell-specific problem.
Workaround
Save content to a file and reference it with @path/to/file.txt, which bypasses stdin entirely.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗