The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(gateway): fail awake when platform state is unreadable
joaomarcos8d3efbb3f2a8
diff --git a/gateway/run_shutdown.py b/gateway/run_shutdown.pyindex 043634532fe..3b7e53a50ad 100644--- a/gateway/run_shutdown.py+++ b/gateway/run_shutdown.py@@ -353,8 +353,12 @@ class GatewayShutdownMixin:for profile_adapters in (getattr(self, "_profile_adapters", {}) or {}).values():for platform in profile_adapters:add_platform(platform)- except Exception: # noqa: BLE001 - diagnostics must not block gateway startup- return active+ except Exception: # noqa: BLE001 - unreadable state must keep the gateway awake+ logger.debug(+ "scale-to-zero: active messaging platforms unreadable — staying awake",+ exc_info=True,+ )+ return ["<unavailable>"]return active@staticmethod