auto-sync: 2026-05-23 23:32:20

This commit is contained in:
cfdaily
2026-05-23 23:32:20 +08:00
parent 1b01209068
commit 0ab7cdce94
+3 -1
View File
@@ -215,6 +215,8 @@ class AgentSpawner:
def _build_api_section(self, project_id: str, task_id: str,
agent_id: str) -> str:
"""构建 API 回写操作指令(BootstrapBuilder 模式下补充)"""
# mail 任务直接 done,不走 review
success_status = '"done"' if project_id == "_mail" else '"review"'
return f"""## 操作指令
### 状态回写
@@ -233,7 +235,7 @@ curl -X POST http://{self.api_host}:{self.api_port}/api/projects/{project_id}/ta
```
### 完成后
成功:status → "review" | 失败:status → "failed"
成功:status → {success_status} | 失败:status → "failed"
"""
async def spawn_full_agent(