diff --git a/src/daemon/dispatcher.py b/src/daemon/dispatcher.py index 085bea9..b167625 100644 --- a/src/daemon/dispatcher.py +++ b/src/daemon/dispatcher.py @@ -147,6 +147,8 @@ class Dispatcher: await self.counter.acquire(agent_id) # 优先使用 spawner 的 prompt 模板 if hasattr(self.spawner, 'build_spawn_message') and project_config: + # 构建重试上下文(如果有前轮审查意见) + retry_ctx = self._build_retry_context(task) message = self.spawner.build_spawn_message( task_id=task.id, title=task.title, @@ -156,6 +158,8 @@ class Dispatcher: must_haves=task.must_haves or "", project_id=project_config.get("project_id", ""), agent_id=agent_id, + current_status=task.status or "claimed", + retry_context=retry_ctx, ) else: message = self._build_message(task, action_type)