fix(studio): batch-check models on the protocol being picked

The edit form can change a connection's protocol, so the shared batch
hook is given the draft protocol rather than the stored entry's.
This commit is contained in:
yhh committed 2026-10-12 08:59:48 -07:00
1 parent 0a647e12ff
commit 4473c23aa5
1 file changed
+1 -1
+1 -1
View File
@@ -244,7 +244,7 @@ export function EditConn({
const { batch, testAll } = useModelBatch({
port, picked, draftKey, setFacts, origin: "configured",
blocked: checkingModel !== "" || busy !== "",
request: { name: entry.name, baseUrl: baseUrl.trim(), apiKey: apiKey.trim(), kind: entry.kind },
request: { name: entry.name, baseUrl: baseUrl.trim(), apiKey: apiKey.trim(), kind },
});
const testing = checkingModel !== "" || batch === "running";
const [edited, setEdited] = useState(false);