Markdown list rendering hangs the chat window

Offen
#439 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
macos, swift
Bereich
desktop

Rechercherichtung

Beginne damit, die Nachricht mit verschachtelten Listen aus dem über das Menüsymbol geöffneten Chat sowohl im Agent- als auch im Ask-Tab zu reproduzieren. Überprüfe den Rendering-Pfad und das Startverhalten der Konversation; als erledigt gilt es, wenn tief verschachteltes Markdown weder das Chatfenster noch das Menüsymbol noch das erneute Öffnen der betroffenen Konversation einfriert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Swift
Sterne
6.3k
Forks
2k
Ø Merge
3 T. 21 Std.
Gemergte PRs (30 T.)
2

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/CopilotForXcode

Alle Issues in github/CopilotForXcode

Ähnliche Issues

Weitere Issues zu Swift

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.