[BUG] Copying multi-line text creates extra spaces rendering links unusable
Resolved 💬 3 comments Opened Feb 15, 2026 by ovsh Closed Feb 18, 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 copying multi-line text from Claude Code's terminal output, the copied text includes hard line breaks at the terminal's wrap points. This makes pasted content unusable — URLs break, commands break, paths break.
Example: Copying a command from Claude Code output and pasting it yields:
cd /Users/ovsh/Documents/code/hyper
sync/website && vercel link --scope
digitalpro
Instead of the expected single line:
cd /Users/ovsh/Documents/code/hypersync/website && vercel link --scope digitalpro
This affects URLs, file paths, commands — anything that wraps in the terminal. The pasted text is broken and requires manual cleanup every time.
### What Should Happen?
Copied text should not include line breaks from terminal wrapping. The original continuous text should be preserved when copying.
### Error Messages/Logs
```shell
Steps to Reproduce
- Have Claude Code output a long command, URL, or path that wraps across multiple lines in the terminal
- Select and copy that text
- Paste it somewhere — the text has hard line breaks at wrap points
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.42
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗