Multiline paste broken in v2.1.105 on Windows (mintty/Git Bash)
Status Closed — not planned
Reported on v2.1.105
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 9 comments · opened Apr 13, 2026 · closed May 31, 2026
Bug description
Pasting multiline text into the Claude Code prompt no longer works correctly as of v2.1.105. Either:
- Newlines in pasted text are lost (text becomes a single line), or
- Newlines in the paste buffer trigger message submission (as if Enter was pressed), sending the message prematurely.
This is a regression — downgrading to v2.1.104 restores correct behavior.
Environment
- Claude Code: 2.1.105 (broken), 2.1.104 (works)
- OS: Windows 10 Enterprise LTSC 2019 (10.0.17763)
- Terminal: mintty 3.6.1 (Git Bash / MSYS2, MINGW64)
- Shell: bash (MINGW64_NT)
- Node.js: v24.14.0
- TERM: xterm-256color
Steps to reproduce
- Install
@anthropic-ai/claude-code@2.1.105globally via npm - Launch
claudefrom Git Bash (mintty terminal) - Copy multiline text to clipboard (e.g., a code snippet with newlines)
- Paste into the Claude Code prompt
Expected: Text is pasted with newlines preserved, waiting for Enter to submit.
Actual: Newlines are either stripped (single line) or cause immediate message submission.
Workaround
npm install -g @anthropic-ai/claude-code@2.1.104
Notes
- Likely related to input handling / bracketed paste mode changes introduced in 2.1.105.
- The issue may be specific to mintty (which has limited escape sequence support compared to Windows Terminal or ConPTY-based terminals), but was not present in 2.1.104 with the same terminal.
9 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I'm facing the same issue in vscode terminal.
same issue Windows only, MacOS seems to be OK. I have to reference the file directly.
Claude Code v2.1.112Same here, been driving me crazy for days. Filed details here - that seems to be a dup of this issue: https://github.com/anthropics/claude-code/issues/50076
Not a dup unless downgrading to 2.1.104 helps you too. Would you be able to check if that's the case?
I'm having same problem on a different terminal
Version: 2.1.104
Terminal: powershell 5.1 build 19041 rev 4170
OS: Windows 10 Version 22H2 OS Build 19045.4170
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
Reopened at #73157
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.