mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-24 14:23:59 -05:00
[PR #13066] [CLOSED] perf: Optimize data loading when hovering over sidebar chat items to improve performance. #46133
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13066
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
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.
Main Changes
Impact
Now, the full data is only fetched when truly needed (e.g., clicking to enter the chat or dragging), significantly improving efficiency and user experience.
Changelog Entry
Description
Changed
Removed
Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.