github / github/copilot-cli

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

Aperta
#1,044 15 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area:non-interactive
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.