fix(adapter): P-087 v1-Legacy onboarding bypass nur bei is_running aktiv

This commit is contained in:
Bernd (Hermes)
2026-08-22 06:55:11 +02:00
parent dae54455b9
commit 29dfff67b7
2 changed files with 190 additions and 5 deletions
+5 -5
View File
@@ -3095,11 +3095,11 @@ class RocketChatAdapter(BasePlatformAdapter):
or (is_operator_room and self._onboarding_state.get("phase") == "catch_all_change") # Catch-All Phase
or (is_operator_room and self._onboarding_state.get("phase") == "fakt_store") # Thema 3: FAKT-Speicherort Phase
or (is_operator_room and self._onboarding_state.get("phase") in _review_phases) # P0-1: Review-Flow Phasen
or (is_operator_room and "=" in stripped) # v1 Legacy: Name = Thema
or (is_operator_room and stripped.startswith("#")) # v1 Legacy: #Name = Thema
or (is_operator_room and stripped.lower().startswith("raum:")) # v1 Legacy: Raum: Name = Thema
or (is_operator_room and stripped.isdigit()) # Catch-All-Wechsel
or (is_operator_room and stripped.lower() in ("überspringen", "skip", "nein", "no", "behalten")) # Ablehnung
or (is_running and is_operator_room and "=" in stripped) # v1 Legacy: Name = Thema (NUR bei laufendem Interview, P-087)
or (is_running and is_operator_room and stripped.startswith("#")) # v1 Legacy: #Name = Thema (NUR bei laufendem Interview, P-087)
or (is_running and is_operator_room and stripped.lower().startswith("raum:")) # v1 Legacy: Raum: Name = Thema (NUR bei laufendem Interview, P-087)
or (is_running and is_operator_room and stripped.isdigit()) # Catch-All-Wechsel (NUR bei laufendem Interview, P-087)
or (is_running and is_operator_room and stripped.lower() in ("überspringen", "skip", "nein", "no", "behalten")) # Ablehnung (NUR bei laufendem Interview, P-087)
)
if is_onboarding:
await self._process_onboarding_response(text, room_id)