<details></details> parsing does not process when one-liner #3337

Closed
opened 2025-11-11 15:29:34 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @OhMajesticLama on GitHub (Jan 21, 2025).

Bug Report

Installation Method

I encountered the issue with the docker version:
ghcr.io/open-webui/open-webui main f19b0d75f82a

I can reproduce the bug with a git clone from https://github.com/open-webui/open-webui and then bash run.sh.

Environment

  • Open WebUI Version: v0.5.4 and commit cc2dd0ea9563f8cdce2eeccc5791965f38f5cff7

  • Ollama (if applicable): Not applicable

  • Operating System: Fedora 41 and Ubuntu 24.04

  • Browser (if applicable): Firefox 134.0.1

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:

With input:
Image

This output:

Image

Image

Actual Behavior:

Image

Description

Bug Summary:
The <details></details> collapsable field is not processed if there is any character between <details> and \n.

Reproduction Details

Steps to Reproduce:

  1. Enter the text in Expected Behavior/input section in a model chat box.
  2. Save the message.

Logs and Screenshots

Browser Console Logs:
I didn't notice anything relevant in it, but here it is.
console-export-2025-1-21_21-1-47.txt

Docker Container Logs:
I didn't notice anything relevant in it, but here it is.
docker.log

Screenshots/Screen Recordings (if applicable):
See Expected/Actual Behavior sections.

Additional Information

This seems to fix the issue: I took the Expected Behavior screenshots from a build with this fix.

I can make a merge request if that helps.

Best regards

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 @OhMajesticLama on GitHub (Jan 21, 2025). # Bug Report ## Installation Method I encountered the issue with the docker version: ```ghcr.io/open-webui/open-webui main f19b0d75f82a``` I can reproduce the bug with a git clone from `https://github.com/open-webui/open-webui` and then `bash run.sh`. ## Environment - **Open WebUI Version:** v0.5.4 and commit cc2dd0ea9563f8cdce2eeccc5791965f38f5cff7 - **Ollama (if applicable):** Not applicable - **Operating System:** Fedora 41 and Ubuntu 24.04 - **Browser (if applicable):** Firefox 134.0.1 **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. - [x] I have included the browser console logs. - [x] 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: With input: ![Image](https://github.com/user-attachments/assets/95a1f7ec-9706-4d2d-a8bd-8322a6f3905a) This output: ![Image](https://github.com/user-attachments/assets/f1048192-fef4-4d37-af5c-ad79bc46340c) ![Image](https://github.com/user-attachments/assets/54ebdd2e-46fe-454e-8846-93380d5ff9b1) ## Actual Behavior: ![Image](https://github.com/user-attachments/assets/6a0d794d-c0a6-42e9-a7b1-97a5925b1e6d) ## Description **Bug Summary:** The `<details></details>` collapsable field is not processed if there is any character between `<details>` and \n. ## Reproduction Details **Steps to Reproduce:** 1. Enter the text in Expected Behavior/input section in a model chat box. 2. Save the message. ## Logs and Screenshots **Browser Console Logs:** I didn't notice anything relevant in it, but here it is. [console-export-2025-1-21_21-1-47.txt](https://github.com/user-attachments/files/18495908/console-export-2025-1-21_21-1-47.txt) **Docker Container Logs:** I didn't notice anything relevant in it, but here it is. [docker.log](https://github.com/user-attachments/files/18495969/docker.log) **Screenshots/Screen Recordings (if applicable):** See Expected/Actual Behavior sections. ## Additional Information [This](https://github.com/open-webui/open-webui/commit/315d132b570d712fbaf0849acb92886e0de0515a) seems to fix the issue: I took the Expected Behavior screenshots from a build with this fix. I can make a merge request if that helps. Best regards ## 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3337