Large pastes truncated to tail on Windows Terminal + PowerShell — bracketed paste mode fails to engage

Resolved 💬 4 comments Opened Apr 17, 2026 by koller31 Closed Apr 21, 2026

Environment

  • Claude Code version: 2.1.112
  • OS: Windows 11 Home (10.0.26200)
  • Terminal: Windows Terminal (Microsoft Store, 8wekyb3d8bbwe)
  • Shell: PowerShell

Expected behavior

Large pastes (hundreds–thousands of lines) appear in the input as a [Pasted text +N lines] placeholder via bracketed paste mode. This used to work reliably.

Actual behavior

For sufficiently large pastes, no placeholder appears. Only the final ~1–3 lines of the pasted content end up in the input. The rest is silently dropped (or sent as raw keystrokes that get consumed before the user can intervene).

Reproduction

  1. Copy ~500+ lines of plain text to clipboard (e.g. a long YouTube transcript).
  2. Paste into Claude Code prompt with Ctrl+V.
  3. Observe: only the tail of the content lands in the input; no placeholder is shown.

Already ruled out

  • Clipboard contents are intact (paste into Notepad works fully).
  • Not a clipboard-format issue (re-copying from Notepad as plain text reproduces).
  • Not Windows Terminal's largePasteWarning / multiLinePasteWarning (disabled both, no change).
  • Smaller pastes still produce the placeholder correctly — only large ones fail.

Suspected cause

Node.js raw-stdin buffer overflow under high paste throughput, causing bracketed-paste markers to be lost mid-stream.

View original on GitHub ↗

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