github / github/copilot-cli

Terminal output is clipped after resize/reflow and hidden text is not reachable via scrollbar

Abierto
#3,497 0 comentarios 11 reacciones 0 asignados Ver en GitHub
area:terminal-rendering
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

### Description

In recent versions of GitHub Copilot CLI, long responses are sometimes not fully visible in the terminal. The missing text is not reachable using the terminal scrollbar.

The issue appears to be related to terminal resizing / reflow. When I resize the terminal window, the same response is rendered differently: sometimes more text is visible, sometimes less. In some layouts, parts of the final response are clipped even though they become visible after resizing to a different width.

### Expected behavior

All generated output should remain accessible after rendering.

If the response is longer than the visible terminal area, I should be able to reach the hidden text through normal terminal scrolling. Resizing the terminal should reflow the output without losing or hiding any content.

### Actual behavior

Parts of the generated response become hidden or clipped.

The hidden text cannot be reached with the terminal scrollbar. Resizing the terminal changes which parts of the response are visible, but does not reliably make the full output accessible.

### Example

Copilot CLI produced a response containing multiple sections/options. Earlier in the output, I could see that the response included “Option C”. However, in the final rendered summary, the text was cut off and only part of the options were visible.

After resizing the terminal:
- in one width, the final summary was cut off after the first option
- in another width, it was cut off differently
- in a narrower width, almost the full summary became visible

This makes it look like the content is present internally but is being clipped or incorrectly reflowed by the terminal UI.

### Notes

This seems related to terminal rendering, wrapping, or scrollback handling. The main problem is not just that the response is long, but that some text becomes unreachable after rendering.

### Affected version

GitHub Copilot CLI 1.0.53-1

### Steps to reproduce the behavior

1. Open Copilot CLI in an interactive terminal.
2. Ask for a response that produces a longer structured answer or final task summary.
3. Wait until the response is complete.
4. Resize the terminal window wider or narrower.
5. Observe that the visible text changes depending on the terminal width.
6. Try to use the terminal scrollbar to access the missing text.

### Expected behavior

All generated output should remain accessible after rendering.

If the response is longer than the visible terminal area, I should be able to reach the hidden text through normal terminal scrolling. Resizing the terminal should reflow the output without losing or hiding any content.

### Additional context

_No response_

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con los pasos de reproducción del issue usando Copilot CLI 1.0.53-1 y, a continuación, rastrea el renderizado del terminal, el ajuste de línea, el comportamiento al cambiar el tamaño/reflow y el comportamiento del scrollback. Se considera terminado cuando una respuesta estructurada larga sigue siendo completamente accesible mediante el desplazamiento y se reajusta sin recortes con diferentes anchos de terminal.

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
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Necesita aclaración
Aptitud para principiantes
42/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.