anthropics / anthropics/claude-code
[BUG] Copying and pasting from terminal window - drops text
- Dominant language
- Python
- Stars
- 145k
- Forks
- 23.1k
- PR merge metrics
- PR metrics pending
Description
### 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_
Contributor guide
No contributing guide indexed for this repository
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100