auto-sync: 2026-05-17 18:36:27
This commit is contained in:
@@ -147,6 +147,8 @@ class Dispatcher:
|
|||||||
await self.counter.acquire(agent_id)
|
await self.counter.acquire(agent_id)
|
||||||
# 优先使用 spawner 的 prompt 模板
|
# 优先使用 spawner 的 prompt 模板
|
||||||
if hasattr(self.spawner, 'build_spawn_message') and project_config:
|
if hasattr(self.spawner, 'build_spawn_message') and project_config:
|
||||||
|
# 构建重试上下文(如果有前轮审查意见)
|
||||||
|
retry_ctx = self._build_retry_context(task)
|
||||||
message = self.spawner.build_spawn_message(
|
message = self.spawner.build_spawn_message(
|
||||||
task_id=task.id,
|
task_id=task.id,
|
||||||
title=task.title,
|
title=task.title,
|
||||||
@@ -156,6 +158,8 @@ class Dispatcher:
|
|||||||
must_haves=task.must_haves or "",
|
must_haves=task.must_haves or "",
|
||||||
project_id=project_config.get("project_id", ""),
|
project_id=project_config.get("project_id", ""),
|
||||||
agent_id=agent_id,
|
agent_id=agent_id,
|
||||||
|
current_status=task.status or "claimed",
|
||||||
|
retry_context=retry_ctx,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
message = self._build_message(task, action_type)
|
message = self._build_message(task, action_type)
|
||||||
|
|||||||
Reference in New Issue
Block a user