Repository navigation
Fix duplicate GGUF rows in custom model folders - #9975
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6b3cbecec8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Before and afterBefore this PR, scanning a custom root that contained one grouped GGUF checkpoint plus its LM Studio-style loose files returned the directory row and duplicate Q4/Q8 file rows. The isolated pre-fix matrix reproduced the reported duplicate in 10 of 15 discovery cases. The original PR removed the basic duplicate, but still failed 4 of 15 cases and could hide two legitimate checkpoints that happened to share a quant label. After the fixes, custom discovery selects one directory row only when the files are variants of the same checkpoint. Distinct loose checkpoints remain separate, and split shards collapse only when the loader confirms a complete colocated split. The shared rules now feed the Hub inventory, the compatibility models route, and the local auto-switch resolver. Issues found and fixed
Verification
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
mahiatlinux
left a comment
There was a problem hiding this comment.
All reviewed and fixed, LGTM. full fork CI results
Line-count breakdown
This is not 1,353 lines of runtime behavior. The production diff is 384 additions and 7 deletions. The size comes mainly from regression coverage for custom roots, LM Studio layouts, overlapping and nested roots, symlinks and Windows junctions, split shards, companion files, mixed formats, partial directories, and distinct checkpoints sharing a quant label. |
Summary
Reproduction
Register a custom scan root containing model-name/model-q4_k_m.gguf. Before this change the picker shows both the model-name group and the nested GGUF file as separate top-level models. After this change it shows only the grouped model and keeps the GGUFs available as variants.
Regression coverage
A deterministic baseline/fix matrix covered 11 layouts including loose GGUFs, direct model roots, grouped variants, standard LM Studio publisher/model folders, mixed formats, safetensors, symlinks, and overlapping custom roots.
Tests