mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #23024] [CLOSED] fix: preserve prefilled input value in input event dialog #65833
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/23024
Author: @yang1002378395-cmyk
Created: 3/25/2026
Status: ❌ Closed
Base:
dev← Head:fix-prefilled-input-reset-v2📝 Commits (1)
dc22bb2fix: preserve prefilled input value in input event dialog📊 Changes
2 files changed (+5 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+3 -0)📝
src/lib/components/common/ConfirmDialog.svelte(+2 -1)📄 Description
Summary
Fixes #23019
Problem
When sending an input event call with a prefilled value, the value was being reset to empty on subsequent calls.
Root Cause
Commit
fb26be7introduced logic to reset the input value when showing the dialog to avoid accidentally sending previous user input. However, this reset was applied unconditionally, even when the value was intentionally prefilled by the event caller.Solution
Add a
prefilledprop toConfirmDialog.sveltethat prevents the reset when the value was set by the event caller:prefilledprop toConfirmDialog.svelteprefilled=trueeventConfirmationPrefilledstate inChat.svelteprefilled=truewhendata.valueexistsThis preserves the intended behavior of clearing stale user input while allowing prefilled values to persist.
Testing
Manually tested with input event calls containing prefilled values - the value now persists correctly on repeated calls.
CLA
I have read and agree to the Contributor License Agreement.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.