auto-sync: 2026-05-31 08:38:06

This commit is contained in:
cfdaily
2026-05-31 08:38:06 +08:00
parent 098ccb0006
commit c4acc72f24
+4 -1
View File
@@ -270,9 +270,12 @@ class AgentSpawner:
# 尝试 BootstrapBuilder
if self.bootstrap_builder and task is not None:
try:
# v3.1: spawn_type 映射到角色 (executor→executor, review→reviewer, discussion→planner)
role_map = {"executor": "executor", "review": "reviewer", "discussion": "planner"}
role = role_map.get(spawn_type, "executor")
bootstrap_prompt = self.bootstrap_builder.build_for_task(
task=task,
role="executor",
role=role,
project_config=project_config,
)
# mail 任务用精简模板,不走 BootstrapBuilder