Repository navigation
Desktop Discover: a newer revision of a cached model is offered, not shown as installed (fixes #3799) - #4313
Merged
Merged
Conversation
Co-authored-by: AIFlowML <[email protected]>
…fered, not shown as installed (fixes #3799)
ashhart
force-pushed
the
lead/discover-selected-revision
branch
from
November 21, 2026 09:28
85b36ce to
fbf2101
Compare
Owner
Author
|
Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're credited as a TensorFold contributor. |
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3799.
Desktop Discover reduced installed models to repository names, so any revision of a cached repository showed as installed, including a newer immutable revision the user had not downloaded.
Discover now compares revisions.
preflightRepogets the app's selected revision SHA throughModelHuband reports a repository as installed only when that SHA is absent (legacy or externally cached models, as before) or equals the resolved SHA. A newer supported revision is offered for download, and re-selecting the installed revision still reports installed.app/electron/agent/engine/hub.ts: the preflight context takes the selected-revision resolver and compares SHAs.app/electron/agent/engine/model-hub.ts,service.ts: wire it to the existingModelRevisions.selected()registry.model-revisions.test.tschecks that a newer ref resolving to a different SHA isokwhile the selectedmainstaysinstalled.hub.test.tscovers selected and externally cached repositories.Desktop discovery and download admission only. The engine, loading, sampling and token generation are untouched.
Thanks @AIFlowML for the reproduction and the correction; co-authored.