From dc633ee5bbb55e79b47a27440cd10c7c4a46a7dc Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Sat, 19 Sep 2026 00:09:02 -0700 Subject: [PATCH] refactor(gateway): run_shutdown resolves adapters through the intake/delivery seams Mechanical migration of the `_adapter_for_source` call sites in this sibling. Intake policy sites take `_intake_adapter_for`; every send/edit/typing/pending-slot site takes `_delivery_adapter_for`. Part of #88715 (phase 4). --- gateway/run_shutdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/run_shutdown.py b/gateway/run_shutdown.py index 1483b985c1..93f0acc2a6 100644 --- a/gateway/run_shutdown.py +++ b/gateway/run_shutdown.py @@ -1005,7 +1005,7 @@ class GatewayShutdownMixin: # The session's OWN profile's bot (transport ref → profile map), never a bare # self.adapters hit: under multiplex that is the default bot, so a secondary session's # "Gateway shutting down" would land in the user's chat with the wrong bot. - adapter = self._adapter_for_source(source) if source is not None else None + adapter = self._delivery_adapter_for(source) if source is not None else None if adapter is None: adapter = self._authorization_adapter(platform, profile) if not adapter: