diff --git a/app/routers/runs.py b/app/routers/runs.py index 7341f70..296cec4 100644 --- a/app/routers/runs.py +++ b/app/routers/runs.py @@ -126,8 +126,10 @@ async def get_run( steps = [] if isinstance(nodes, list): for node in nodes: + node_id = node.get("id", "") steps.append({ - "name": node.get("id", ""), + "id": node_id, + "name": node_id, "type": node.get("type", "EFFECT"), "status": "completed", # Run completed "inputs": node.get("inputs", []), @@ -135,6 +137,7 @@ async def get_run( elif isinstance(nodes, dict): for node_id, node in nodes.items(): steps.append({ + "id": node_id, "name": node_id, "type": node.get("type", "EFFECT"), "status": "completed",