fix(settings): invalidate capture-readiness on auto_refine toggle (#753)

This commit is contained in:
devangkantharia
2026-10-04 00:00:08 +00:00
committed by capy-ai-staging[bot]
parent 0e1e9922a8
commit ca56137ca0
+5 -1
View File
@@ -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'] });
}
},