mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #21492] fix: UI freeze loading chats on sidebar scroll-down #26102
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/21492
Author: @Ithanil
Created: 2/16/2026
Status: 🔄 Open
Base:
dev← Head:fix_scrolling_freeze📝 Commits (1)
8ba272bfix UI freeze loading chats on sidebar scroll-down📊 Changes
1 file changed (+20 additions, -8 deletions)
View changed files
📝
src/lib/components/layout/Sidebar.svelte(+20 -8)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
This PR fixes a chat-sidebar infinite-scroll failure where reaching the end of history could leave the UI stuck on Loading... and throw:
Uncaught TypeError: can't access property "prev", b is undefinedAt the same time, the backend sees never-ending requests to
api/v1/chats/?page=N, where N would constantly increase with increment 2.Root Cause
Sidebar pagination could keep requesting more pages without terminating. Potentially this only happens when certain problematic chats are present in the history.
What Changed
Testing Notes
Not Included (Intentional)
A possible hardening change in Loader.svelte was considered: ensuring only one visible dispatch interval runs at a time.
This was not included to keep the fix minimal and focused on the confirmed sidebar pagination issue.
Additional Information
I'm not sure if this here is the optimal fix, but it definitely works.
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 (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.