mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
apply_repair now rejects a graph Graph.init would refuse (PreflightError). Build's and Edit's plan approval called apply_repair with no guard, so the rejection would have escaped the handler and left the operation interrupted mid-step. Both now catch it: the step is marked failed, an error card names the node and the reason, nothing has been written, and the plan stays at its gate -- re-approving regenerates the graph. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>