[PR #29983] fix(workflow): clear loop/iteration metadata when pasting node outside container #32641

Open
opened 2026-02-21 20:51:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/29983

State: open
Merged: No


Summary

  • Clear loop/iteration metadata when pasting node outside Loop/Iteration containers
  • Affected fields: isInLoop, loop_id, isInIteration, iteration_id, parentId
  • Node now behaves as an independent workflow node after pasting outside

Test plan

  • Copy a node from inside a Loop container
  • Paste it outside the Loop
  • Verify the "Exit Loop" option no longer appears
  • Verify the node can connect to other nodes in the main workflow

Fixes #29835

**Original Pull Request:** https://github.com/langgenius/dify/pull/29983 **State:** open **Merged:** No --- ## Summary - Clear loop/iteration metadata when pasting node outside Loop/Iteration containers - Affected fields: `isInLoop`, `loop_id`, `isInIteration`, `iteration_id`, `parentId` - Node now behaves as an independent workflow node after pasting outside ## Test plan - [x] Copy a node from inside a Loop container - [x] Paste it outside the Loop - [x] Verify the "Exit Loop" option no longer appears - [x] Verify the node can connect to other nodes in the main workflow Fixes #29835
yindo added the pull-request label 2026-02-21 20:51:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32641