Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5 tasks done
marvin-season opened this issue Nov 21, 2024 · 1 comment · Fixed by #10945
Closed
5 tasks done

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

marvin-season opened this issue Nov 21, 2024 · 1 comment · Fixed by #10945
Labels
🐞 bug Something isn't working

Comments

@marvin-season
Copy link
Contributor

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.

@dosubot dosubot bot added the 🐞 bug Something isn't working label Nov 21, 2024
Copy link

dosubot bot commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant