github / github/copilot-cli

Streaming long Markdown links repeatedly reflow tables

Aperta
#4,347 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area:terminal-rendering
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### Describe the bug

While a response is streaming, inline Markdown links inside tables cause repeated table re-layout and visually disruptive jumping.

For a Markdown link such as `[foo](https://very-long-url...)` inside a table, the URL arrives character by character. Each character appears to trigger another table layout/render pass using the incomplete raw Markdown. The columns continuously resize and wrap; once the closing `)` arrives, the whole link collapses to its visible text (`foo`) and the table jumps again.

This makes tables containing several long links very slow and visually unstable even though the final rendered table may look correct.

### Affected version

GitHub Copilot CLI 1.0.77.

### Steps to reproduce the behavior

1. Start GitHub Copilot CLI in interactive mode.
2. Enter this prompt:

> Render a Markdown table with several rows. Each row must contain an inline Markdown link whose destination URL is at least 150 characters long.

3. Watch the table while the response streams.
4. Observe columns repeatedly resizing and wrapping while each link destination arrives.
5. Observe another layout jump when each completed link collapses to its visible text.

### Expected behavior

Streaming incomplete Markdown should not cause a full table re-layout on every character. Table columns should remain visually stable while link destinations stream, then render using the visible link text when complete.

### Additional context

- OS: macOS 26.5.2
- CPU architecture: arm64
- Shell: zsh
- Video: https://github.com/user-attachments/assets/98bc24df-27e5-47f6-aab2-345dd3e995e2

The video uses a trivial example. The effect becomes much more disruptive with additional columns and rows. The demo also rendered unusually quickly; normal rendering is approximately 0.3-0.5 times this speed.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia nel percorso di rendering delle tabelle Markdown in streaming di interactive-mode e riproduci il problema con link inline lunghi in diverse righe della tabella. Traccia i passaggi di layout ripetuti man mano che arrivano i caratteri dell’URL; il lavoro è completato quando i link incompleti non attivano più riorganizzazioni complete e di disturbo della tabella, mentre i link completati vengono renderizzati usando il testo visibile.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
markdown, shell
Ambito
cli, performance
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
58/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.