The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: getattr-guard _stop_loop_liveness_guards in GatewayRunner.stop
teknium186084d03ba3a
diff --git a/gateway/run.py b/gateway/run.pyindex 9a6b5d98333..1cfbfdef055 100644--- a/gateway/run.py+++ b/gateway/run.py@@ -9431,7 +9431,11 @@ class GatewayRunner(GatewayAuthorizationMixin, GatewayKanbanWatchersMixin, Gatewservice_restart: bool = False,) -> None:"""Stop the gateway and disconnect all adapters."""- self._stop_loop_liveness_guards()+ # getattr-guard: shutdown-path tests build bare runners via+ # object.__new__ that lack the liveness-guard machinery.+ _stop_guards = getattr(self, "_stop_loop_liveness_guards", None)+ if callable(_stop_guards):+ _stop_guards()if restart:self._restart_requested = Trueself._restart_detached = detached_restart