Markdown list rendering hangs the chat window
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia riproducendo il messaggio con un elenco annidato dalla chat aperta tramite l’icona della barra dei menu, sia nella scheda Agent sia nella scheda Ask. Controlla il percorso di rendering e il comportamento di avvio della conversazione; il lavoro è completato quando Markdown profondamente annidato non blocca più la finestra della chat, l’icona della barra dei menu né la riapertura della conversazione interessata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Swift
- Stelle
- 6.3k
- Fork
- 2k
- Merge medio
- 3g 21h
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/CopilotForXcode
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
github/CopilotForXcode#181 · 2 reazioni ·
-
Add ability to attach Copilot window only to Xcode projects/workspaces, ignoring standalone files Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
github/CopilotForXcode#945 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
github/CopilotForXcode#943 ·
-
Luisgerardomartinezlara Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
github/CopilotForXcode#936 · 2 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
github/CopilotForXcode#934 ·
Tutte le issue di github/CopilotForXcode
Issue simili
-
Docs/performance.md says the clipboard panel waits for catchUp; toggleQuickPanel no longer waits Apertaarea:docs documentation good first issue P2
Difficoltà 1/5 1-3 ore Idoneità per principianti 94/100
uttrflow/uttrflow-swift#1032 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
🎉 Add KinetTask Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
jaywcjlove/awesome-mac#2932 ·
-
tvOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
skiptools/skip-fuse-ui#147 ·