fix(HOTFIX-2): _recent_auto_routes vor Archivar-Handler-Block initialisieren
set_recent_auto_routes() wurde vor der Attribut-Initialisierung aufgerufen → AttributeError beim Gateway-Start. Initialisierung vor den _MULTIROOM()-Block verschoben.
This commit is contained in:
+5
-3
@@ -1163,6 +1163,11 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
self._running = False
|
||||
# B2: Exponential backoff state for reconnect attempts
|
||||
self._reconnect_backoff = 0 # number of consecutive failures
|
||||
# V8.3-3: Recent auto-routes für Widerspruchs-Routine
|
||||
# {origin_room: {target_room, topic, timestamp, origin_message_id, target_message_id}}
|
||||
# HOTFIX 2: Muss VOR dem Archivar-Handler-Block initialisiert werden,
|
||||
# da set_recent_auto_routes() das Dict bereits dort bindet.
|
||||
self._recent_auto_routes: Dict[str, Dict[str, Any]] = {}
|
||||
# Archivar: Embedding-basierte Nachrichten-Klassifikation
|
||||
if _MULTIROOM():
|
||||
self._conversation_history = ConversationHistory(max_size=10)
|
||||
@@ -1184,9 +1189,6 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
# V8.1 P2: Temporäre Session-Raum-Präferenzen (30 Min TTL)
|
||||
# Wird bei confirm_move gesetzt und vor Archivar-Klassifikation geprüft.
|
||||
self._session_room_preferences: Dict[str, Dict[str, Any]] = {}
|
||||
# V8.3-3: Recent auto-routes für Widerspruchs-Routine
|
||||
# {origin_room: {target_room, topic, timestamp, origin_message_id, target_message_id}}
|
||||
self._recent_auto_routes: Dict[str, Dict[str, Any]] = {}
|
||||
# V8.3-4: Expliziter Raumwechsel-Sticky (30 Min TTL)
|
||||
# {origin_room: {target_room, target_name, sticky_topic, expires_at}}
|
||||
self._explicit_switch_sticky: Dict[str, Dict[str, Any]] = {}
|
||||
|
||||
Reference in New Issue
Block a user