Pasting a copy of an unselected node does not work #6875

Closed
opened 2026-02-21 18:17:46 -05:00 by yindo · 1 comment
Owner

Originally created by @marvin-season on GitHub (Nov 21, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

v0.11.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Click to enter the workflow.
  2. Create two arbitrary nodes.
  3. Open the operation panel for the node that is not selected and click copy.
  4. Using Ctrl+V to paste node

✔️ Expected Behavior

The expectation is for step 4 mentioned above to function properly.

Actual Behavior

The paste operation for the node using Ctrl+V is not working.

Originally created by @marvin-season on GitHub (Nov 21, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version v0.11.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Click to enter the workflow. 2. Create two arbitrary nodes. 3. Open the operation panel for the node that is not selected and click copy. 4. Using Ctrl+V to paste node ### ✔️ Expected Behavior The expectation is for step 4 mentioned above to function properly. ### ❌ Actual Behavior The paste operation for the node using Ctrl+V is not working.
yindo added the 🐞 bug label 2026-02-21 18:17:46 -05:00
yindo closed this issue 2026-02-21 18:17:46 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 21, 2024):

Hey @marvin-season! 👋 I'm here to help you with any bugs, questions, or contributions you have for Dify. Let's get this issue sorted out together!

The issue you're experiencing with pasting a copy of an unselected node might be related to how the copy and paste operations are implemented in the Dify workflow editor. The handleNodesCopy function is responsible for copying nodes, and it checks if a node is read-only or if it is a start node, among other conditions [1].

For the paste operation, the handleNodesPaste function checks if there are elements in the clipboard and if the nodes are not in a read-only state before proceeding with the paste [1]. If the node was not properly copied to the clipboard, it might not be available for pasting.

Ensure that the node is correctly copied to the clipboard by verifying that it meets the conditions for copying. If the issue persists, it might be worth checking if there are any specific conditions or constraints in your setup that could affect the clipboard state or the paste operation.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 21, 2024): <!-- Greeting --> Hey @marvin-season! 👋 I'm here to help you with any bugs, questions, or contributions you have for Dify. Let's get this issue sorted out together! <!-- Answer --> The issue you're experiencing with pasting a copy of an unselected node might be related to how the copy and paste operations are implemented in the Dify workflow editor. The `handleNodesCopy` function is responsible for copying nodes, and it checks if a node is read-only or if it is a start node, among other conditions <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/workflow/hooks/use-nodes-interactions.ts)</sup>. For the paste operation, the `handleNodesPaste` function checks if there are elements in the clipboard and if the nodes are not in a read-only state before proceeding with the paste <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/workflow/hooks/use-nodes-interactions.ts)</sup>. If the node was not properly copied to the clipboard, it might not be available for pasting. Ensure that the node is correctly copied to the clipboard by verifying that it meets the conditions for copying. If the issue persists, it might be worth checking if there are any specific conditions or constraints in your setup that could affect the clipboard state or the paste operation. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6875