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