fix: Rekursion bei Frage 4 — Button-Antwort nicht als Raum-Auswahl
- Wenn Interview läuft (current_question >= 1), ONBOARD-Button als
Antwort auf Frage durchreichen, nicht als Raum-Auswahl
- Verhindert Rekursion: ONBOARD:<rid>::❌ Nein startete Interview neu
This commit is contained in:
@@ -2190,6 +2190,14 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
logger.info("[rocketchat] Onboarding pausiert (later)")
|
||||
return
|
||||
|
||||
# Wenn ein Interview läuft (current_question >= 1), ist ein ONBOARD-Button
|
||||
# eine Antwort auf eine Frage (z.B. ✅ Ja / ❌ Nein bei Frage 4),
|
||||
# KEINE Raum-Auswahl. An Text-Antwort-Logik durchreichen.
|
||||
current_q = state.get("current_question", 0)
|
||||
if current_q >= 1:
|
||||
# Button-Antwort als Text behandeln — an Modus 2 durchreichen
|
||||
pass # fällt durch zu Modus 2 (Text-Antwort)
|
||||
else:
|
||||
# Raum-spezifische Aktionen: ONBOARD:<room_id>::<action>
|
||||
target_room_id = prefix_part.split(":", 1)[1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user