Agent's follow up changes reverts the previous changes and causes endless loop
まだ誰も着手していません。
評価
- 難易度
- 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
- 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.
- Observe the agent making the first change successfully.
- When the agent then makes the second change, it reverts the first change when applying the second.
- The agent then realizes the first change isn't there, and so it decides to fix this.
- When re-applying the first change, it ends up reverting the second change.
- 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/CopilotForXcode のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
github/CopilotForXcode#181 · リアクション 2 件 ·
-
Add ability to attach Copilot window only to Xcode projects/workspaces, ignoring standalone files オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
github/CopilotForXcode#945 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
github/CopilotForXcode#943 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
github/CopilotForXcode#936 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
github/CopilotForXcode#934 ·
github/CopilotForXcode の issue をすべて見る
似ている issue
-
Docs/performance.md says the clipboard panel waits for catchUp; toggleQuickPanel no longer waits オープンarea:docs documentation good first issue P2
難易度 1/5 1〜3時間 初心者へのやさしさ 94/100
uttrflow/uttrflow-swift#1032 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
🎉 Add KinetTask オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
jaywcjlove/awesome-mac#2932 ·
-
tvOS
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
skiptools/skip-fuse-ui#147 ·