[PR #23026] [CLOSED] fix: preserve prefilled input value in input event dialog #65835

Closed
opened 2026-05-06 11:49:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/23026
Author: @yang1002378395-cmyk
Created: 3/25/2026
Status: Closed

Base: devHead: fix-prefilled-input-reset-v2


📝 Commits (1)

  • dc22bb2 fix: 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

Pull Request Checklist

  • Target branch: PR targets the dev branch
  • Description: Concise description provided below
  • Changelog: Entry added
  • Testing: Manually tested - the fix works as intended

Changelog Entry

Description

Fixes #23019 - When sending an input event call with a prefilled value, the value was being reset to empty on subsequent calls.

Fixed

  • Added prefilled prop to ConfirmDialog.svelte to preserve intentionally prefilled input values
  • Modified reset logic to skip when prefilled=true
  • Added eventConfirmationPrefilled state in Chat.svelte to track prefilled state

Screenshots or Videos

  • N/A (logic fix, no visual changes)

Contributor License Agreement

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 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/23026 **Author:** [@yang1002378395-cmyk](https://github.com/yang1002378395-cmyk) **Created:** 3/25/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix-prefilled-input-reset-v2` --- ### 📝 Commits (1) - [`dc22bb2`](https://github.com/open-webui/open-webui/commit/dc22bb226e6ad9a467d449fcd978d4e96948e062) fix: preserve prefilled input value in input event dialog ### 📊 Changes **2 files changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Chat.svelte` (+3 -0) 📝 `src/lib/components/common/ConfirmDialog.svelte` (+2 -1) </details> ### 📄 Description <!-- ⚠️ CRITICAL CHECKS FOR CONTRIBUTORS (READ, DON'T DELETE) ⚠️ 1. Target the `dev` branch. PRs targeting `main` will be automatically closed. 2. Do NOT delete the CLA section at the bottom. It is required for the bot to accept your PR. --> # Pull Request Checklist - [x] **Target branch:** PR targets the `dev` branch - [x] **Description:** Concise description provided below - [x] **Changelog:** Entry added - [x] **Testing:** Manually tested - the fix works as intended # Changelog Entry ### Description Fixes #23019 - When sending an input event call with a prefilled value, the value was being reset to empty on subsequent calls. ### Fixed - Added `prefilled` prop to `ConfirmDialog.svelte` to preserve intentionally prefilled input values - Modified reset logic to skip when `prefilled=true` - Added `eventConfirmationPrefilled` state in `Chat.svelte` to track prefilled state ### Screenshots or Videos - N/A (logic fix, no visual changes) ### Contributor License Agreement <!-- 🚨 DO NOT DELETE THE TEXT BELOW 🚨 Keep the "Contributor License Agreement" confirmation text intact. Deleting it will trigger the CLA-Bot to INVALIDATE your PR. --> - [x] 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. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <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-06 11:49:38 -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#65835