Skip to content

desktop: Discover compares the selected revision's sha; worker import fixture names the ticket bot's imports - #4606

Merged
ashhart merged 2 commits into
mainfrom
lead/desktop-revision-sha
Nov 22, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/desktop-revision-sha

Conversation

@ashhart

@ashhart ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Fixes main's two failing desktop app tests (900/902 on main's CI).

Discover: a selected revision shows as installed again

#4313 (fixes #3799) made Discover mark a cached model as installed only when the revision it would download is the one the app holds: hub.ts compares installedRevision(repo) with the resolved sha. But service.ts wired installedRevision to ModelRevisions.selected, which returns the snapshot directory's path, not the sha. The path never equals a sha, so once a revision was registered, the model never showed as installed and was offered for download again (model-revisions.test.ts:50, 'ok' !== 'installed').

ModelRevisions.revision(repo) now returns the registered sha from the same validated read selected() uses, and service.ts passes that (model-hub.ts takes the same function). A different selected revision is still offered for download; a matching one shows as installed; a model with no selected revision shows as installed, as before.

Room worker: the reviewed-imports fixture lists the ticket bot's imports

room-worker-effort.test.ts:80 evaluates the transpiled worker behind a reviewed-imports gate. 53bbf6d (Solo Kanban bots, fixes #3336) added three imports to the worker (shared/bot-policy, agent/bot-tool-scope, ./ticket-bot); the code is right and the fixture was stale, so it now lists them.

Checks

npm test (test:agent, 902 files): both tests pass. The 13 failures left in our sandbox need its missing environment (they pass on CI's runners); the desktop job is the check.

@ashhart
ashhart force-pushed the lead/desktop-revision-sha branch from 605983d to 1e3c434 Compare November 22, 2026 18:36
@ashhart
ashhart merged commit f2eb484 into main Nov 22, 2026
2 of 17 checks passed
@ashhart
ashhart deleted the lead/desktop-revision-sha branch November 22, 2026 18:36
ashhart added a commit that referenced this pull request Nov 22, 2026
ashhart added a commit that referenced this pull request Nov 22, 2026
ashhart added a commit that referenced this pull request Nov 22, 2026
ashhart added a commit that referenced this pull request Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant