From 69692039e916aa152989e7732d4268b4c6641e20 Mon Sep 17 00:00:00 2001 From: liuhao1024 Date: Sun, 3 May 2026 10:41:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(delegate):=20correct=20ACP=20docs=20?= =?UTF-8?q?=E2=80=94=20Claude=20Code=20CLI=20has=20no=20--acp=20flag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The delegate_task tool schema descriptions referenced 'claude --acp --stdio' as an example, but Claude Code CLI does not support --acp or --stdio flags. The ACP subprocess transport (agent/copilot_acp_client.py) is specifically built for GitHub Copilot CLI ('copilot --acp --stdio'). Changes: - Per-task acp_command example: 'claude' → 'copilot' - Top-level acp_command description: remove 'Claude Code' reference, clarify requirement for ACP-compatible CLI (currently Copilot only) - acp_args description: remove misleading claude-opus-4-6 example Fixes #19055 --- tools/delegate_tool.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/delegate_tool.py b/tools/delegate_tool.py index 5c7c431b25..7b4595cb71 100644 --- a/tools/delegate_tool.py +++ b/tools/delegate_tool.py @@ -2479,7 +2479,7 @@ DELEGATE_TASK_SCHEMA = { }, "acp_command": { "type": "string", - "description": "Per-task ACP command override (e.g. 'claude'). Overrides the top-level acp_command for this task only.", + "description": "Per-task ACP command override (e.g. 'copilot'). Overrides the top-level acp_command for this task only.", }, "acp_args": { "type": "array", @@ -2519,10 +2519,11 @@ DELEGATE_TASK_SCHEMA = { "acp_command": { "type": "string", "description": ( - "Override ACP command for child agents (e.g. 'claude', 'copilot'). " + "Override ACP command for child agents (e.g. 'copilot'). " "When set, children use ACP subprocess transport instead of inheriting " - "the parent's transport. Enables spawning Claude Code (claude --acp --stdio) " - "or other ACP-capable agents from any parent, including Discord/Telegram/CLI." + "the parent's transport. Requires an ACP-compatible CLI " + "(currently GitHub Copilot CLI via 'copilot --acp --stdio'). " + "See agent/copilot_acp_client.py for the implementation." ), }, "acp_args": { @@ -2530,7 +2531,7 @@ DELEGATE_TASK_SCHEMA = { "items": {"type": "string"}, "description": ( "Arguments for the ACP command (default: ['--acp', '--stdio']). " - "Only used when acp_command is set. Example: ['--acp', '--stdio', '--model', 'claude-opus-4-6']" + "Only used when acp_command is set." ), }, },