fix(P0-3): is_onboarding-Gate erweitert — FAKT::/REVIEW_*/⏰ Prefix abgefangen
This commit is contained in:
+9
-1
@@ -2183,7 +2183,15 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
# als Freitext an den LLM-Agenten durchgereicht werden.
|
||||
_review_phases = {"review_room", "review_butler", "review_fakt"}
|
||||
is_onboarding = (
|
||||
(is_operator_room and stripped.startswith("ONBOARD:")) # v2 Button-Klick
|
||||
# P0-3: Prefix-Checks VOR Phase-Inspektion (Defense in Depth)
|
||||
# Fängt FAKT::/REVIEW_*/⏰ auch bei State-Verlust ab
|
||||
(is_operator_room and stripped.startswith("FAKT::"))
|
||||
or (is_operator_room and stripped.startswith("REVIEW_BUTLER::"))
|
||||
or (is_operator_room and stripped.startswith("REVIEW_FAKT::"))
|
||||
or (is_operator_room and stripped.startswith("REVIEW_ROOM"))
|
||||
or (is_operator_room and "⏰" in stripped)
|
||||
or (is_operator_room and stripped.lower() == "später")
|
||||
or (is_operator_room and stripped.startswith("ONBOARD:")) # v2 Button-Klick
|
||||
or (is_operator_room and stripped.startswith("BUTLER:")) # Fix C v7: Butler-Mode Button
|
||||
or (is_operator_room and self._onboarding_state.get("current_room_index", -1) >= 0) # v2 Interview läuft
|
||||
or (is_operator_room and self._onboarding_state.get("phase") == "butler_mode") # Fix C v7: Butler-Mode Phase
|
||||
|
||||
Reference in New Issue
Block a user