github / github/copilot-cli

Copying selected prompt text includes the input box's left border

Abierto
#4,116 1 comentario 2 reacciones 0 asignados Ver en GitHub
triage
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

### Describe the bug

Mouse-selecting text from the current prompt input box and copying it includes the decorative left border of the input box in the clipboard payload. The copied prompt is therefore contaminated with a box-drawing glyph that the user did not type.

This occurs when the prompt wraps across multiple visual lines. The selection appears to cover the user-entered text, but pasting the clipboard contents also produces the cyan left-hand border shown by the input box.

For example, selecting the text shown below:

Example multiline text selected in the Copilot CLI prompt input box

produces clipboard text containing the left border (and a lot of whitespace to the right of each line):

```text
┃ Here's some example
┃ text
┃ that I'm going to
┃ copy.
```

### Affected version

`GitHub Copilot CLI 1.0.71-0.`

### Steps to reproduce the behavior

1. Launch Copilot CLI in Ghostty on macOS.
2. Enter enough text in the prompt input box for it to wrap across multiple lines.
3. Mouse-drag to select the text inside the prompt input box.
4. Copy the selection with `Cmd+C`.
5. Paste the clipboard contents into an editor or another application.
6. Observe that the input box left-border glyph is included with the prompt text.

### Expected behavior

Copying selected prompt text should copy only the user-entered content. Decorative input-box borders and other Copilot CLI UI chrome must not be present in the clipboard payload.

Done when mouse-selected single-line, multiline, and soft-wrapped prompt text can be copied without any input-box border glyphs or other decorative characters.

### Additional context

- Operating system: macOS 26.5.2 (25F84)
- CPU architecture: Apple Silicon (`arm64`)
- Terminal emulator: Ghostty 1.3.2-HEAD-+05c3e29
- Terminal type: `xterm-256color`
- This appears related to https://github.com/github/copilot-cli/issues/4009, which reports the same class of clipboard contamination for the right-side scrollbar. This report concerns the prompt input box left border.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza reproduciendo el comportamiento de selección y copia en el cuadro de entrada de prompts de Copilot CLI usando Ghostty en macOS. Rastrea la selección del prompt y la gestión del portapapeles, y verifica que las selecciones de una sola línea, multilínea y con ajuste suave de línea contengan únicamente el texto introducido por el usuario, sin el borde izquierdo ni otros caracteres de la UI.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
cli
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
62/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.