anthropics / anthropics/claude-code
Terminal rendering left-margin indentation is included when copying assistant text
- Lenguaje dominante
- Python
- Estrellas
- 145k
- Forks
- 23.1k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
## 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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.