auto-sync: 2026-05-17 21:44:17

This commit is contained in:
cfdaily
2026-05-17 21:44:17 +08:00
parent d53e836a55
commit 272e3180cf
+10
View File
@@ -393,6 +393,16 @@ class Ticker:
)
if result["status"] == "dispatched":
dispatched.append(task.id)
# 更新 current_agent 为审查者
conn = get_connection(db_path)
try:
conn.execute(
"UPDATE tasks SET current_agent=? WHERE id=?",
(result["agent_id"], task.id),
)
conn.commit()
finally:
conn.close()
logger.info("Dispatched review for %s to %s",
task.id, result["agent_id"])
except Exception: