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.105 globally via npm
- Launch
claude from 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.
Bug description
Pasting multiline text into the Claude Code prompt no longer works correctly as of v2.1.105. Either:
This is a regression — downgrading to v2.1.104 restores correct behavior.
Environment
Steps to reproduce
@anthropic-ai/claude-code@2.1.105globally via npmclaudefrom Git Bash (mintty terminal)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
Notes