fix: P0 — DM-Routing broken: is_dm Parameter statt origin_room_id=None Proxy (Butler Move-Request war toter Code)

This commit is contained in:
Bernd (Hermes)
2026-07-19 20:26:20 +02:00
parent e7b10cd7f9
commit 7298459fc8
7 changed files with 377 additions and 33 deletions
+4 -1
View File
@@ -2386,7 +2386,10 @@ class RocketChatAdapter(BasePlatformAdapter):
# Expliziter-Wechsel-ohne-#, Expired Sticky) landen hier.
if _should_classify:
logger.debug("[rocketchat] ARCHIVAR-DEBUG: Calling classify_and_route for room=%s", room_id[:12])
decision = await self.archivar.classify_and_route(text, origin_room_id=room_id)
# P0-FIX: is_dm=True bei DMs — der Router braucht das für den DM-Guard.
# room_type wird in L1579 aus self._room_info gelesen.
_is_dm = (room_type == "d")
decision = await self.archivar.classify_and_route(text, origin_room_id=room_id, is_dm=_is_dm)
# V8.3.3: Telemetrie nach jeder Routing-Entscheidung flushen
routing_telemetry.flush()
if decision and decision.category: