mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #21743] [CLOSED] fix: prevent scroll jumping when deleting message pair after stopping generation #65113
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/21743
Author: @Classic298
Created: 2/22/2026
Status: ❌ Closed
Base:
dev← Head:scroll-bug📝 Commits (2)
9479c6bfix: prevent scroll jumping when deleting message pair after stopping generation7f9ffc3Update Messages.svelte📊 Changes
1 file changed (+20 additions, -2 deletions)
View changed files
📝
src/lib/components/chat/Messages.svelte(+20 -2)📄 Description
fix: prevent scroll jumping when deleting message pair after stopping generation
Replaced the showMessage call in deleteMessage with inline computation of the new currentId. The showMessage function was triggering scrollIntoView and a redundant saveChatHandler call, which caused competing scroll operations and wild visual jumping when deleting a message pair — especially after stopping generation.
TESTED LOCALLY
WORKED
This bug existed for at least 1 year.
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.