feat(knowledge): vérification post-workflow — dialogues restants
Some checks failed
security-audit / Bandit (scan statique) (push) Successful in 12s
security-audit / pip-audit (CVE dépendances) (push) Successful in 9s
security-audit / Scan secrets (grep) (push) Successful in 7s
tests / Lint (ruff + black) (push) Successful in 13s
tests / Tests unitaires (sans GPU) (push) Failing after 13s
tests / Tests sécurité (critique) (push) Has been skipped

Après la dernière étape, Léa vérifie l'écran et gère les dialogues
restants (jusqu'à 3 vérifications en cascade). Le workflow laisse
l'écran propre à la fin.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dom
2026-04-20 11:53:38 +02:00
parent 73b731fef8
commit 55d5aebbd2

View File

@@ -560,6 +560,20 @@ def execute_workflow_thread(execution_id: str, workflow_id: str, app):
db.session.commit() db.session.commit()
break break
# Vérification finale : gérer les dialogues restants après la dernière étape
if _execution_state.get('execution_mode') in ('intelligent', 'debug'):
print(f"\n{'='*60}")
print(f"🔎 [Post-workflow] Vérification écran final...")
time.sleep(1.0)
for attempt in range(3):
detected = _check_screen_for_patterns()
if detected:
print(f"🧠 [Post-workflow] Dialogue détecté: {detected.get('pattern')}")
_handle_detected_pattern(detected)
time.sleep(1.0)
else:
break
# Finaliser l'exécution # Finaliser l'exécution
if execution.status == 'running': if execution.status == 'running':
execution.status = 'completed' execution.status = 'completed'