[BUG] Claude Code hard-wraps text output

Resolved 💬 3 comments Opened Apr 7, 2026 by moubella Closed Apr 11, 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?

  • Claude Code inserts hard newlines into its text output based on terminal width. When you copy text from the terminal, the
  • Newlines come with it. pasting anywhere else gives you broken multi-line text that was supposed to be one line.

What Should Happen?

  • Don't hard-wrap text output. let the terminal handle wrapping. that's what terminals are for.
  • A config option like "outputWrapping": "soft" would be useful here I assume.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code in a smallish terminal window
  2. Get any response with text longer than the terminal width
  3. Select and copy the output
  4. Paste it somewhere -> newlines everywhere

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.92

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

tested on Ghostty terminal.

View original on GitHub ↗

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