[PR #21743] [CLOSED] fix: prevent scroll jumping when deleting message pair after stopping generation #65113

Closed
opened 2026-05-06 10:53:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/21743
Author: @Classic298
Created: 2/22/2026
Status: Closed

Base: devHead: scroll-bug


📝 Commits (2)

  • 9479c6b fix: prevent scroll jumping when deleting message pair after stopping generation
  • 7f9ffc3 Update 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.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/21743 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 2/22/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `scroll-bug` --- ### 📝 Commits (2) - [`9479c6b`](https://github.com/open-webui/open-webui/commit/9479c6b4abfd20027c4e451c24e97a1facf72a88) fix: prevent scroll jumping when deleting message pair after stopping generation - [`7f9ffc3`](https://github.com/open-webui/open-webui/commit/7f9ffc3b50152622d06020ee6b3f9f644bfb632c) Update Messages.svelte ### 📊 Changes **1 file changed** (+20 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Messages.svelte` (+20 -2) </details> ### 📄 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 <!-- 🚨 DO NOT DELETE THE TEXT BELOW 🚨 Keep the "Contributor License Agreement" confirmation text intact. Deleting it will trigger the CLA-Bot to INVALIDATE your PR. --> By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 10:53:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#65113