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

オープン
#402 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
swift
領域
ai, desktop-dev

調査の方向性

まず、添付された github-copilot-for-xcode.log を確認し、記載されている Copilot for Xcode、Xcode、macOS のバージョンを使って、単一のファイル上で Agent mode の問題を再現します。連続する編集がどのように適用されるかを追跡します。完了の条件は、後続の変更が行われても先行する変更が残り、エージェントが無限の修正ループに入らなくなることです。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Swift
スター
6.3k
フォーク
2k
平均マージ
3日 21時間
マージ済み PR(30日)
2

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/CopilotForXcode のほかの issue

github/CopilotForXcode の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。