From 46f4d08bf869edb6019b1180e76012268abfa8cc Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Thu, 3 Sep 2026 13:26:15 +0200 Subject: [PATCH] ui : exclude in-flight downloads from the loadable model list Downloading entries are not usable models yet; the selector tracks them in its download-progress section instead. Assisted-by: pi:zai-org/GLM-5.3 --- tools/ui/src/lib/stores/models/index.svelte.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/ui/src/lib/stores/models/index.svelte.ts b/tools/ui/src/lib/stores/models/index.svelte.ts index 235266576e..f1ec44303d 100644 --- a/tools/ui/src/lib/stores/models/index.svelte.ts +++ b/tools/ui/src/lib/stores/models/index.svelte.ts @@ -374,6 +374,9 @@ class ModelsStore implements ModelPropsHost, ModelStatusHost { entries // sidecar entries mark downloaded sidecar files, not loadable models .filter(({ item }) => !ModelsService.isSidecarEntry(item.id)) + // in-flight downloads are not usable models yet; the selector tracks + // them in its "Download in progress" section instead + .filter(({ item }) => item.status?.value !== ServerModelStatus.DOWNLOADING) .map(({ details, item }) => { const rawCapabilities = Array.isArray(details?.capabilities) ? details?.capabilities : []; const displayNameSource =