From de45dcd5a5984c66c569e408311efa673cf9bad4 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Fri, 29 May 2026 08:31:32 +0800 Subject: [PATCH] auto-sync: 2026-05-29 08:31:32 --- src/daemon/dispatcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/daemon/dispatcher.py b/src/daemon/dispatcher.py index cf5b1f3..9a29499 100644 --- a/src/daemon/dispatcher.py +++ b/src/daemon/dispatcher.py @@ -277,11 +277,13 @@ class Dispatcher: def _build_spawn_message(self, task: Task, agent_id: str, project_config: Optional[Dict], - mode: str = "") -> str: + mode: str = "", + spawn_type: str = "executor") -> str: """构建 Agent spawn 消息 Args: mode: 路由模式("delegate" 时生成协调员 prompt) + spawn_type: spawn 类型(executor/discussion/review) """ # delegate 模式:生成协调员分配 prompt if mode == "delegate": @@ -300,6 +302,7 @@ class Dispatcher: agent_id=agent_id, current_status=task.status or "claimed", retry_context=retry_ctx, + spawn_type=spawn_type, ) # fallback parts = [f"Task: {task.title}"]