From b57745098ea4f7dca9d80da2ab8c6f8c3b191a24 Mon Sep 17 00:00:00 2001 From: gilesb Date: Sun, 11 Jan 2026 17:43:31 +0000 Subject: [PATCH] Fix run_recipe to handle dict return from create_run Co-Authored-By: Claude Opus 4.5 --- app/routers/recipes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routers/recipes.py b/app/routers/recipes.py index 7199c47..bd7d6f2 100644 --- a/app/routers/recipes.py +++ b/app/routers/recipes.py @@ -247,8 +247,8 @@ async def run_recipe( raise HTTPException(500, "Run creation returned no result") return { - "run_id": run.run_id, - "status": run.status, + "run_id": run["run_id"] if isinstance(run, dict) else run.run_id, + "status": run.get("status", "pending") if isinstance(run, dict) else run.status, "message": "Recipe execution started", } except HTTPException: