mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #23021] [CLOSED] fix: prefilled input value resets when sending input event call #26976
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/23021
Author: @yang1002378395-cmyk
Created: 3/25/2026
Status: ❌ Closed
Base:
main← Head:fix-prefilled-input-reset📝 Commits (1)
b3575fffix: prefilled input value resets when sending input event call📊 Changes
2 files changed (+3 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+1 -0)📝
src/lib/components/common/ConfirmDialog.svelte(+2 -1)📄 Description
Summary
Fixes #23019
Problem
When sending an event call of type
inputwith a prefilledvalue, the prefilled value is reset and sent empty on subsequent calls.Root Cause
Commit
fb26be7introduced a reset ininit()that clearsinputValueevery time the dialog shows, even when the value is intentionally prefilled.Solution
prefilledprop toConfirmDialog.svelteinputValuewhen!prefilledprefilled={!!eventConfirmationInputValue}fromChat.svelteTesting
Files Changed
src/lib/components/common/ConfirmDialog.svelte: Addedprefilledprop and conditional resetsrc/lib/components/chat/Chat.svelte: Passprefilledprop based on inputValue existence🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.