[PR #19687] Support for copying nodes between workflows (This feature is unrelated to remove functions. When using the copy function, the browser will permanently retain the last copied node)." #29215

Closed
opened 2026-02-21 20:45:05 -05:00 by yindo · 0 comments
Owner

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

State: closed
Merged: Yes


Summary

This pull request updates the clipboard functionality in the workflow-slice.ts file to persist clipboard elements in localStorage. The most important change involves initializing clipboardElements from localStorage and ensuring updates to it are saved back to localStorage.

Close https://github.com/langgenius/dify/issues/17566

Clipboard persistence updates:

  • clipboardElements now initializes by retrieving data from localStorage (clipboard_elements key) or defaults to an empty array if no data is found.
  • setClipboardElements has been updated to save the provided clipboard elements to localStorage (clipboard_elements key) whenever it is called.

Support for copying nodes between workflows. Resolves #19545, see https://github.com/langgenius/dify/issues/19545

**Original Pull Request:** https://github.com/langgenius/dify/pull/19687 **State:** closed **Merged:** Yes --- # Summary This pull request updates the clipboard functionality in the `workflow-slice.ts` file to persist clipboard elements in `localStorage`. The most important change involves initializing `clipboardElements` from `localStorage` and ensuring updates to it are saved back to `localStorage`. Close https://github.com/langgenius/dify/issues/17566 ### Clipboard persistence updates: * `clipboardElements` now initializes by retrieving data from `localStorage` (`clipboard_elements` key) or defaults to an empty array if no data is found. * `setClipboardElements` has been updated to save the provided clipboard elements to `localStorage` (`clipboard_elements` key) whenever it is called. Support for copying nodes between workflows. Resolves #19545, see https://github.com/langgenius/dify/issues/19545
yindo added the pull-request label 2026-02-21 20:45:05 -05:00
yindo closed this issue 2026-02-21 20:45:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#29215