mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #22841] [CLOSED] fix: guard audioQueue access to prevent TypeError in Search Chats preview #130545
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/22841
Author: @themavik
Created: 3/19/2026
Status: ❌ Closed
Base:
dev← Head:fix/22745-read-aloud-null-audio-queue-v2📝 Commits (1)
daaab2bfix: guard audioQueue access to prevent TypeError in Search Chats preview📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+7 -1)📄 Description
Summary
Fixes #22745.
Root cause: The
$audioQueueSvelte store is typedAudioQueue | nulland initialized tonull. When "Read Aloud" is clicked in the Search Chats preview modal,speak()calls$audioQueue.setId()without a null check, causingTypeError: can't access property "setId", _() is null.Fix: Added a null guard before accessing
$audioQueuemethods inspeak(), and used optional chaining ($audioQueue?.stop()) instopAudio().Changes
src/lib/components/chat/Messages/ResponseMessage.svelte: Added null check for$audioQueueat the start of the TTS engine path inspeak(), returning early with a toast error if the audio queue is unavailable. Used optional chaining instopAudio()for the same store.Testing
$audioQueueis properly initializedMade with Cursor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.