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)