Paste buffering broken on Windows Git Bash — newlines stripped, no [Pasted text +N lines] marker
Resolved 💬 3 comments Opened Apr 17, 2026 by malbers Closed May 25, 2026
Version: 2.1.112 (Claude Code)
Platform: Windows 11 Home 10.0.26200
Shell: Git Bash (bash.exe from Git for Windows)
Expected
Pasting 30+ lines shows [Pasted text +N lines] placeholder in input, content submitted as a single block with newlines preserved.
Actual
Paste streams into input in realtime. Newlines are stripped (multi-line paste arrives as one flattened line). Some characters appear to escape the input buffer and render in the assistant output area.
Repro
- Launch Claude Code on Git Bash, Windows 11
- Copy a multi-line block (30+ lines of markdown)
- Paste into the prompt
Terminals tested (same result in both)
- Mintty (default Git Bash terminal)
- Windows Terminal with Git Bash profile (
"C:\\Program Files\\Git\\bin\\bash.exe" --login -i)
Tried
- Running 2.1.112 (past the 2.1.108 paste fix).
- Setting
MSYS=disable_pconin.bash_profileand relaunching. No change.
Workaround in use
Save paste content to a file and reference by path instead of pasting into the prompt.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗