auto-sync: 2026-05-30 09:01:06 (catch-all)

This commit is contained in:
cfdaily
2026-05-30 09:01:06 +08:00
parent ffadcadfe9
commit 7976ea0186
+3 -2
View File
@@ -384,8 +384,9 @@ def _task_verify_completion(self, task_id, db_path) -> bool:
row = conn.execute(
"SELECT status FROM tasks WHERE id=?", (task_id,)
).fetchone()
if not row or row["status"] == "working":
return None # 还在执行中,不算完成
TERMINAL_STATES = {"review", "done", "failed", "cancelled"}
if not row or row["status"] in TERMINAL_STATES:
return True # Agent 自己标了终态
# 信号 2outputs 表有产出
output_count = conn.execute(