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}"]