From 1f6ef7ac9044d6dedc3b8c9261089ebe1ec6dd39 Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Mon, 22 Dec 2025 20:11:46 +0900 Subject: [PATCH] fix: reset Test button after validation completes --- components/model-config-dialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/model-config-dialog.tsx b/components/model-config-dialog.tsx index c2612e4..2692376 100644 --- a/components/model-config-dialog.tsx +++ b/components/model-config-dialog.tsx @@ -290,12 +290,12 @@ export function ModelConfigDialog({ setValidatingModelIndex(null) if (allValid) { - setValidationStatus("success") updateProvider(selectedProviderId!, { validated: true }) } else { - setValidationStatus("error") setValidationError(`${errorCount} model(s) failed validation`) } + // Reset to idle so button shows "Test" again + setValidationStatus("idle") }, [selectedProvider, selectedProviderId, updateProvider, updateModel]) // Get all available provider types