[BUG] Collapsed paste strips out $'

Resolved 💬 3 comments Opened Oct 17, 2025 by Angbor Closed Jan 10, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When doing many line pastes into Claude Code, the symbols $' are lost. As an example, when pasting in a powershell script
$objectFileName = $metaFile.Name -replace '\.meta$', ''

Claude only gets this,

$objectFileName = $metaFile.Name -replace '\.meta, ''

This only happens when you paste in enough lines that the text box collapses the paste into [Pasted text #1 +108 lines]

What Should Happen?

Pasted code should have all characters sent.

Error Messages/Logs

Steps to Reproduce

  1. Launch your text editor of choice.
  2. Create 108 lines of 'test$'
  3. Ctrl+A, Ctrl+C
  4. Paste into Claude Code.
  5. Hit enter to send.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.22

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

Running from windows 11, with terminal running powershell 17.13.1. This doesn't seem to be specific to configuration or folder launched from.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗