mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
_postprocess_graph now runs core.workflow.graph_normalizers: condition values written as JSON numbers become strings, if-else varType is derived from a declared start-variable type, http-request body items get the type BodyData cannot default, and _repair_branch_edge_handles delegates to the shared fail-closed repair (so a named-but-wrong handle such as "else" is re-homed, not only the default "source"). Shared with cmd+K /create and /refine: every change turns a graph the engine would have refused into one it accepts, and none alters a graph the engine already accepted. Nothing is rejected here. Validated on the real ESQ1-303 dev draft: value "60", varType "number", handles true/false, edge ids derived from the repaired handles. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>