[BUG] Copied text contains extra formatting spaces/chars (v2)

Resolved 💬 8 comments Opened Nov 4, 2025 by dhunt-xsolla Closed Feb 6, 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?

Reviving https://github.com/anthropics/claude-code/issues/5097 + https://github.com/anthropics/claude-code/issues/4686 that were both closed as dupes, but 1 of them should have survived. Inside has all the required info.

Now, we're on v1.0.65

TL;DR: If I copy a multi-line snippet of code, it has extra junk that messes up the code/snippet.

What Should Happen?

Snippets of code should be delicately wrapped for easy and expected copy without bloaty left-hand chars or other unrelated artifacts

Error Messages/Logs

Steps to Reproduce

  1. Ask it to print a multi-line hello world with really long chars
  2. Copy it
  3. Paste somewhere else - it will be different

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

v1.0.65

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

Windows+WSL bash both experiences this

---

<img width="174" height="61" alt="Image" src="https://github.com/user-attachments/assets/c386fff2-9fd7-437c-bce7-563594de3d3d" />

Notice the trailing two spaces on the left before the {. Every line is like this

View original on GitHub ↗

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