The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(updater): a withdrawn release stops being advertised
David676789d21011
diff --git a/src/stores/__tests__/updateStore-autodownload.test.ts b/src/stores/__tests__/updateStore-autodownload.test.tsindex 334bd104..4615505b 100644--- a/src/stores/__tests__/updateStore-autodownload.test.ts+++ b/src/stores/__tests__/updateStore-autodownload.test.ts@@ -156,3 +156,26 @@ describe('the 6h re-check does not re-download', () => {expect(updater.downloads).toBe(0)})})++describe('a withdrawn release stops being advertised', () => {+ // Found on 2026-08-15 at the installed 2.6.5 build while checking that a+ // prerelease install is not offered the older Latest: with a version left in+ // the store, the Updates section showed "Latest Version v2.9.9" and the green+ // "You are on the latest version." at the same time. The branch that finds+ // nothing only cleared updateAvailable and left the version standing.+ it('forgets the version once the check comes back empty', async () => {+ updater.check.mockResolvedValue(fakeUpdate('2.1.0'))+ await useUpdateStore.getState().checkForUpdate()+ await settle()+ expect(useUpdateStore.getState().latestVersion).toBe('2.1.0')++ // The release is pulled: same endpoint, nothing newer than what runs here.+ updater.check.mockResolvedValue(null)+ await useUpdateStore.getState().checkForUpdate(true)+ await settle()++ expect(useUpdateStore.getState().updateAvailable).toBe(false)+ expect(useUpdateStore.getState().latestVersion).toBe(null)+ expect(useUpdateStore.getState().releaseNotes).toBe(null)+ })+})diff --git a/src/stores/updateStore.ts b/src/stores/updateStore.tsindex 42df1c65..11a35efd 100644--- a/src/stores/updateStore.ts+++ b/src/stores/updateStore.ts@@ -130,7 +130,20 @@ export const useUpdateStore = create<UpdateState>()(void get().downloadUpdate()}} else {- set({ isChecking: false, lastChecked: Date.now(), updateAvailable: false })+ // Nothing on offer, so nothing may be left standing either. Only+ // clearing the flag kept the last known version in the store, and+ // the Updates section shows that row whenever it is newer than the+ // running build: "Latest Version v2.9.9" right next to the green+ // "You are on the latest version.". A withdrawn release is the+ // real path there, and it leaves people hunting for an update+ // that no longer exists.+ set({+ isChecking: false,+ lastChecked: Date.now(),+ updateAvailable: false,+ latestVersion: null,+ releaseNotes: null,+ })}} else {// Dev mode: check GitHub releases API (no install capability)