auto-sync: 2026-05-29 07:54:30

This commit is contained in:
cfdaily
2026-05-29 07:54:30 +08:00
parent cc04a3b214
commit 609a266d15
+8
View File
@@ -262,6 +262,7 @@ class AgentSpawner:
retry_context: str = "",
task: Optional[Any] = None,
project_config: Optional[Dict[str, Any]] = None,
spawn_type: str = "executor", # executor | discussion | review
) -> str:
"""构建 Agent spawn 的消息优先用 BootstrapBuilderfallback 用模板
@@ -270,7 +271,14 @@ class AgentSpawner:
retry_context: 重试上下文前轮产出摘要 + 审查意见
task: Task 对象BootstrapBuilder
project_config: 项目配置BootstrapBuilder
spawn_type: spawn 类型executor=执行, discussion=讨论, review=审查
"""
# discussion 类型直接用模板(不走 BootstrapBuilder
if spawn_type == "discussion":
return self._build_discussion_prompt(
task_id, title, description, must_haves,
project_id, agent_id)
# 尝试 BootstrapBuilder
if self.bootstrap_builder and task is not None:
try: