From fac76c28dacd83f4f59926b6bb7a1f5c3a25eb84 Mon Sep 17 00:00:00 2001 From: Lars Date: Sun, 5 Apr 2026 07:28:30 +0200 Subject: [PATCH] fix: Handle None workflow_id in success path Also use 'N/A' placeholder in ExecutionResult when workflow_id is None (when using graph_data directly instead of workflow_definitions). Co-Authored-By: Claude Opus 4.6 --- backend/workflow_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/workflow_executor.py b/backend/workflow_executor.py index 0677e05..05a6367 100644 --- a/backend/workflow_executor.py +++ b/backend/workflow_executor.py @@ -186,7 +186,7 @@ async def execute_workflow( return ExecutionResult( execution_id=execution_id, - workflow_id=workflow_id, + workflow_id=workflow_id or "N/A", # Placeholder when graph_data is used directly status="completed", node_states=node_states, aggregated_result=aggregated,