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
This commit is contained in:
Aleksander Grygier
2026-09-03 13:26:15 +02:00
parent 717db7c6e0
commit 46f4d08bf8
@@ -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 =