Markdown list rendering hangs the chat window
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Commencez par reproduire le message contenant une liste imbriquée depuis le chat ouvert via l’icône de la barre de menus, dans les onglets Agent et Ask. Vérifiez le chemin de rendu et le comportement au démarrage de la conversation ; le travail est terminé lorsque du Markdown profondément imbriqué ne fige plus la fenêtre de chat, l’icône de la barre de menus ni la réouverture de la conversation concernée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Open chat from the menubar icon.
- 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.
- 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.
- Force-quit the extension and restart Xcode.
- 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.
- Langage dominant
- Swift
- Étoiles
- 6.3k
- Forks
- 2k
- Merge moyen
- 3 j 21 h
- PR mergées (30 j)
- 2
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de github/CopilotForXcode
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
github/CopilotForXcode#181 · 2 réactions ·
-
Add ability to attach Copilot window only to Xcode projects/workspaces, ignoring standalone files Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
github/CopilotForXcode#945 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
github/CopilotForXcode#943 ·
-
Luisgerardomartinezlara Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 10/100
github/CopilotForXcode#936 · 2 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 10/100
github/CopilotForXcode#934 ·