From 6f6deee1ad7b325477143d48efdb768710809b83 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sun, 17 May 2026 18:36:27 +0800 Subject: [PATCH] auto-sync: 2026-05-17 18:36:27 --- src/daemon/dispatcher.py | 4 ++++ 1 file changed, 4 insertions(+) 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)