From 3e8c37a82ee2af8c13dd0ad5493ceea680eeeb14 Mon Sep 17 00:00:00 2001 From: Dotta Date: Wed, 29 Apr 2026 12:15:40 -0500 Subject: [PATCH] Match cheap-model trigger label to placeholder hint The cheap-model dropdown's empty trigger now reflects the same hint used inside the popover, so the trigger no longer shows "Default" while the warning copy says the adapter has no default. Co-Authored-By: Claude Opus 4.7 --- ui/src/components/AgentConfigForm.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/components/AgentConfigForm.tsx b/ui/src/components/AgentConfigForm.tsx index 5faba1d36d9..462c1c138ef 100644 --- a/ui/src/components/AgentConfigForm.tsx +++ b/ui/src/components/AgentConfigForm.tsx @@ -1330,6 +1330,7 @@ function ModelDropdown({ refreshingModels, detectModelLabel, emptyDetectHint, + defaultLabel, }: { models: AdapterModel[]; value: string; @@ -1347,6 +1348,7 @@ function ModelDropdown({ refreshingModels?: boolean; detectModelLabel?: string; emptyDetectHint?: string; + defaultLabel?: string; }) { const [modelSearch, setModelSearch] = useState(""); const [detectingModel, setDetectingModel] = useState(false); @@ -1433,7 +1435,8 @@ function ModelDropdown({ {selected ? selected.label - : value || (allowDefault ? "Default" : required ? "Select model (required)" : "Select model")} + : value + || (allowDefault ? (defaultLabel ?? "Default") : required ? "Select model (required)" : "Select model")} @@ -1678,6 +1681,7 @@ function CheapModelSection({ detectedModel={null} detectedModelCandidates={[]} emptyDetectHint={placeholderHint} + defaultLabel={placeholderHint} /> ) : null} {enabled && !model && adapterDefaultModel ? (