From 2b535376384f9baf571f4d20d192e795d28416eb Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Fri, 12 Jun 2026 20:43:45 +0200 Subject: [PATCH] fix(adapter): stay_in_room vom Router respektieren MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: Der Router setzte stay_in_room=True (excluded_rooms, Meta-Fragen, Keyword-Match auf Ursprungsraum), aber der Adapter ignorierte das Flag. Er prüfte nur target_room != room_id → routete trotzdem. Symptom: 'Die RC Beschreibung klingt toll' aus #Rocketchat-Plugin löste Move-Request aus, obwohl: - excluded_rooms → stay_in_room=True - 'RC' matcht keywords_100 'rc' → Ziel = Ursprungsraum Fix: Eine Zeile in der Routing-Bedingung: and not getattr(decision, 'stay_in_room', False) Jetzt respektiert der Adapter, wenn der Router sagt 'bleib hier'. --- plugin/adapter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/adapter.py b/plugin/adapter.py index 7ddfe3f..35e8a08 100644 --- a/plugin/adapter.py +++ b/plugin/adapter.py @@ -783,7 +783,8 @@ class RocketChatAdapter(BasePlatformAdapter): forwarded = False if (decision and hasattr(decision, 'target_room') and decision.target_room and decision.target_room != room_id - and not getattr(decision, 'is_unrouteable', False)): + and not getattr(decision, 'is_unrouteable', False) + and not getattr(decision, 'stay_in_room', False)): # ← Router sagt "bleib hier" target_name = getattr(decision, 'matched_room_name', None) if not target_name: