Agent's follow up changes reverts the previous changes and causes endless loop

Offen
#402 3 Kommentare 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
swift
Bereich
ai, desktop-dev

Rechercherichtung

Beginne damit, das angehängte github-copilot-for-xcode.log zu überprüfen und das Problem im Agent mode in einer einzelnen Datei mit den aufgeführten Versionen von Copilot for Xcode, Xcode und macOS zu reproduzieren. Verfolge, wie aufeinanderfolgende Bearbeitungen angewendet werden; fertig ist die Aufgabe, wenn frühere Änderungen erhalten bleiben, während spätere Änderungen vorgenommen werden, und der Agent nicht mehr in eine endlose Korrekturschleife gerät.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Describe the bug
When using agent mode, if the agent needs to make changes in steps, the first set of changes gets reverted by the second set of changes, which causes the agent to attempt to fix it by redoing the first changes, which reverts the second set of changes, and it gets into an endless loop of trying to fix this.

Versions

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

Steps to reproduce

  1. Use agent mode to request changes to a single file. The agent needs to make changes in multiple steps. For example, adding a property first, then changing a function to use that property.
  2. Observe the agent making the first change successfully.
  3. When the agent then makes the second change, it reverts the first change when applying the second.
  4. The agent then realizes the first change isn't there, and so it decides to fix this.
  5. When re-applying the first change, it ends up reverting the second change.
  6. The agent then realizes this too, and attempts to fix it, which puts it into an endless loop.

Screenshots

Logs
github-copilot-for-xcode.log

Additional context

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.