mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #24948] issue: [<positive-integer>] is not rendered in code blocks #123749
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 @ngladitz on GitHub (May 20, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24948
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.9.5
Ollama Version (if applicable)
No response
Operating System
macOS Tahoe
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
"[0]" inside code snippets in response messages should be rendered / visible and copyable.
Actual Behavior
"[0]" inside code blocks is hidden in response messages and omitted when copying the code block.
Steps to Reproduce
Given the following query:
I get the response (verified by using Copy on the entire message):
The "[0]" is not rendered in the code block and when using the code block specific "Copy" button it is also omitted from the clipboard:
I seem to be able to reproduce this with any positive integer between the square brackets.
Does not reproduce with strings, negative integers or decimals.
Logs & Screenshots
Additional Information
No response
@owui-terminator[bot] commented on GitHub (May 20, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟢 #24746 issue: v0.9.5 assistant message Copy button collapses Markdown line breaks when pasted into Obsidian / text editors
This is closely related because it reports a regression in the assistant message copy behavior for Markdown content in v0.9.5. Both issues involve code/markdown content being copied incorrectly from rendered messages, suggesting a shared copy/render pipeline problem.
by george3430 ·
bug🟣 #12864 issue: Python syntax is being interpreted wrong.
This is related at the rendering layer: Python syntax inside text is being misinterpreted as Markdown emphasis, showing that code-like content can be transformed incorrectly. The new issue’s disappearing digits in code blocks may stem from the same Markdown parsing/rendering bug class.
by updawg ·
bug🟣 #16745 issue: Copy button in code blocks copies the original AI output instead of the edited content
This issue also concerns code blocks and the copy button, specifically that the copied content does not match what is displayed after edits. It is a direct precedent for code block copy behavior being inconsistent with rendered content.
by yuliang615 ·
bug💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.