refactor(gateway): run_watchers 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).
This commit is contained in:
teknium1
2026-09-19 00:09:02 -07:00
committed by Teknium
parent 42d142ba41
commit 217631a55e

View File

@@ -109,7 +109,7 @@ class GatewaySessionWatchersMixin:
if not session_key or session_key in candidates or not overflow: if not session_key or session_key in candidates or not overflow:
continue continue
source = getattr(overflow[0], "source", None) source = getattr(overflow[0], "source", None)
if source is not None and (adapter := self._adapter_for_source(source)) is not None: if source is not None and (adapter := self._delivery_adapter_for(source)) is not None:
candidates[session_key] = (adapter, overflow[0]) candidates[session_key] = (adapter, overflow[0])
return candidates return candidates