From 2f6c815dc450106ef877ae32f4472bfd5cf83e47 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Thu, 28 May 2026 18:36:10 +0300 Subject: [PATCH] ui: fix audio and video modality detection (#23756) When model props are fetched asynchronously from the server, modelPropsVersion is incremented to trigger reactivity, but only the vision effect was listening to it. --- .../chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte b/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte index 07f079f5b..fd866b243 100644 --- a/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte +++ b/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte @@ -106,10 +106,14 @@ }); $effect(() => { + void modelPropsVersion; + hasAudioModality = activeModelId ? modelsStore.modelSupportsAudio(activeModelId) : false; }); $effect(() => { + void modelPropsVersion; + hasVideoModality = activeModelId ? modelsStore.modelSupportsVideo(activeModelId) : false; });