auto-sync: 2026-05-30 09:01:06 (catch-all)
This commit is contained in:
@@ -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 自己标了终态
|
||||
|
||||
# 信号 2:outputs 表有产出
|
||||
output_count = conn.execute(
|
||||
|
||||
Reference in New Issue
Block a user