fix(QG-VETO): P1-Blocker Negation + WIDERSPRUCH-Allow-Liste + State-Clear
P1-Blocker 1: HIER_HER-Pattern matcht Negation als Widerspruch - Lookahead schliesst 'nicht/nie/keinesfalls/kein' (ggf. mit 'rein'/'gar') nach dem Hier-her-Muster aus (Rainer Variante C) - 'Das passt hier nicht' / 'Das gehoert nicht hier her' / 'Das passt hierrein gar nicht' matchen NICHT mehr - 'Ich will das hier haben' matcht weiterhin (neues will...hier-haben-Muster) P1-Blocker 2: WIDERSPRUCH: in is_button_response-Allow-Liste - symmetrisch zu CLARIFY: und ARCHIVAR_CLARIFY: P2: _widerspruch_state.clear() nach WIDERSPRUCH-Verarbeitung Tests: 5 neue Edge-Case-Tests (Negation + will-hier-haben)
This commit is contained in:
@@ -2339,10 +2339,12 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
or (text and "::" in text
|
||||
and not text.startswith("CLARIFY:")
|
||||
and not text.startswith("ARCHIVAR_CLARIFY:")
|
||||
and not text.startswith("WIDERSPRUCH:")
|
||||
and not text.startswith("MOVE_REQ:")
|
||||
and text.split("::", 1)[0].strip() != "")
|
||||
or (text and text.startswith("CLARIFY:"))
|
||||
or (text and text.startswith("ARCHIVAR_CLARIFY:"))
|
||||
or (text and text.startswith("WIDERSPRUCH:"))
|
||||
)
|
||||
|
||||
# Check for CLARIFY button responses
|
||||
@@ -2691,6 +2693,9 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
# P-067: Clear Clarify-Modal pulse (user responded)
|
||||
if hasattr(self, '_presence_engine') and self._presence_engine is not None and self._presence_engine.is_enabled():
|
||||
self._presence_engine.clear_clarify_modal()
|
||||
# P2-Korrektur: Widerspruch-State vollständig leeren, damit keine
|
||||
# stale Einträge (z.B. bei unbekannter choice) zurückbleiben.
|
||||
self._widerspruch_state.clear()
|
||||
return
|
||||
except Exception as e:
|
||||
logger.debug("[rocketchat] Error processing WIDERSPRUCH response: %s", e)
|
||||
|
||||
Reference in New Issue
Block a user