Long paste truncated on Windows (both Git Bash and PowerShell) — v2.1.112

Resolved 💬 4 comments Opened Apr 18, 2026 by ncarcamo-lectis Closed Apr 21, 2026

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

  1. Open Claude Code on Windows (claude in any shell).
  2. Copy a log of ~150+ lines to clipboard.
  3. Paste into the prompt (right-click or Ctrl+V).
  4. 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.

View original on GitHub ↗

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