[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
- Launch your text editor of choice.
- Create 108 lines of
'test$' - Ctrl+A, Ctrl+C
- Paste into Claude Code.
- 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.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗