The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(tools): bind config on the hand-built runner in test_gateway_stop_calls_close
teknium1cdd95c8dcfe3
diff --git a/tests/tools/test_zombie_process_cleanup.py b/tests/tools/test_zombie_process_cleanup.pyindex b9e94533997..a00ccb496b4 100644--- a/tests/tools/test_zombie_process_cleanup.py+++ b/tests/tools/test_zombie_process_cleanup.py@@ -196,12 +196,16 @@ class TestGatewayCleanupWiring:import threadingfrom unittest.mock import MagicMock, patch+ from gateway.config import GatewayConfigfrom gateway.run import GatewayRunnerrunner = object.__new__(GatewayRunner)runner._running = Truerunner._running_agents = {}runner._running_agents_ts = {}+ # __init__ always binds ``config``; the shutdown notice now walks every served+ # profile's configured home channels from it, not just the live adapters.+ runner.config = GatewayConfig()runner.adapters = {}runner._background_tasks = set()runner._pending_messages = {}