Silent paste truncation on Windows — no warning when input is clipped
Resolved 💬 1 comment Opened Jun 6, 2026 by PaerToernell Closed Jul 12, 2026
Description
When pasting text into Claude Code's terminal on Windows, the input is silently truncated at the beginning. No warning is shown to either the user or the model.
Steps to reproduce
- Open Claude Code on Windows 10 (Windows Terminal / ConPTY)
- Copy a text passage of ~500+ characters
- Paste it into the input prompt
- Observe that the beginning of the text is missing
Observed behavior
- Pasted text starting with "Problemet är också..." arrived as "blemet är också..." — the beginning was silently dropped
- No truncation warning, no character/line count indicator
- The model processed incomplete input without knowing it was incomplete
Previous behavior
The user reports that Claude Code previously showed a line count indicator when pasting multi-line text, even if the full text wasn't visible in the input field. This indicator appears to have been removed.
Impact
- Silent context loss: The model works with incomplete input without any signal
- Undetectable in most cases: If the cut happens at a word boundary, neither party can detect it
- False verification: Both user and model believe the full text was received
- Especially critical for: code snippets, configuration, error messages, legal/formal text
Suggested improvements
- Show paste indicator — restore the character/line count shown on paste
- Detect potential truncation — warn if input appears to start mid-word or mid-sentence
- Increase or remove paste buffer limit — if the limitation is in Claude Code's input handling
- Support file-based input — e.g.
--input-fileflag for longer text passages
Environment
- OS: Windows 10 Pro 10.0.19045
- Terminal: Windows Terminal (ConPTY)
- Claude Code: CLI (latest)
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗