From 70a330c7fb008c48922d185c4762ffff06d87182 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Tue, 2 Jun 2026 15:01:47 +0800 Subject: [PATCH] auto-sync: 2026-06-02 15:01:47 --- src/daemon/spawner.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/daemon/spawner.py b/src/daemon/spawner.py index b867c05..64cb799 100644 --- a/src/daemon/spawner.py +++ b/src/daemon/spawner.py @@ -181,6 +181,8 @@ class AgentSpawner: api_port: int = 8083, bootstrap_builder: Optional[Any] = None, gateway_timeout: float = 600.0, + gateway_host: str = "127.0.0.1", + gateway_port: int = 18789, max_retries: int = 3, max_monitor_timeouts: int = 3, counter: Optional[Any] = None, @@ -192,6 +194,8 @@ class AgentSpawner: dry_run: 测试模式,不实际 spawn api_host: API 地址(供 Agent 回写) api_port: API 端口(供 Agent 回写) + gateway_host: Gateway 地址(供存活检查) + gateway_port: Gateway 端口(供存活检查) """ self.db_path = db_path self.agent_timeout = agent_timeout @@ -200,6 +204,8 @@ class AgentSpawner: self.api_port = api_port self.bootstrap_builder = bootstrap_builder self.gateway_timeout = gateway_timeout + self.gateway_host = gateway_host + self.gateway_port = gateway_port self.max_retries = max_retries self.max_monitor_timeouts = max_monitor_timeouts # v2.7.2: counter 引用(spawn_full_agent 内部 acquire/release)