mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #13068] [CLOSED] fix: Optimize sidebar chat hover behavior #38716
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/13068
Author: @cr-zhichen
Created: 4/20/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (2)
a7e12d9fix: fix excessive bandwidth usage caused by loading full chat content on hover in Sidebard2de674fix(sidebar): ensure only one chat is selected at a time, including inside folders📊 Changes
4 files changed (+56 additions, -23 deletions)
View changed files
📝
src/lib/components/layout/Sidebar.svelte(+20 -4)📝
src/lib/components/layout/Sidebar/ChatItem.svelte(+9 -19)📝
src/lib/components/layout/Sidebar/Folders.svelte(+9 -0)📝
src/lib/components/layout/Sidebar/RecursiveFolder.svelte(+18 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
https://github.com/open-webui/open-webui/discussions/13067
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Problem Fix:
Previously, hovering the mouse over a chat item in the sidebar would automatically request and load the entire content of that chat (including all messages and base64 images). If a chat contained a large number of images, this would result in a significant amount of data being repeatedly transferred each time the hover occurred, greatly wasting bandwidth and impacting performance.
Impact:
Now, the full chat data is only fetched when truly needed (e.g., clicking to open the chat or initiating a drag operation), significantly improving efficiency, reducing bandwidth consumption, and enhancing the user experience, especially for users with many chats or chats containing large media files.
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the CONTRIBUTOR_LICENSE_AGREEMENT, 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.