mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[GH-ISSUE #19717] issue: "Save" button for code blocks does nothing, while "Copy" and "Run" work fine #18965
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 @Prostagma1 on GitHub (Dec 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19717
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.41
Ollama Version (if applicable)
No response
Operating System
Windows 11
Browser (if applicable)
Chrome 142.0
Confirmation
README.md.Expected Behavior
When clicking the "Save" button next to a code block (e.g., python ...), the browser should download a file with the appropriate name and extension (e.g., code.py). This is the standard behavior for code export in chat interfaces.
Actual Behavior
Clicking the "Save" button results in no action:
However, manually executing a Blob-based download script in the browser console successfully downloads the file, proving the content and permissions are valid.
Steps to Reproduce
Write a simple "Hello, World!" program in Pythonprint("Hello, World!")→ Result: file downloads successfully.
Logs & Screenshots
Browser console output (no errors, only warning):
Docker logs (relevant part):
→ No errors related to file download (as expected — it’s client-side).
Additional Information
@owui-terminator[bot] commented on GitHub (Dec 3, 2025):
🔍 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:
#19335 issue: model page Save & Update button not working in latest dev version
by jtabox • Nov 21, 2025 •
bug#19414 issue: Save button becomes unresponsive when adding a JSON-formatted custom header with syntax errors (dev branch only)
by ctolon • Nov 24, 2025 •
bug#12235 issue: DOC...Collapse Save Copy code view
by OzSpots-Wireless • Mar 31, 2025 •
bug#15745 issue: code block is not working in user's prompt
by navilg • Jul 15, 2025 •
bug#18922 issue: When code is present in the return output, the dialog box does not use code blocks.
by pureGavin • Nov 04, 2025 •
bugShow 5 more related issues
#19563 issue:
by naruto7g • Nov 28, 2025 •
bug#16745 issue: Copy button in code blocks copies the original AI output instead of the edited content
by yuliang615 • Aug 20, 2025 •
bug#19211 issue:
by Byrnes9 • Nov 16, 2025 •
bug#19083 issue: output always copied with formatting (chrome)
by tomasloksa • Nov 10, 2025 •
bug,good first issue#19047 issue: followup questions sometimes fail to generate
by avidwriter • Nov 08, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@Classic298 commented on GitHub (Dec 3, 2025):
The save button changes your modifications
edit the code
click save
reload page
observe your changes are still there
its not a download button, it is to save the code
@Prostagma1 commented on GitHub (Dec 3, 2025):
Ah, got it! Thanks for clarifying.
I misunderstood the purpose of the button - I thought "Save" meant "Download as file", not "Save edits to the message".
Maybe a tooltip or different label (like "Save edits") would help avoid confusion for other users too.
Anyway, thanks for the explanation!