anthropics / anthropics/claude-code
Terminal rendering left-margin indentation is included when copying assistant text
- Lingua principale
- Python
- Stelle
- 145k
- Fork
- 23.1k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
## What happened
When copying a plain-text response from the terminal (e.g. to paste into an external web form), the pasted text has leading whitespace/indentation on each line. This indentation appears to be part of how the terminal UI renders assistant messages (a left margin distinguishing them from other content), not part of the actual text content returned by the model.
Tried multiple workarounds from the model side (removing markdown formatting, collapsing to a single paragraph, collapsing to a single line) — none change the outcome, since the issue is in the rendering/selection layer, not the text content itself.
## Repro steps
1. In an interactive terminal session, ask Claude Code for a plain-text paragraph intended for copy-paste elsewhere.
2. Select and copy the response text directly from the terminal (e.g. via mouse drag-select).
3. Paste into a plain-text field (e.g. a web form, a text editor).
## Expected
Pasted text has no leading whitespace — it matches the actual text content of the response.
## Actual
Pasted text has leading whitespace on each line, requiring manual cleanup before it can be used elsewhere.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.