github / github/copilot-cli

Mode changes does not work with ACP

未關閉
#2,942 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:agents area:non-interactive
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

I have found two bugs related to modes in ACP:

* The agent cannot leave plan mode. Once we start plan mode and then plan is done, it should [propose to execute the plan and swap modes](https://agentclientprotocol.com/protocol/session-modes#exiting-plan-modes)

* Autopilot mode has no effect. I am unsure if this is related to the separation between autopilot vs /allow-all, but it still always asks for permission. We may need autopilot to automatically enable /allow-all for ACP

### Affected version

1.0.35

### Steps to reproduce the behavior

I was able to reproduce those bugs both in Zed and Tidewave.

1. Enter plan mode, ask it to plan and execute the plan. You see no tool request arrives.
2. Simply choose autopilot and ask it to make changes and run commands. You see it will request tool permissions.

Glad to provide any more info. :)

### Expected behavior

_No response_

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

Reproduce both cases through ACP in Zed or Tidewave: leaving plan mode after execution is requested, and autopilot still asks for tool permissions. Start by tracing ACP mode transitions and permission handling. Done means plan mode proposes execution and switches modes, while autopilot performs changes and commands without permission requests.

由索引模型根據 Issue 內容生成。

評估

領域
cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。