mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22858] [CLOSED] fix: folder prompt ignored in temporary chats #26891
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22858
Author: @gambletan
Created: 3/19/2026
Status: ❌ Closed
Base:
main← Head:fix/temporary-chat-folder-prompt📝 Commits (1)
dd592bbfix: pass folder prompt to temporary chats📊 Changes
3 files changed (+29 additions, -18 deletions)
View changed files
📝
backend/open_webui/main.py(+1 -0)📝
backend/open_webui/utils/middleware.py(+22 -18)📝
src/lib/components/chat/Chat.svelte(+6 -0)📄 Description
Summary
chat_idreturned nothing. The fix captures thefolder_idon the frontend when a temporary chat starts and passes it in the request payload. The backend falls back to this client-suppliedfolder_idwhen the DB lookup finds no result.Changes
src/lib/components/chat/Chat.svelte: StoretemporaryChatFolderIdwhen initializing a temporary chat inside a folder; send it asfolder_idin the chat completion request.backend/open_webui/main.py: Extractfolder_idfrom the request payload into metadata.backend/open_webui/utils/middleware.py: Fall back tometadata["folder_id"]whenChats.get_chat_folder_id()returns nothing (as happens with temporary chats).Test plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.