Unable to copy text in workflow #21276

Closed
opened 2026-02-21 20:11:44 -05:00 by yindo · 1 comment
Owner

Originally created by @JeeekXY on GitHub (Dec 24, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

In the workflow page, select text nodes and press Ctrl/Cmd + C.
Image
Image

✔️ Expected Behavior

Selected text copied to the clipboard

Actual Behavior

No text was copied; the workflow node was copied instead.

Originally created by @JeeekXY on GitHub (Dec 24, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.11.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce In the workflow page, select text nodes and press Ctrl/Cmd + C. <img width="500" height="250" alt="Image" src="https://github.com/user-attachments/assets/fe69cbd1-eede-4354-a5a7-e0a70d307fa9" /> <img width="500" height="500" alt="Image" src="https://github.com/user-attachments/assets/dfae74ac-2ec9-4438-ac2d-4cff349c330f" /> ### ✔️ Expected Behavior Selected text copied to the clipboard ### ❌ Actual Behavior No text was copied; the workflow node was copied instead.
yindo added the 🐞 bug label 2026-02-21 20:11:44 -05:00
yindo closed this issue 2026-02-21 20:11:44 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 24, 2025):

This issue happens because the workflow editor uses a custom keyboard shortcut handler that intercepts Ctrl/Cmd+C and overrides the browser's default copy behavior. Unless you're focused in a text input area, pressing Ctrl/Cmd+C will copy the entire workflow node, not the selected text inside it. The copy logic is node-based and does not support copying arbitrary text selections from within nodes, which is why your clipboard ends up with the node object instead of the text you highlighted (source).

Currently, there is no built-in workaround for copying text directly from workflow nodes. If you need to copy text, you can try double-clicking into any editable text field or input area within the node (if available), which should allow standard copy behavior. Otherwise, you may need to manually retype or use browser dev tools to extract the text until this behavior is improved. There are no recent changes or fixes for this in the latest pull requests.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Dec 24, 2025): <!-- Answer --> This issue happens because the workflow editor uses a custom keyboard shortcut handler that intercepts Ctrl/Cmd+C and overrides the browser's default copy behavior. Unless you're focused in a text input area, pressing Ctrl/Cmd+C will copy the entire workflow node, not the selected text inside it. The copy logic is node-based and does not support copying arbitrary text selections from within nodes, which is why your clipboard ends up with the node object instead of the text you highlighted ([source](https://github.com/langgenius/dify/blob/1ebc17850b82975dc26fd7d96f36065e3b34b0a8/web/app/components/workflow/hooks/use-shortcuts.ts#L20-L262)). Currently, there is no built-in workaround for copying text directly from workflow nodes. If you need to copy text, you can try double-clicking into any editable text field or input area within the node (if available), which should allow standard copy behavior. Otherwise, you may need to manually retype or use browser dev tools to extract the text until this behavior is improved. There are no recent changes or fixes for this in the latest pull requests. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/efae8eda-0e7d-45ce-a1ea-cf5372f2e63f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/efae8eda-0e7d-45ce-a1ea-cf5372f2e63f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/efae8eda-0e7d-45ce-a1ea-cf5372f2e63f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/efae8eda-0e7d-45ce-a1ea-cf5372f2e63f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/efae8eda-0e7d-45ce-a1ea-cf5372f2e63f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/efae8eda-0e7d-45ce-a1ea-cf5372f2e63f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/efae8eda-0e7d-45ce-a1ea-cf5372f2e63f?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20issue%20happens%20because%20the%20workflow%20editor%20uses%20a%20custom%20keyboard%20shortcut%20handler%20that%20intercepts%20Ctrl/Cmd%2BC%20and%20overrides%20the%20browser%27s%20default%20copy%20behavior.%20Unless%20you%27re%20focused%20in%20a%20text%20input%20area%2C%20pressing%20Ctrl/Cmd%2BC%20will%20copy%20the%20entire%20workflow%20node%2C%20not%20the%20selected%20text%20inside%20it.%20The%20copy%20logic%20is%20node-based%20and%20does%20not%20support%20copying%20arbitrary%20text%20selections%20from%20within%20nodes%2C%20which%20is%20why%20your%20clipboard%20ends%20up%20with%20the%20node%20object%20instead%20of%20the%20text%20you%20highlighted%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/blob/1ebc17850b82975dc26fd7d96f36065e3b34b0a8/web/app/components/workflow/hooks/use-shortcuts.ts%23L20-L262%29%29.%0A%0ACurrently%2C%20there%20is%20no%20built-in%20workaround%20for%20copying%20text%20directly%20from%20workflow%20nodes.%20If%20you%20need%20to%20copy%20text%2C%20you%20can%20try%20double-clicking%20into%20any%20editable%20text%20field%20or%20input%20area%20within%20the%20node%20%28if%20available%29%2C%20which%20should%20allow%20standard%20copy%20behavior.%20Otherwise%2C%20you%20may%20need%20to%20manually%20retype%20or%20use%20browser%20dev%20tools%20to%20extract%20the%20text%20until%20this%20behavior%20is%20improved.%20There%20are%20no%20recent%20changes%20or%20fixes%20for%20this%20in%20the%20latest%20pull%20requests.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/30140)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#21276