anthropics / anthropics/claude-code

[BUG] Copying and pasting from terminal window - drops text

Aperta
#89,236 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area:tui bug platform:macos platform:vscode
Lingua principale
Python
Stelle
145k
Fork
23.1k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) 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?

Copying text out of the Claude Code terminal window silently drops sections. When I drag-select a long assistant response in the terminal (VS Code integrated terminal, macOS) and paste it into an email or document, multiple chunks of the text are missing — with no indication anything was lost. Started roughly 5–6 days ago, likely after an update; older sessions copied fine. Reproduces on long rendered responses, especially ones taller than the visible window that I scroll through while selecting. This is silent data loss for anyone whose output leaves via clipboard — I only caught it by proofreading sent emails. Workaround I'm using: having Claude write everything paste-bound to a text file and copying

### What Should Happen?

Should be able to copy text while scrolling in claude code terminal window and paste it without sections missing

### Error Messages/Logs

```shell

```

### Steps to Reproduce

copy text in any claude window and scroll down to get the full text. paste it outside of claude code and there will be missing sections.

### Claude Model

None

### Is this a regression?

Yes, this worked in a previous version

### Last Working Version

_No response_

### Claude Code Version

2.1.238.

### Platform

Anthropic API

### Operating System

macOS

### Terminal/Shell

Terminal.app (macOS)

### Additional Information

_No response_

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by reproducing the issue in the macOS terminal environments mentioned, using a long rendered response that extends beyond the visible window and selecting while scrolling. Compare the clipboard contents with the visible response and with the previous working behavior; done means pasted text contains every selected section without silent omissions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
macos
Ambito
cli
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.