fix(archivar): Kontext-Reset — _THEMATIC_TARGET_ROOM pro Nachricht zurücksetzen
Bug: DM ohne Routing nach einem Projektraum-Turn → alte
_THEMATIC_TARGET_ROOM klebt → Antwort im falschen Raum.
Fix: _THEMATIC_TARGET_ROOM.set('') zu Beginn jeder neuen Nachricht
in _process_incoming(). Der Archivar setzt sie dann neu — oder sie
bleibt leer (DM, Smalltalk, Catch-All).
Erkannt 20:21 durch Andreas: Tagesabschluss-Anfrage im DM,
Antwort landete in #Rocketchat-Plugin (vorheriger Turn).
This commit is contained in:
@@ -644,6 +644,11 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
room_type = self._room_info.get(room_id, {}).get("type", "unknown")
|
||||
logger.info("[rocketchat] Message from %s in %s [%s]: %s", username, room_name, room_type, text[:80])
|
||||
|
||||
# ── Kontext-Reset: _THEMATIC_TARGET_ROOM pro Nachricht zurücksetzen ──
|
||||
# Verhindert dass der Zielraum der VORHERIGEN Nachricht an der
|
||||
# aktuellen klebt (z.B. DM nach Projektraum-Turn → Antwort im Projektraum).
|
||||
_THEMATIC_TARGET_ROOM.set("")
|
||||
|
||||
# ── CLARIFY Response Handling ───────────────────────────────────
|
||||
# Handle CLARIFY button responses: CLARIFY:<clarify_id>:<choice> or CLARIFY:<clarify_id>:other
|
||||
if is_clarify_response and text.startswith("CLARIFY:"):
|
||||
|
||||
Reference in New Issue
Block a user