mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-20 02:28:02 -05:00
[PR #18762] [CLOSED] fix: audio deletes existing text/prompt #24909
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/18762
Author: @acomarcho
Created: 10/31/2025
Status: ❌ Closed
Base:
dev← Head:fix/audio-replaces-prompt📝 Commits (1)
ad8c905fix: audio deletes existing text/prompt📊 Changes
1 file changed (+32 additions, -30 deletions)
View changed files
📝
src/lib/components/chat/MessageInput.svelte(+32 -30)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
This PR fixes this issue: https://github.com/open-webui/open-webui/issues/18540 .
For the technical details, see the "additional information" part.
I made sure that the autocompletion for commands still work (for
/,@, or#), as it has a little logic change atinsertTextAtCursorwhich is used by it too.Added
None
Changed
None
Deprecated
None
Removed
None
Fixed
Fixes an issue where using STT replaces existing text/prompt.
Security
None
Breaking Changes
None
Additional Information
Technical details:
#keyat the voice component is used to reset the state of the voice recording component. If we don't have this, once you click record again, you will still see the previous waveform.&& showCommandsto fix an issue where if you are dictating when your cursor is at the end of a word, it will replace that word (because it's considered a part of a command). This ensures that it will only replace if it's a running command (i.e. starting with '@', '/', or '#')Issue: https://github.com/open-webui/open-webui/issues/18540
Screenshots or Videos
https://github.com/user-attachments/assets/e84f1b4d-5bb4-4f34-9278-e98b65b3694a
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.