mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-02 06:39:02 -05:00
[PR #22932] [CLOSED] fix : missing edit button and empty save for markdown in terminal file #81806
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22932
Author: @nehaaprasad
Created: 3/22/2026
Status: ❌ Closed
Base:
main← Head:fix/mrk-edi-miss-opn-ter-pan📝 Commits (1)
1872ec7fix missing edit button and empty save for markdown in terminal file panel📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/FileNav.svelte(+3 -1)📄 Description
Description
saveCodeFile()without a mounted CodeMirror editor, which could overwrite the file with empty content. This PR usesisPreviewFormat/isCodeEditorFileso preview-first types use the textarea edit/save flow.Added
isPreviewFormatandisCodeEditorFileinFileNav.svelte.Changed
isCodeEditorFileinstead ofisCode.Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
.mdfiles (pip install / Windows reported in original report).Screenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.