[GH-ISSUE #20632] issue: Inconsistent behavior when editing section breaks. #34769

Closed
opened 2026-04-25 08:56:48 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @jdwx on GitHub (Jan 13, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20632

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.7.2

Ollama Version (if applicable)

No response

Operating System

macOS Tahoe

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using 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 every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Horizontal rules should be applied consistently when applying and editing messages.

Actual Behavior

Horizontal rules in an edited message completely disappear and cannot be recreated or reintroduced.

Steps to Reproduce

  1. Run docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:
  2. Set up any model. I use a local model running on llama-server from llama.cpp.
  3. Type a message into the "Send a message" box that using a "---" or "***" to introduce a horizontal rule/section break. It will be converted on the spot, immediately after the third "-" keypress, before even sending the message.
  4. Send the message. The horizontal rule is now gone.
  5. Edit the message. The horizontal rule has been converted in markdown to "* * ." (Note that manually entering " * *" results in a bullet point containing two asterisks, not a horizontal rule.)

Logs & Screenshots

After typing two - characters, they are auto-replaced with an em dash (as usual/expected):

Image

Immediately upon typing the third - character, a horizontal rule is inserted.

Image

When the message is sent, the horizontal rule does not render in the user message. But it does render if the model quotes it, and the model (accurately) states that the horizontal rule is being represented as "* * *:"

Image

Editing the message, we see that the AI is telling the truth about "* * *:"

Image

Note that typing * * * in a new message entry field does not insert a horizontal rule.
It tries to inserts a bullet point containing "* *" instead:

Image

But it still disappears and the AI again reports it as a horizontal rule (and the rule is visible in the agent's quoting of the message):

Image

On editing again, it has been formatted as "* * *:"

Image

If I edit "---" into an existing message without blank lines, it treats the previous line as a header. (This is not too surprising.) If I edit "(newline)---(newline)" it gets replaced with "(newline)* * *(newline)" with the same display problems as above.

If I type "***" into a new message, it inserts a rule but keeps the *** on the cursor line:

Image

Additional Information

It seems like there are a couple of different issues here:

  1. Horizontal rules do not display in user messages.
  2. Horizontal rules present completely differently when composing a new message than when editing an existing message.
  3. When sending a new message, the (apparently) preferred syntax for a horizontal rule ("* * *") renders instead as a bullet point with two asterisks.
Originally created by @jdwx on GitHub (Jan 13, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/20632 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.7.2 ### Ollama Version (if applicable) _No response_ ### Operating System macOS Tahoe ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Horizontal rules should be applied consistently when applying and editing messages. ### Actual Behavior Horizontal rules in an edited message completely disappear and cannot be recreated or reintroduced. ### Steps to Reproduce 1. Run `docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:` 2. Set up any model. I use a local model running on llama-server from llama.cpp. 3. Type a message into the "Send a message" box that using a "---" or "***" to introduce a horizontal rule/section break. It will be converted on the spot, immediately after the third "-" keypress, before even sending the message. 4. Send the message. The horizontal rule is now gone. 5. Edit the message. The horizontal rule has been converted in markdown to "* * *." (Note that manually entering "* * *" results in a bullet point containing two asterisks, not a horizontal rule.) ### Logs & Screenshots After typing two - characters, they are auto-replaced with an em dash (as usual/expected): <img width="773" height="287" alt="Image" src="https://github.com/user-attachments/assets/b92ea6eb-1a0d-4e81-b16a-1f25b1161968" /> Immediately upon typing the third - character, a horizontal rule is inserted. <img width="794" height="320" alt="Image" src="https://github.com/user-attachments/assets/7ff3a325-c4af-4925-9560-9068c9d01f4d" /> When the message is sent, the horizontal rule does not render in the user message. But it does render if the model quotes it, and the model (accurately) states that the horizontal rule is being represented as "* * *:" <img width="1007" height="1011" alt="Image" src="https://github.com/user-attachments/assets/89c9eb4a-dddb-409d-bbb1-bdd6838f4df8" /> Editing the message, we see that the AI is telling the truth about "* * *:" <img width="1000" height="201" alt="Image" src="https://github.com/user-attachments/assets/3ca65dbf-1817-4162-ac6b-22e49531c184" /> Note that typing `* * *` in a new message entry field does not insert a horizontal rule. It tries to inserts a bullet point containing "* *" instead: <img width="778" height="325" alt="Image" src="https://github.com/user-attachments/assets/96c9a16a-a0f8-4c37-b9de-5d8e4e759810" /> But it still disappears and the AI again reports it as a horizontal rule (and the rule is visible in the agent's quoting of the message): <img width="1027" height="576" alt="Image" src="https://github.com/user-attachments/assets/d816eda2-3aab-4cb0-ac58-f26c9027a04a" /> On editing again, it has been formatted as "* * *:" <img width="994" height="227" alt="Image" src="https://github.com/user-attachments/assets/15a9b9f6-792d-4e98-a39c-c50ebe79a691" /> If I edit "---" into an existing message without blank lines, it treats the previous line as a header. (This is not too surprising.) If I edit "(newline)---(newline)" it gets replaced with "(newline)* * *(newline)" with the same display problems as above. If I type "***" into a new message, it inserts a rule but keeps the *** on the cursor line: <img width="858" height="327" alt="Image" src="https://github.com/user-attachments/assets/a576f74a-900e-48ee-bea7-c2aa60da4f90" /> ### Additional Information It seems like there are a couple of different issues here: 1) Horizontal rules do not display in user messages. 2) Horizontal rules present completely differently when composing a new message than when editing an existing message. 3) When sending a new message, the (apparently) preferred syntax for a horizontal rule ("* * *") renders instead as a bullet point with two asterisks.
GiteaMirror added the bug label 2026-04-25 08:56:48 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Jan 13, 2026):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #20237 issue: Image editing stopped working
    by tomasloksa • Dec 29, 2025 • bug, confirmed issue

  2. #19711 issue: Editing function for models broken
    by skleffmann • Dec 03, 2025 • bug

  3. #19987 issue: There is a lack of visual consistency between the home page and the chat interface.
    by i-iooi-i • Dec 16, 2025 • bug

  4. #19426 issue: Strange Behavior With Groups
    by matthew-kusz • Nov 24, 2025 • bug

  5. #20218 issue: Broken markdown checklist
    by opa-oz • Dec 28, 2025 • bug

Show 5 more related issues
  1. #18974 issue: hanging on front matter requirements after update
    by DuckyBlender • Nov 06, 2025 • bug

  2. #19752 issue: minor UI Bug: knowledge sharing
    by mahenning • Dec 04, 2025 • bug, confirmed issue

  3. #20128 issue: Characters are broken in 0.6.43
    by frenzybiscuit • Dec 22, 2025 • bug

  4. #19170 issue: Settings not honored or understood
    by itguy327 • Nov 13, 2025 • bug

  5. #19481 issue: admin panel not working
    by kybeq • Nov 25, 2025 • bug


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3741083118 --> @owui-terminator[bot] commented on GitHub (Jan 13, 2026): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#20237](https://github.com/open-webui/open-webui/issues/20237) **issue: Image editing stopped working** *by tomasloksa • Dec 29, 2025 • `bug`, `confirmed issue`* 2. [#19711](https://github.com/open-webui/open-webui/issues/19711) **issue: Editing function for models broken** *by skleffmann • Dec 03, 2025 • `bug`* 3. [#19987](https://github.com/open-webui/open-webui/issues/19987) **issue: There is a lack of visual consistency between the home page and the chat interface.** *by i-iooi-i • Dec 16, 2025 • `bug`* 4. [#19426](https://github.com/open-webui/open-webui/issues/19426) **issue: Strange Behavior With Groups** *by matthew-kusz • Nov 24, 2025 • `bug`* 5. [#20218](https://github.com/open-webui/open-webui/issues/20218) **issue: Broken markdown checklist** *by opa-oz • Dec 28, 2025 • `bug`* <details> <summary>Show 5 more related issues</summary> 6. [#18974](https://github.com/open-webui/open-webui/issues/18974) **issue: hanging on front matter requirements after update** *by DuckyBlender • Nov 06, 2025 • `bug`* 7. [#19752](https://github.com/open-webui/open-webui/issues/19752) **issue: minor UI Bug: knowledge sharing** *by mahenning • Dec 04, 2025 • `bug`, `confirmed issue`* 8. [#20128](https://github.com/open-webui/open-webui/issues/20128) **issue: Characters are broken in 0.6.43** *by frenzybiscuit • Dec 22, 2025 • `bug`* 9. [#19170](https://github.com/open-webui/open-webui/issues/19170) **issue: Settings not honored or understood** *by itguy327 • Nov 13, 2025 • `bug`* 10. [#19481](https://github.com/open-webui/open-webui/issues/19481) **issue: admin panel not working** *by kybeq • Nov 25, 2025 • `bug`* </details> --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#34769