From 9c31f02110d9710b52bf595aaa77c1d8685dd12a Mon Sep 17 00:00:00 2001 From: cfdaily Date: Thu, 28 May 2026 16:58:34 +0800 Subject: [PATCH] auto-sync: 2026-05-28 16:58:34 --- src/daemon/spawner.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/daemon/spawner.py b/src/daemon/spawner.py index e4a7c63..5763b3b 100644 --- a/src/daemon/spawner.py +++ b/src/daemon/spawner.py @@ -389,6 +389,10 @@ curl -X POST http://{self.api_host}:{self.api_port}/api/projects/{project_id}/ta raise AgentBusyError(agent_id) await self.counter.acquire(agent_id, _sid_key) + # 3.5 on_checks_passed: 所有检查通过后的回调(session + counter) + if on_checks_passed: + on_checks_passed() + if self.dry_run: logger.info("[DRY RUN] Would spawn agent %s (session=%s)", agent_id, _sid_key) self._register_session(_sid_key, agent_id, task_id, pid=None)