[BUG] Claude Code leaves an empty border around all text, making copy/paste extremely frustrating

Resolved 💬 3 comments Opened Mar 16, 2026 by FlorinAndrei Closed Mar 16, 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?

Ask Claude Code to provide a code example.

Select the example.

Copy it.

Paste it in an editor.

The code is completely broken, the formatting is nonsense.

This is extremely frustrating.

What Should Happen?

I don't know, maybe make an interface that actually works?

How hard can it be to make a TUI that outputs text in a way that allows easy copy/paste?

People were doing this decades ago. Suddenly, this appears hard to do. ROTFL

Error Messages/Logs

Steps to Reproduce

Ask Claude Code to provide a code example.

Select the example.

Copy it.

Paste it in an editor.

The code is completely broken, the formatting is nonsense.

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.76

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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