mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #23472] Bug: Prompt Save button becomes unresponsive when onSubmit fails - loading state never resets #35523
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 @limanto-com on GitHub (Apr 7, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23472
Bug Description
When editing a prompt and clicking the Save button in the Edit Modal, if the save operation fails (e.g., network error, server error), the button becomes permanently disabled and the modal stays open. The user receives no error feedback, and the loading spinner remains indefinitely.
Root Cause
In
src/lib/components/workspace/Prompts/PromptEditor.svelte(lines 77-110), thesubmitHandlerfunction has a bug:loading = trueis set at the startawait onSubmit()is called without error handlingloading = falseis only reached ifonSubmit()succeedsonSubmit()throws an error,loadingstaystrueforeverSteps to Reproduce
Suggested Fix
Wrap the
onSubmitcall in a try-catch block:Environment
src/lib/components/workspace/Prompts/PromptEditor.svelteImpact
This affects the user experience when:
Users are left with a frozen UI and no feedback about what went wrong.
@dylanmorris1231ho-spec commented on GitHub (Apr 7, 2026):
Thanks for the detailed bug report and for including the root cause
analysis.
On Tue, Apr 7, 2026, 6:57 AM limanto-com @.***> wrote:
@Classic298 commented on GitHub (Apr 8, 2026):
@limanto-com can you please try latest
dev?