From f384c64a912ea5381849f10a7cbc002b7707ba33 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sun, 26 Apr 2026 19:37:53 +0000 Subject: [PATCH] fix(model-loader): also skip .ckpt, .zip, and .tag files when scanning models The local model directory scan treats every non-skipped file as a model config candidate. Sidecar artifacts that ship alongside checkpoints (checkpoint blobs, downloaded archives, ggml-style tag files) were slipping through and showing up as bogus models in the listing. Add their extensions to the suffix-skip list. Signed-off-by: Ettore Di Giacinto Assisted-by: Claude:claude-opus-4-7 [Claude Code] --- pkg/model/loader.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/model/loader.go b/pkg/model/loader.go index 048083ccb..75d477dc3 100644 --- a/pkg/model/loader.go +++ b/pkg/model/loader.go @@ -193,6 +193,9 @@ var knownModelsNameSuffixToSkip []string = []string{ ".bin", ".gguf", ".ggml", + ".ckpt", + ".zip", + ".tag", ".partial", ".tar.gz", }