mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Builder-generated iterations/loops crashed the canvas permanently with React error #130 or TypeError. The backend synthesizes container-start markers correctly typed, but to_intents was recreating them as generic nodes, and persisting dangling start_node_id pointers. Fix three related issues: 1. Skip creating synthetic iteration-start/loop-start nodes (frontend regenerates them at render time from the container). 2. Strip start_node_id from container configs; the frontend's workflow-init.ts rewrites it to match the marker it creates, and persisting our pointer causes TypeError on dereference without guard. 3. Skip edges whose source or target is a skipped node; the generator emits entry edges to the synthetic marker, which no longer exist. The generator's own output (cmd+K) is untouched — only the Builder translation layer is fixed. Zero blast radius. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>