mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #11111] Chat render incorrectly injects attached filename into markdown when an array reference is in the text #16113
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @allegedalohomora on GitHub (Mar 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11111
Originally assigned to: @tjbck on GitHub.
Bug Report
Installation Method
Installation via Docker (using these instructions: https://shawnhoover.dev/notes/home-ai-server.html)
Environment
Open WebUI Version: - 0.5.18
Ollama (if applicable): N/A
Operating System: Windows 11 Pro
Browser (if applicable): Chrome - Version 133.0.6943.142 (Official Build) (64-bit)
Confirmation:
Expected Behavior:
Chat correctly renders the markdown supplied from the LLM
Actual Behavior:
When the following condition holds:
Then the rendering engine seems to inject the file reference in place of the array reference in the resulting HTML.
Bug Summary:
Rendering engine seems to inject file context data into the user response in some scenarios based on the structure of markdown content.
Reproduction Details
Steps to Reproduce:
Reformat this string: STATUS=$(aws ssm list-commands —command-id “$COMMAND_ID” —query “ommands[0].Status” —output text)
<source_id data="0" title="...name of file in context referenced..." />
Logs and Screenshots
Browser Console Logs:
console-log-localhost-1740782433165.log
Docker Container Logs:
owebui_docker_log.txt
Screenshots/Screen Recordings (if applicable):

@tjbck commented on GitHub (Mar 4, 2025):
Addressed in dev with
d844fc7edb