[PR #22850] [CLOSED] fix: apply folder prompt to temporary chats #130552

Closed
opened 2026-05-21 14:51:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/22850
Author: @themavik
Created: 3/19/2026
Status: Closed

Base: devHead: fix/22772-temp-chat-folder-prompt


📝 Commits (1)

📊 Changes

3 files changed (+4 additions, -0 deletions)

View changed files

📝 backend/open_webui/main.py (+1 -0)
📝 backend/open_webui/utils/middleware.py (+2 -0)
📝 src/lib/components/chat/Chat.svelte (+1 -0)

📄 Description

Changelog Entry

Description

  • Fixed folder prompts not being applied to temporary chats. When a user creates a temporary chat in a folder with a system prompt, the prompt is now correctly applied.

Fixed

  • Folder system prompts are now applied to temporary chats by passing folder_id explicitly from the frontend when the chat is temporary, and using it in the backend middleware when the chat record lookup returns nothing.

Contributor License Agreement

Made with Cursor


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/22850 **Author:** [@themavik](https://github.com/themavik) **Created:** 3/19/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/22772-temp-chat-folder-prompt` --- ### 📝 Commits (1) - [`2139e79`](https://github.com/open-webui/open-webui/commit/2139e79bdbd4b1361eae59bb2492c928a6638bff) fix: apply folder prompt to temporary chats (#22772) ### 📊 Changes **3 files changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/main.py` (+1 -0) 📝 `backend/open_webui/utils/middleware.py` (+2 -0) 📝 `src/lib/components/chat/Chat.svelte` (+1 -0) </details> ### 📄 Description # Changelog Entry ### Description - Fixed folder prompts not being applied to temporary chats. When a user creates a temporary chat in a folder with a system prompt, the prompt is now correctly applied. ### Fixed - Folder system prompts are now applied to temporary chats by passing `folder_id` explicitly from the frontend when the chat is temporary, and using it in the backend middleware when the chat record lookup returns nothing. ### Contributor License Agreement - [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. Made with [Cursor](https://cursor.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-21 14:51:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#130552