[GH-ISSUE #17122] feat: A download button for code blocks in the chat view #105170

Closed
opened 2026-05-18 03:03:19 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @c0008 on GitHub (Sep 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17122

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

It would be useful to have a download function for code blocks. Instead of manually creating and naming files and then copy and pasting the text one could just click "download" and have the file available. This would be especially useful when you are creating or editing multiple files in batches.

Right now there is a download button in the upper right when you open the artifacts UI but this is no general solution that work for all code blocks.
It was added with these commits:
https://github.com/open-webui/open-webui/pull/13829/commits

Desired Solution you'd like

A button like in the artifacts UI could be added next to the "Preview"/"Save"/"Copy"-buttons in the chat area.
(That "Save"-button is not for downloading.)

Image

Alternatives Considered

The artifacts UI could be enabled for all file types but a download button which is directly available would be a cleaner and more convenient solution.

Additional Context

No response

Originally created by @c0008 on GitHub (Sep 1, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17122 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description It would be useful to have a download function for code blocks. Instead of manually creating and naming files and then copy and pasting the text one could just click "download" and have the file available. This would be especially useful when you are creating or editing multiple files in batches. Right now there is a download button in the upper right when you open the artifacts UI but this is no general solution that work for all code blocks. It was added with these commits: https://github.com/open-webui/open-webui/pull/13829/commits ### Desired Solution you'd like A button like in the artifacts UI could be added next to the "Preview"/"Save"/"Copy"-buttons in the chat area. (That "Save"-button is not for downloading.) <img width="2686" height="1034" alt="Image" src="https://github.com/user-attachments/assets/11d6b234-c767-49f9-8ef3-3dd83b4e8933" /> ### Alternatives Considered The artifacts UI could be enabled for all file types but a download button which is directly available would be a cleaner and more convenient solution. ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#105170