mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #18841] [MERGED] fix: duplicate prompt suggestions freezes webpage #11786
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/18841
Author: @acomarcho
Created: 11/1/2025
Status: ✅ Merged
Merged: 11/6/2025
Merged by: @tjbck
Base:
dev← Head:fix/duplicate-prompt-suggestions-freezes-webpage📝 Commits (1)
da282cefix: duplicate prompt suggestions freezes webpage📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Suggestions.svelte(+1 -1)📄 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.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
This PR fixes this issue reported in https://github.com/open-webui/open-webui/issues/18566
Now, duplicate prompt contents won't freeze the page.
Added
None
Changed
Gave each filteredPrompt an unique composite key of content and index.
Deprecated
None
Removed
None
Fixed
This PR fixes this issue reported in https://github.com/open-webui/open-webui/issues/18566
Security
None
Breaking Changes
None
Additional Information
This PR fixes this issue reported in https://github.com/open-webui/open-webui/issues/18566
Ideally, we'd have a unique ID stored as the backend so the frontend reconciliation can be done better. This will need some sort of backend migration.
But, it's probably going to be a short list of data anyways, so I believe this quick fix from the frontend side should suffice.
We are not just using indexes because that could be problematic when reconciliation occurs, so a composite key of content + idx is used this way.
Screenshots or Videos
Page now renders properly when we have the same prompt content.
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.