Preserve recipe name in run service and templates
- Pass recipe_name through create_run to display friendly names - Update templates to show name instead of hash - Fall back to truncated hash if no name available Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -146,8 +146,8 @@ async def get_run(
|
||||
run["total_steps"] = len(steps)
|
||||
run["executed"] = len(steps) if run.get("status") == "completed" else 0
|
||||
|
||||
# Use recipe name instead of hash for display
|
||||
if recipe.get("name"):
|
||||
# Use recipe name instead of hash for display (if not already set)
|
||||
if recipe.get("name") and not run.get("recipe_name"):
|
||||
run["recipe_name"] = recipe["name"]
|
||||
except Exception as e:
|
||||
logger.warning(f"Failed to load recipe for plan: {e}")
|
||||
|
||||
Reference in New Issue
Block a user