mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
issue: Duplicate prompt suggestions freezes webpage and throws JS error (2 bugs!) #6748
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?
Originally created by @silentoplayz on GitHub (Oct 24, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.34
Ollama Version (if applicable)
v0.12.6
Operating System
Ubuntu 24.04.3 LTS
Browser (if applicable)
Mozilla Firefox Snap for Ubuntu - v144.0 (64-bit)
Confirmation
README.md.Expected Behavior
I'm not 100% on what to expect here, but I do have some ideas/suggestions:
These suggestions should keep the UI responsive, avoids data loss, and doesn’t punish the user with extra clicks.
Actual Behavior
I am able to create and save multiple of the same (duplicate) prompt suggestions without warning.
The freeze is triggered either by:
Steps to Reproduce
docker run -d -p 3000:8080 -e OLLAMA_BASE_URL=http://host.docker.internal:11434 --add-host=host.docker.internal:host-gateway --name open-webui ghcr.io/open-webui/open-webui:mainAdmin Panel→Settings→InterfaceInterfaceadmin settings to remove the duplicate default prompt suggestion(s) to revert the change made to cause this issue.To reproduce the second bug:
Admin Panel→Settings→Models→ Edit any model →Default Prompt Suggestionsfield; identical freeze occurs with a different JS error thrown in the browser's console. This could also be done with a customWorkspacemodel from a base model if desired to reproduce the 2nd issue this way.New Chatpage to trigger/reproduce this bug.TL;DR:
1.1 Admin Panel → Settings → Interface
1.2 “Default Prompt Suggestions” → add two duplicate suggestions (e.g. “Tell me a fun fact about Open WebUI.”) → Save.
1.3 Click “New Chat” → page freezes (console:
Cannot have duplicate keys in a keyed each).2.1 Admin Panel → Settings → Models → Edit any model → “Default Prompt Suggestions” → add two duplicate suggestions → Save.
2.2 New Chat → select the edited model → same freeze.
Logs & Screenshots
Primary browser console error - [
Admin Panel→Settings→Interface→New Chat]:Secondary browser console error - [
Admin Panel→Settings→Interface→New Chat]:Browser console error - [
Admin→Settings→Model→Model Edit Page→Save & Create→New Chat→Select Model in Model Selector]:Additional Information
@acomarcho commented on GitHub (Nov 1, 2025):
Can confirm, I can reproduce this in my side, latest
devbranch in MacOS, Brave Browser.@acomarcho commented on GitHub (Nov 1, 2025):
Created a frontend-side fix here https://github.com/open-webui/open-webui/pull/18841 to generate unique keys by incorporating the index.
Ideally we'd probably want to generate an ID from the backend side, but it's probably overkill as there won't be much of this data anyways...