fix: Use node.name in node_label calculation (minimal change)
Deploy Development / deploy (push) Successful in 56s
Build Test / pytest-backend (push) Successful in 4s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 17s

- Add name field to WorkflowNode model
- Extend node_label priority: node.name > prompt_slug > node_type-id
- No new fields in NodeExecutionState (uses existing debug_prompt_slug)
- Simpler approach than previous attempt to avoid 504 timeout
This commit is contained in:
Lars committed 2026-04-13 18:03:02 +02:00
1 parent b7062d32bf
commit d5325acee6
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -167,7 +167,10 @@ async def execute_workflow(
)
# Add human-readable label to node_state for debug UI
node_label = node.prompt_slug if hasattr(node, 'prompt_slug') and node.prompt_slug else f"{node.type.value}-{node_id[:8]}"
# Priority: node.name (user-defined) > prompt_slug > node_type-id
node_label = node.name if hasattr(node, 'name') and node.name else (
node.prompt_slug if hasattr(node, 'prompt_slug') and node.prompt_slug else f"{node.type.value}-{node_id[:8]}"
)
if not node_state.debug_prompt_slug:
node_state.debug_prompt_slug = node_label