[BUG] Copy/paste from terminal has new lines instead of wrapping properly

Open 💬 14 comments Opened Jan 31, 2026 by nullbio

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?

Because Claude is a TUI, it dynamically renders physical \n unicode to mimic word-wrapping behavior. Can we please inject an invisible unicode character before or after the \n, so that we can use post-processing to fix the copy-paste?

It's incredibly painful right now when you're working in Claude, want to copy a command from Claude and paste into another terminal, and have to manually remove all the line breaks.

What Should Happen?

Inject a character we can parse for programmatically so that we can write scripts or programs to fix the copied text, outside of claude.

Error Messages/Logs

Steps to Reproduce

Copy text
See new lines

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.27

Platform

Anthropic API

Operating System

Other

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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