mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[PR #18257] [CLOSED] feat: persist sidebar state expanded/collapsed sections #79602
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/18257
Author: @silentoplayz
Created: 10/12/2025
Status: ❌ Closed
Base:
dev← Head:persist-sidebar-state📝 Commits (1)
af327d9feat: persist sidebar state expanded/collapsed sections📊 Changes
2 files changed (+14 additions, -5 deletions)
View changed files
📝
src/lib/components/common/Folder.svelte(+14 -0)📝
src/lib/components/layout/Sidebar.svelte(+0 -5)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
This pull request introduces functionality to persist the collapsed/expanded state of the chat sidebar sections using the browser's local storage. This ensures that a user's preferences for which sections are open or closed are remembered across page reloads and closing/reopening the chats sidebar, improving the user experience.
Added
Changed
src/lib/components/common/Folder.svelteto save itsopenstate tolocalStorageand restore it when the component is mounted.src/lib/components/layout/Sidebar.svelteto use the new generic state persistence from theFoldercomponent.Removed
localStoragehandling for the "Pinned" chats section fromsrc/lib/components/layout/Sidebar.svelte.Additional Information
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.