[PR #18852] [CLOSED] fix(chat): prevent duplicate prompt suggestions causing UI freeze #79872

Closed
opened 2026-05-13 13:53:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18852
Author: @fsmw
Created: 11/1/2025
Status: ❌ Closed

Base: dev ← Head: fix/18566-duplicate-prompt-suggestions-freeze


📝 Commits (1)

  • 5255a3a fix(chat): prevent duplicate prompt suggestions causing UI freeze

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 src/lib/components/chat/Suggestions.svelte (+4 -1)

📄 Description

Summary

Add reactive deduplication logic to prevent duplicate prompt suggestions from causing UI freeze in Svelte each block.

Issue

Fixes #18566 - Duplicate prompt suggestions freezes webpage and throws JS error (2 bugs!)

Changes Made

  • Added reactive deduplication using Map for filteredPrompts
  • Ensured unique keys in Svelte each block
  • Prevented "Cannot have duplicate keys" error
  • Maintained existing prompt filtering functionality

Testing

  • Reproduced duplicate prompt suggestions freeze
  • Verified fix prevents UI freeze
  • Tested with multiple duplicate prompts
  • Confirmed no console errors after fix

Additional Information

This fix addresses the root cause of browser freezing when duplicate prompt content exists by ensuring unique keys in the Svelte each block.

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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/18852 **Author:** [@fsmw](https://github.com/fsmw) **Created:** 11/1/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/18566-duplicate-prompt-suggestions-freeze` --- ### 📝 Commits (1) - [`5255a3a`](https://github.com/open-webui/open-webui/commit/5255a3aad400c289ac3561e21130c378cef3d491) fix(chat): prevent duplicate prompt suggestions causing UI freeze ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Suggestions.svelte` (+4 -1) </details> ### 📄 Description ## Summary Add reactive deduplication logic to prevent duplicate prompt suggestions from causing UI freeze in Svelte each block. ## Issue Fixes #18566 - Duplicate prompt suggestions freezes webpage and throws JS error (2 bugs!) ## Changes Made - [x] Added reactive deduplication using Map for filteredPrompts - [x] Ensured unique keys in Svelte each block - [x] Prevented "Cannot have duplicate keys" error - [x] Maintained existing prompt filtering functionality ## Testing - [x] Reproduced duplicate prompt suggestions freeze - [x] Verified fix prevents UI freeze - [x] Tested with multiple duplicate prompts - [x] Confirmed no console errors after fix ## Additional Information This fix addresses the root cause of browser freezing when duplicate prompt content exists by ensuring unique keys in the Svelte each block. ### Contributor License Agreement 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. --- <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-13 13:53:09 -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#79872