From 272e3180cf622cad98ae6c13bc212f8347956a6c Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sun, 17 May 2026 21:44:17 +0800 Subject: [PATCH] auto-sync: 2026-05-17 21:44:17 --- src/daemon/ticker.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/daemon/ticker.py b/src/daemon/ticker.py index 1663971..c9b44b2 100644 --- a/src/daemon/ticker.py +++ b/src/daemon/ticker.py @@ -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: