The open-source AI voice studio. Clone, dictate, create.
fix(settings): invalidate capture-readiness on auto_refine toggle (#753)
devangkanthariaca56137ca0f1
diff --git a/app/src/lib/hooks/useSettings.ts b/app/src/lib/hooks/useSettings.tsindex 40750be7..f8f6aad6 100644--- a/app/src/lib/hooks/useSettings.ts+++ b/app/src/lib/hooks/useSettings.ts@@ -48,7 +48,11 @@ export function useCaptureSettings() {// call, but its cached response keeps serving the previous// model's state until the next 5 s poll. Invalidate on model// swaps so the readiness checklist re-checks immediately.- if (patch.stt_model !== undefined || patch.llm_model !== undefined) {+ if (+ patch.stt_model !== undefined ||+ patch.llm_model !== undefined ||+ patch.auto_refine !== undefined+ ) {queryClient.invalidateQueries({ queryKey: ['capture-readiness'] });}},