Skip to content

Desktop Discover: a newer revision of a cached model is offered, not shown as installed (fixes #3799) - #4313

Merged
ashhart merged 3 commits into
mainfrom
lead/discover-selected-revision
Nov 21, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/discover-selected-revision

Conversation

@ashhart

@ashhart ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

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. preflightRepo gets the app's selected revision SHA through ModelHub and 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 existing ModelRevisions.selected() registry.
  • Tests: model-revisions.test.ts checks that a newer ref resolving to a different SHA is ok while the selected main stays installed. hub.test.ts covers 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.

  • Synthena

@ashhart
ashhart force-pushed the lead/discover-selected-revision branch from 85b36ce to fbf2101 Compare November 21, 2026 09:28
@ashhart
ashhart merged commit 06f7ae1 into main Nov 21, 2026
5 of 16 checks passed
@ashhart
ashhart deleted the lead/discover-selected-revision branch November 21, 2026 09:28
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop Discover marks newer checkpoint revisions as already installed

1 participant