github / github/copilot-cli

Title: ACP agent ignores custom JSON‑RPC methods and only exposes internal tool list

Đang mở
#1,574 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
area:agents area:non-interactive area:tools
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

**Summary:**
Running Copilot with --acp inside an ACP harness (https://github.com/rcarmo/vibes), the agent refuses to issue custom ACP JSON‑RPC method calls (e.g. vibes/store_media_file) and instead reports only its internal tool schema (bash, rg, etc.). This prevents ACP clients from adding custom tool capabilities.

**Request:**
Please confirm whether Copilot’s ACP runtime supports arbitrary JSON‑RPC method calls from the agent. If yes, what is the correct mechanism for the model to emit custom method calls? If no, can support be added?

### Affected version

GitHub Copilot CLI 0.0.413-0.

### Steps to reproduce the behavior

1. Run Vibes with `VIBES_ACP_AGENT="copilot --acp --model gpt-5.2-codex" VIBES_PERMISSION_AUTO_APPROVE=true vibes`
2. Prompt agent with explicit instruction to send a JSON‑RPC request for vibes/store_media_file.
4. Observe logs: no request is emitted; agent only lists internal tools.

### Expected behavior

When instructed, the ACP agent should emit a JSON‑RPC request such as:

```json {"jsonrpc":"2.0","id":1,"method":"vibes/store_media_file","params":{"path":"artifacts/report.pdf"}} ```

and then include the tool result’s content blocks in the final response.

### Additional context

**Actual behavior:**
Agent responds with: │ “I currently see these callable tools in this session: bash, write_bash, read_bash, … I don’t currently see native vibes/* tools │ exposed in this runtime.”

No JSON‑RPC request is sent for vibes/* methods.

**Why this is a problem:**
ACP is designed to allow clients to implement custom methods. The agent appears to ignore or reject these methods and instead relies on its internal tool registry, making custom ACP integration impossible.

**Environment:**
- Vibes server with ACP enabled
- Agent command: copilot --acp
- ACP debug logging enabled
- No vibes/* JSON‑RPC requests observed in logs

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.