Markdown list rendering hangs the chat window

Abierto
#439 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
macos, swift
Área
desktop

Línea de trabajo

Empieza reproduciendo el mensaje con una lista anidada del chat abierto mediante el icono de la barra de menús, tanto en las pestañas Agent como Ask. Comprueba la ruta de renderizado y el comportamiento de inicio de la conversación; se considera terminado cuando Markdown profundamente anidado ya no congela la ventana del chat, el icono de la barra de menús ni la reapertura de la conversación afectada.

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

Descripción

Describe the bug
The chat window freezes when rendering a message containing a deeply nested markdown list. Shorter lists cause a temporary hang that recovers, while very large/deep lists seem to be unrecoverable. The chat window is unusable until I force-quit "GitHub Copilot for Xcode Extension" in Activity Monitor and delete the conversation history with rm ~/.config/github-copilot/xcode/*/conversations/*.db (it hangs on startup, so restarting xcode doesn't help unless the database is deleted). I ran into this trying to send some detailed instructions to Agent mode, but it happens in the Ask tab as well.

Versions

  • Copilot for Xcode: 0.40.0
  • Xcode: 16.4
  • macOS: 15.6

Steps to reproduce

  1. Open chat from the menubar icon.
  2. Send the following message (Agent or Ask tab):
Here's a list:

* List item
    * List item
      * List item
      * List item
        * List item
          * List item
        * List item
          * List item
            * List item
            * List item
  * List item
  * List item
    * List item
      * List item
      * List item
        * List item
          * List item
        * List item
          * List item
            * List item

On my hardware, the above causes it to hang for about a minute but recovers eventually (see the video). Duplicate the list 3x, and it seems to hang forever.

  1. Observe that the chat window freezes until the message is rendered (the response is apparently still happening, I saw agent mode opening files and making edits while it was frozen). The menubar icon also becomes unresponsive.
  2. Force-quit the extension and restart Xcode.
  3. Re-open the chat window: the freeze reoccurs.

Screenshots

https://github.com/user-attachments/assets/46daeee3-d564-40c5-b358-f813435b7b8e

It doesn't show in the recording, but the cursor becomes the spinning beach ball.

Logs
I turned on verbose logging but there were no interesting messages in the log from the time I tried reproducing it.

Additional context
Hardware: MacBook Pro with M1 Pro, 16GB memory.

While troubleshooting, I deleted the ~/Library/Application Support/com.github.CopilotForXcode and ~/.config/github-copilot directories and reinstalled from homebrew, but the issue persisted if I sent a problematic message again.

Lenguaje dominante
Swift
Estrellas
6.3k
Forks
2k
Merge medio
3 d 21 h
PR fusionados (30 d)
2

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/CopilotForXcode

Todos los issues de github/CopilotForXcode

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.