[BUG] [VSCode] Pasting text with CR-only line endings freezes the chat input
Status Open
Reported on v2.1.283
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 0 comments · opened Sep 29, 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?
Summary
Pasting text whose line endings are CR only (\r, no \n) into the Claude Code
chat input in the VSCode extension freezes VSCode.
The same text pastes without problems once CR is converted to LF.
Workaround
Convert the line endings before pasting:
xclip -o -selection clipboard | tr '\r' '\n' | xclip -selection clipboard
Environment
- OS: Debian 12 (Linux 6.12)
- VSCode: 1.139.0
- Claude Code extension: 2.1.283
What Should Happen?
The text is pasted with line breaks, as it is in other editors (e.g. Emacs).
Error Messages/Logs
Steps to Reproduce
- Put text with CR-only line endings on the clipboard, e.g.:
printf 'line1\r\r\tline2\r\tline3\r' | xclip -selection clipboard
(In practice this comes from copying code out of Pharo Smalltalk, which uses CR internally.)
- Paste it into the Claude Code chat input in VSCode.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.283(Claude Code extension:)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_