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
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:

  1. Newlines in pasted text are lost (text becomes a single line), or
  2. 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

  1. Install @anthropic-ai/claude-code@2.1.105 globally via npm
  2. Launch claude from Git Bash (mintty terminal)
  3. Copy multiline text to clipboard (e.g., a code snippet with newlines)
  4. 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.

View original on GitHub ↗

9 Comments

github-actions[bot] · 6 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/47648
  2. https://github.com/anthropics/claude-code/issues/40909
  3. https://github.com/anthropics/claude-code/issues/13328

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

Reghunaath · 6 months ago

I'm facing the same issue in vscode terminal.

davidlruizc · 6 months ago

same issue Windows only, MacOS seems to be OK. I have to reference the file directly.

Claude Code v2.1.112

malbers · 6 months ago

Same 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

otternetwork · 6 months ago
Same here, been driving me crazy for days. Filed details here - that seems to be a dup of this issue: #50076

Not a dup unless downgrading to 2.1.104 helps you too. Would you be able to check if that's the case?

fikret-buyukisik · 5 months ago

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

github-actions[bot] · 4 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

sujal-wpc · 3 months ago

Reopened at #73157

github-actions[bot] · 1 month ago

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.