Skip to content

Multiline paste broken in v2.1.105 on Windows (mintty/Git Bash) #47658

@otternetwork

Description

@otternetwork

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions