bug fix und Debug Workflow #83

Merged
Lars merged 10 commits from develop into main 2026-04-13 18:15:07 +02:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit d5325acee6 - Show all commits

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

View File

@ -196,6 +196,7 @@ class WorkflowNode(BaseModel):
"""
id: str = Field(..., description="Eindeutige Knoten-ID")
type: NodeType = Field(..., description="Knotentyp")
name: Optional[str] = Field(None, description="Node-Name (vom Editor)")
position: Optional[Position] = Field(None, description="Position im visuellen Editor")
# ANALYSIS-Knoten