auto-sync: 2026-05-17 18:36:27

This commit is contained in:
cfdaily
2026-05-17 18:36:27 +08:00
parent fabdc404d0
commit 6f6deee1ad
+4
View File
@@ -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)