fix(agent-chat): execution_status.running manquant en mode local

Le fallback d'exécution locale ne mettait pas execution_status["running"]
à True, ce qui causait l'arrêt immédiat de la boucle d'exécution avec
"Exécution annulée par l'utilisateur" dès la première étape.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dom
2026-03-14 17:31:36 +01:00
parent 79c19c5e9d
commit 766c57e126

View File

@@ -1052,6 +1052,11 @@ def execute_workflow(match, params):
# Fallback : exécution locale
logger.info("Streaming server indisponible, exécution locale")
execution_status["running"] = True
execution_status["workflow"] = match.workflow_name
execution_status["progress"] = 0
execution_status["message"] = "Démarrage (exécution locale)..."
try:
# Charger le workflow
with open(match.workflow_path, 'r') as f: