github / github/copilot-cli

Add support for slash commands in `copilot --acp`

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

描述

### Describe the bug

Copilot ACP doesn't provide `available_commands_update`, so ACP frontend is unable to use slash commands.

### Affected version

0.0.388

### Steps to reproduce the behavior

(in zed)

1. add Custom agent like
```jsonc
"agent_servers": {
// ...
"Copilot Cli": {
"type": "custom",
"command": "copilot",
"args": ["--acp"],
}
},
```
2. try `/model`
3. error with `Available commands: none`

### Expected behavior

_No response_

### Additional context

- Zed 0.219.5
- zed impl: https://github.com/zed-industries/claude-code-acp/blob/36ea238d76490c60a68150e926095ef5d32ea759/src/acp-agent.ts#L796-L805
- acp docs: https://agentclientprotocol.com/protocol/slash-commands

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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