mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #16082] [CLOSED] feat: add folder, pinned, shared and archived tags functionality for chat search modal
#10825
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/16082
Author: @silentoplayz
Created: 7/28/2025
Status: ❌ Closed
Base:
dev← Head:folders-and-pinned-tags-for-chat-search📝 Commits (4)
9982b7ffeat: more search tagsb99660afeat: Add archived and shared search optionsaba82b2fix: search tag options closing on click. Click now = searchcfb8893fix: search by folder name📊 Changes
5 files changed (+152 additions, -13 deletions)
View changed files
📝
backend/open_webui/models/chats.py(+46 -2)📝
backend/open_webui/models/folders.py(+11 -0)📝
src/lib/components/layout/SearchModal.svelte(+1 -0)📝
src/lib/components/layout/Sidebar/SearchInput.svelte(+93 -11)📝
src/lib/stores/index.ts(+1 -0)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
folder:<folder_name>: Search for chats within a specific folder. (currently not working for folder names that contain spaces)pinned:true: Search for pinned chats.shared:true: Search for shared chats.archived:true: Search for archived chats.tag:orfolder:in the search bar or have clicked on either tag in the dropdown itself.Changed
backend/open_webui/models/chats.py:tag:,folder:,pinned:,shared:,archived:).backend/open_webui/models/folders.py:src/lib/components/layout/Sidebar/:src/lib/components/layout/:Fixed
tag:; before a selection could be made.Screenshots or Videos
Known Issues: The folder search functionality does not currently work for folder names that contain spaces. This is a known issue that I was not able to successfully address. I'm sorry, but I must confess that I've tried my best.
Known Issue 2 (NOT INTRODUCED WITH THIS PR): This is a small issue that I've come across and is present on the latest dev commit of OWUI, from the time at which I created this PR. The issue is that there is an overlay of a code block's buttons (from the chat preview) being displayed over the search options dropdown menu, which isn't ideal.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.