bug: Users Can Edit Generated Code Within Code Blocks #2739

Closed
opened 2025-11-11 15:13:22 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @Simi5599 on GitHub (Nov 21, 2024).

Bug Report

Installation Method

Docker

Environment

  • Open WebUI Version: 0.4.2

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

When the LMM generates code within a block, I should only be able to edit it by modifying the model message

Actual Behavior:

The user can edit the code, but when the page is refreshed, it reverts to the version generated by the LMM

Reproduction Details

Steps to Reproduce:

  1. Request the LMM to generate any code.
  2. Wait for the response to arrive.
  3. Navigate to the generated code and make edits.

Logs and Screenshots

Screenshots/Screen Recordings (if applicable):

In this screenshot, I am requesting the LMM to generate code

Screenshot 2024-11-21 120343

In this screenshot, I am adding a new line

Screenshot 2024-11-21 120521

Additional Information

This issue also occurred prior to the 0.4.x update, indicating that it was not introduced in this version. It is present in both desktop and mobile browsers, so it is not related to any specific browser.

Originally created by @Simi5599 on GitHub (Nov 21, 2024). # Bug Report ## Installation Method Docker ## Environment - **Open WebUI Version:** 0.4.2 **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: When the LMM generates code within a block, I should only be able to edit it by modifying the model message ## Actual Behavior: The user can edit the code, but when the page is refreshed, it reverts to the version generated by the LMM ## Reproduction Details **Steps to Reproduce:** 1) Request the LMM to generate any code. 2) Wait for the response to arrive. 3) Navigate to the generated code and make edits. ## Logs and Screenshots **Screenshots/Screen Recordings (if applicable):** In this screenshot, I am requesting the LMM to generate code ![Screenshot 2024-11-21 120343](https://github.com/user-attachments/assets/1585d864-6dc1-4d51-9165-1047e337e81b) In this screenshot, I am adding a new line ![Screenshot 2024-11-21 120521](https://github.com/user-attachments/assets/adf9447e-2c90-44be-be0d-8ed248abd27c) ## Additional Information This issue also occurred prior to the 0.4.x update, indicating that it was not introduced in this version. It is present in both desktop and mobile browsers, so it is not related to any specific browser.
Author
Owner

@tjbck commented on GitHub (Nov 21, 2024):

Intended behaviour

@tjbck commented on GitHub (Nov 21, 2024): Intended behaviour
Author
Owner

@Simi5599 commented on GitHub (Nov 21, 2024):

Understandable, thanks a lot!!

@Simi5599 commented on GitHub (Nov 21, 2024): Understandable, thanks a lot!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#2739