[GH-ISSUE #542] bug: Text selection difficult while model is generating response #27642

Closed
opened 2026-04-25 02:23:11 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @horiacristescu on GitHub (Jan 22, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/542

Bug Report

Description

Bug Summary:
Selecting text while the model is generating the response is difficult. The selection would not stick, the start of the selection would automatically set to the start of the response even when trying to select just a phrase. Because of this issue it is hard to start System TTS (using MacOS which has a few decent and fast voices) during response generation and have to wait for it to finish.

I suspect it is caused by the particular way tokens are appended. Instead of updating only the last paragraph, the whole response is updated messing up selection. In chatGPT UI you can select text without problem.

Steps to Reproduce:
Ask for a long response and try to select a phrase and trigger the system TTS on MacOS during generation

Expected Behavior:
The expected behavior is to be able to select a range of text from the paragraphs that have already finished.

Actual Behavior:
The selection jumps and it overselects.

Environment

  • Operating System: Mac OS 13.6
  • Browser (if applicable): Chrome 120.0.6099.129

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I have reviewed the troubleshooting.md document.
  • I have included the browser console logs.
  • I have included the Docker container logs.

Logs and Screenshots

https://github.com/ollama-webui/ollama-webui/assets/1104033/46d6e0af-f610-4f9b-b47f-7a2f094d1f90

Browser Console Logs:
[Include relevant browser console logs, if applicable]

Docker Container Logs:
[Include relevant Docker container logs, if applicable]

Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]

Installation Method

[Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.]

Additional Information

[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @horiacristescu on GitHub (Jan 22, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/542 # Bug Report ## Description **Bug Summary:** Selecting text while the model is generating the response is difficult. The selection would not stick, the start of the selection would automatically set to the start of the response even when trying to select just a phrase. Because of this issue it is hard to start System TTS (using MacOS which has a few decent and fast voices) during response generation and have to wait for it to finish. I suspect it is caused by the particular way tokens are appended. Instead of updating only the last paragraph, the whole response is updated messing up selection. In chatGPT UI you can select text without problem. **Steps to Reproduce:** Ask for a long response and try to select a phrase and trigger the system TTS on MacOS during generation **Expected Behavior:** The expected behavior is to be able to select a range of text from the paragraphs that have already finished. **Actual Behavior:** The selection jumps and it overselects. ## Environment - **Operating System:** Mac OS 13.6 - **Browser (if applicable):** Chrome 120.0.6099.129 ## Reproduction Details **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I have reviewed the troubleshooting.md document. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. ## Logs and Screenshots https://github.com/ollama-webui/ollama-webui/assets/1104033/46d6e0af-f610-4f9b-b47f-7a2f094d1f90 **Browser Console Logs:** [Include relevant browser console logs, if applicable] **Docker Container Logs:** [Include relevant Docker container logs, if applicable] **Screenshots (if applicable):** [Attach any relevant screenshots to help illustrate the issue] ## Installation Method [Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.] ## Additional Information [Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.] ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
GiteaMirror added the enhancementhelp wanted labels 2026-04-25 02:23:11 -05:00
Author
Owner

@tjbck commented on GitHub (Jan 22, 2024):

Just updated the rendering logic to exactly match ChatGPT. It seems like ChatGPT also fails to hold selected text in certain cases, and not much could be done from the frontend. Better TTS is on our roadmap, so stay tuned for that, Thanks!

<!-- gh-comment-id:1904556052 --> @tjbck commented on GitHub (Jan 22, 2024): Just updated the rendering logic to exactly match ChatGPT. It seems like ChatGPT also fails to hold selected text in certain cases, and not much could be done from the frontend. Better TTS is on our roadmap, so stay tuned for that, Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#27642