[GH-ISSUE #119] Make copying text easier while text is still generated #11938

Closed
opened 2026-04-19 18:38:24 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @tosh on GitHub (Nov 18, 2023).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/119

Describe the bug
If you try to copy text while text is still generated the selection gets reset/lost (because the view gets re-rendered?)

To Reproduce
Steps to reproduce the behavior:

  1. send a message
  2. output starts to show token by token
  3. select text in the output to copy
  4. selected text gets deselected when the next token gets output

Expected behavior
text selection stays stable/selected

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Safari 17.1, Chrome 119
Originally created by @tosh on GitHub (Nov 18, 2023). Original GitHub issue: https://github.com/open-webui/open-webui/issues/119 **Describe the bug** If you try to copy text while text is still generated the selection gets reset/lost (because the view gets re-rendered?) **To Reproduce** Steps to reproduce the behavior: 1. send a message 2. output starts to show token by token 3. select text in the output to copy 4. selected text gets deselected when the next token gets output **Expected behavior** text selection stays stable/selected **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: macOS - Browser: Safari 17.1, Chrome 119
Author
Owner

@tjbck commented on GitHub (Nov 19, 2023):

Hi, Thanks for the suggestion. I'll have to look into this but I believe this is due to how svelte manipulates the DOM directly. Unfortunately I'm currently overwhelmed with all the work, so I'll take a look whenever I can. If you manage to find out a solution in the meantime, please reply to this thread or PR is always welcome!

<!-- gh-comment-id:1817704264 --> @tjbck commented on GitHub (Nov 19, 2023): Hi, Thanks for the suggestion. I'll have to look into this but I believe this is due to how svelte manipulates the DOM directly. Unfortunately I'm currently overwhelmed with all the work, so I'll take a look whenever I can. If you manage to find out a solution in the meantime, please reply to this thread or PR is always welcome!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#11938