From 3e9546164d719a84a89ede5aaf76897eb1eee20d Mon Sep 17 00:00:00 2001 From: cfdaily Date: Thu, 28 May 2026 16:57:52 +0800 Subject: [PATCH] auto-sync: 2026-05-28 16:57:52 --- src/daemon/dispatcher.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/daemon/dispatcher.py b/src/daemon/dispatcher.py index 2ad8943..5351dbc 100644 --- a/src/daemon/dispatcher.py +++ b/src/daemon/dispatcher.py @@ -243,9 +243,8 @@ class Dispatcher: } except AgentBusyError: # v2.7.2: agent 被 counter 占用或冷却中 - # v2.7.3: Mail spawn 失败时回退 working → pending - if is_mail and db_path: - self._mail_revert_to_pending(task.id, db_path) + # v2.7.3: on_checks_passed 在 check 通过后才标 working, + # 所以 AgentBusyError 时 working 未被标记,无需回退 self._record_routing(task, decision, "skipped", "Agent busy", _routing_db) return { "level": level.value, @@ -255,9 +254,6 @@ class Dispatcher: "reason": "Agent busy (concurrent limit or cooling down)", } except Exception as e: - # v2.7.3: Mail spawn 异常时也回退 working → pending - if is_mail and db_path: - self._mail_revert_to_pending(task.id, db_path) self._record_routing(task, decision, "error", str(e), _routing_db) return { "level": level.value,