Skip to content

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.

feat(release): notes for 2.6.3, auto-download that keeps its state, banners for old releases

purplec9474f52b354
diff --git a/.github/workflows/mark-old-releases.yml b/.github/workflows/mark-old-releases.yml
new file mode 100644
index 00000000..ec80bf58
--- /dev/null
+++ b/.github/workflows/mark-old-releases.yml
@@ -0,0 +1,37 @@
+name: Mark old releases
+
+# Every release page stays public and Google ranks the old ones: in the two weeks
+# to 2026-08-05 the v2.5.8 and v2.5.10 pages drew more unique visitors than
+# v2.6.2. A visitor arriving there had nothing telling them the version was old,
+# and the waitlist was still logging sign-ups from 2.5.5 and 2.5.6 builds.
+#
+# So on every release the banner is re-applied across the board: stripped from
+# the new current release, added to all the others. `edited` is included because
+# flipping a prerelease to Latest is an edit, and that is when the handover
+# actually happens.
+on:
+ release:
+ types: [published, released, edited]
+ workflow_dispatch:
+
+# A release publish plus the Latest flip fire in quick succession; let the later
+# run win instead of two runs patching the same bodies at once.
+concurrency:
+ group: mark-old-releases
+ cancel-in-progress: true
+
+permissions:
+ contents: write
+
+jobs:
+ mark:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
+ with:
+ node-version: 20
+ - name: Re-mark releases
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: node scripts/mark-old-releases.mjs
diff --git a/e2e/coding-agent.spec.ts b/e2e/coding-agent.spec.ts
index 5880e777..401657bb 100644
--- a/e2e/coding-agent.spec.ts
+++ b/e2e/coding-agent.spec.ts
@@ -188,3 +188,58 @@ test('file_read pages a large file instead of dumping it whole', async ({ page }
await expect(block.getByText(/\[lines 100-104 of 200\]/)).toBeVisible({ timeout: 10_000 })
await expect(block.getByText(/call file_read again with offset: 105/)).toBeVisible()
})
+
+test('the plan the model writes shows up above the composer and tracks progress', async ({ page }) => {
+ // Audit C4. On a long run the transcript scrolls away and the user cannot
+ // tell step 2 from step 9. The model owns the list through `todo_write`; this
+ // proves the tool is actually reachable in a real run (routing, permissions,
+ // executor, store, render) and that the strip follows the model's updates.
+ await boot(page, [
+ {
+ text: 'planning first',
+ toolCalls: [{
+ name: 'todo_write',
+ args: {
+ todos: [
+ { content: 'read the config', status: 'in_progress' },
+ { content: 'patch the parser', status: 'pending' },
+ { content: 'run the suite', status: 'pending' },
+ ],
+ },
+ }],
+ },
+ {
+ text: 'config read, patching',
+ toolCalls: [{
+ name: 'todo_write',
+ args: {
+ todos: [
+ { content: 'read the config', status: 'completed' },
+ { content: 'patch the parser', status: 'in_progress' },
+ { content: 'run the suite', status: 'pending' },
+ ],
+ },
+ }],
+ },
+ { text: 'PLAN_RUN_DONE' },
+ ])
+
+ await instruct(page, 'fix the parser and prove it')
+ await expect(page.getByRole('main').getByText('PLAN_RUN_DONE')).toBeVisible({ timeout: 30_000 })
+
+ // Collapsed by default, so what must be on screen is the counter and the step
+ // that is running right now — not the whole list pushing the composer away.
+ await expect(page.getByText('plan 1/3')).toBeVisible({ timeout: 10_000 })
+ await expect(page.getByText('patch the parser').first()).toBeVisible()
+
+ // Expanding shows every step, with the finished one struck through.
+ await page.getByText('plan 1/3').click()
+ await expect(page.getByText('read the config')).toBeVisible()
+ await expect(page.getByText('run the suite')).toBeVisible()
+
+ // `todo_write` must never have gone near the Rust bridge: it is pure
+ // conversation state, and a backend round trip would mean a permission gate
+ // on writing a to-do list.
+ const calls = await toolCalls(page)
+ expect(calls.filter((c: any) => c.cmd === 'todo_write')).toEqual([])
+})
diff --git a/scripts/mark-old-releases.mjs b/scripts/mark-old-releases.mjs
new file mode 100644
index 00000000..8ebb3540
--- /dev/null
+++ b/scripts/mark-old-releases.mjs
@@ -0,0 +1,83 @@
+#!/usr/bin/env node
+/**
+ * Put an "old release" banner on every release except the current one.
+ *
+ * Why: GitHub keeps every release page public and Google ranks them. In the two
+ * weeks to 2026-08-05 the release pages for v2.5.8 and v2.5.10 drew more unique
+ * visitors than v2.6.2 did, and the in-app waitlist was still logging sign-ups
+ * from 2.5.5 and 2.5.6 builds. Someone arriving from a search result had nothing
+ * on the page telling them they were looking at an old version.
+ *
+ * Doing this by hand ages badly, which is the same failure the pinned download
+ * route had. So it runs on every release: the new one gets its banner stripped
+ * (in case it carried one), everything else gets one added. Idempotent, so a
+ * re-run or a manual dispatch is free.
+ */
+
+const MARKER = '<!-- lu-old-release-banner -->'
+const BANNER =
+ MARKER +
+ '\n> **This is an old release.** Get the current version from the ' +
+ '[latest release](https://github.com/PurpleDoubleD/locally-uncensored/releases/latest), ' +
+ 'or download the Windows installer straight from ' +
+ '[lu-labs.ai](https://lu-labs.ai/api/download/windows). ' +
+ 'Older builds miss fixes and features, and some of them predate the Cloud.\n\n'
+
+const repo = process.env.GITHUB_REPOSITORY ?? 'PurpleDoubleD/locally-uncensored'
+const token = process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN
+if (!token) {
+ console.error('GITHUB_TOKEN missing')
+ process.exit(1)
+}
+
+const api = async (path, init = {}) => {
+ const res = await fetch(`https://api.github.com/repos/${repo}${path}`, {
+ ...init,
+ headers: {
+ Accept: 'application/vnd.github+json',
+ Authorization: `Bearer ${token}`,
+ 'User-Agent': 'lu-mark-old-releases',
+ ...(init.headers ?? {}),
+ },
+ })
+ if (!res.ok) throw new Error(`${init.method ?? 'GET'} ${path} -> ${res.status} ${await res.text()}`)
+ return res.json()
+}
+
+/** Strips a banner wherever it sits, so re-running never stacks them. */
+const withoutBanner = (body) => {
+ const at = (body ?? '').indexOf(MARKER)
+ if (at < 0) return body ?? ''
+ const end = (body ?? '').indexOf('\n\n', at)
+ return end < 0 ? '' : (body ?? '').slice(0, at) + (body ?? '').slice(end + 2)
+}
+
+const releases = []
+for (let page = 1; ; page++) {
+ const batch = await api(`/releases?per_page=100&page=${page}`)
+ releases.push(...batch)
+ if (batch.length < 100) break
+}
+
+// `/releases/latest` is the release flagged Latest, which is a deliberate choice
+// (we publish as a prerelease and flip it once verified), not simply the newest.
+const latest = await api('/releases/latest')
+console.log(`${releases.length} releases, current is ${latest.tag_name}`)
+
+let added = 0
+let removed = 0
+for (const rel of releases) {
+ const isCurrent = rel.id === latest.id
+ const has = (rel.body ?? '').includes(MARKER)
+ if (isCurrent === !has) continue // already in the right state
+
+ const body = isCurrent ? withoutBanner(rel.body) : BANNER + withoutBanner(rel.body)
+ await api(`/releases/${rel.id}`, {
+ method: 'PATCH',
+ body: JSON.stringify({ body }),
+ })
+ isCurrent ? removed++ : added++
+ console.log(` ${isCurrent ? 'cleared' : 'banner '} ${rel.tag_name}`)
+}
+
+console.log(`done: ${added} banner added, ${removed} cleared`)
diff --git a/src/components/layout/UpdateBadge.tsx b/src/components/layout/UpdateBadge.tsx
index 54e189e9..a928fbcd 100644
--- a/src/components/layout/UpdateBadge.tsx
+++ b/src/components/layout/UpdateBadge.tsx
@@ -44,14 +44,29 @@ export function UpdateBadge() {
const isError = downloadStatus === 'error'
const canDownload = isTauri() && downloadStatus === 'idle'
+ // A bare 20px icon in the corner is easy to never notice: on 2026-08-05 the
+ // in-app waitlist was still logging sign-ups from 2.5.5 and 2.5.6 builds,
+ // weeks after 2.5.7 shipped, on installs whose updater was working fine. So
+ // the badge says what it wants in words. It still collapses to the icon on a
+ // narrow window, where the header has no room for a label.
+ const label = isDownloaded
+ ? 'Restart to update'
+ : isDownloading
+ ? `Updating ${downloadProgress}%`
+ : isInstalling
+ ? 'Installing'
+ : isError
+ ? 'Update failed'
+ : `Update to v${latestVersion}`
+
return (
<div ref={ref} className="relative">
{/* Badge button */}
<button
onClick={() => setOpen(!open)}
- className={`relative p-1 rounded-md transition-colors ${
+ className={`relative flex items-center gap-1.5 rounded-md px-1.5 py-1 text-[0.7rem] font-medium transition-colors ${
isDownloaded
- ? 'text-emerald-400 hover:bg-emerald-500/10'
+ ? 'text-emerald-300 bg-emerald-500/15 hover:bg-emerald-500/25'
: isDownloading
? 'text-blue-400 hover:bg-blue-500/10'
: isError
@@ -64,24 +79,27 @@ export function UpdateBadge() {
: `Update available: v${latestVersion}`
}
>
- {isDownloading ? (
- <Loader2 size={20} strokeWidth={1.8} className="animate-spin" />
- ) : (
- <ArrowUpCircle size={20} strokeWidth={1.8} />
- )}
- {/* Status dot */}
- <span className={`absolute top-0 right-0 w-2.5 h-2.5 rounded-full ${
- isDownloaded ? 'bg-emerald-400'
- : isDownloading ? 'bg-blue-400'
- : isError ? 'bg-red-400'
- : 'bg-emerald-400'
- }`}>
- {!isDownloaded && !isError && (
- <span className={`absolute inset-0 rounded-full animate-ping opacity-75 ${
- isDownloading ? 'bg-blue-400' : 'bg-emerald-400'
- }`} />
+ <span className="relative">
+ {isDownloading || isInstalling ? (
+ <Loader2 size={20} strokeWidth={1.8} className="animate-spin" />
+ ) : (
+ <ArrowUpCircle size={20} strokeWidth={1.8} />
)}
+ {/* Status dot */}
+ <span className={`absolute top-0 right-0 w-2.5 h-2.5 rounded-full ${
+ isDownloaded ? 'bg-emerald-400'
+ : isDownloading ? 'bg-blue-400'
+ : isError ? 'bg-red-400'
+ : 'bg-emerald-400'
+ }`}>
+ {!isDownloaded && !isError && (
+ <span className={`absolute inset-0 rounded-full animate-ping opacity-75 ${
+ isDownloading ? 'bg-blue-400' : 'bg-emerald-400'
+ }`} />
+ )}
+ </span>
</span>
+ <span className="hidden md:inline whitespace-nowrap pr-0.5">{label}</span>
</button>
{/* Dropdown */}
diff --git a/src/lib/release-notes.ts b/src/lib/release-notes.ts
index 2f462882..9f0a7048 100644
--- a/src/lib/release-notes.ts
+++ b/src/lib/release-notes.ts
@@ -23,12 +23,13 @@ export interface ReleaseNote {
export const RELEASE_NOTES: ReleaseNote[] = [
{
version: '2.6.3',
- headline: 'Sharper measurements, and an agent that can reach your desktop',
+ headline: 'Agent runs you can trust, and a lighter, faster app',
lines: [
- 'The benchmark now shows what a model actually costs: tokens spent, how much of that went into thinking, and whether the answer was right. Two models that tie on speed rarely tie here.',
- 'A run that hit its token limit is marked as cut off, so a truncated answer is no longer blamed on the model.',
- 'The agent can open a folder or start a program when you ask it to.',
- 'Read aloud works again under the strict content policy, and ComfyUI says why it failed to start instead of going quiet.',
+ 'Agent and Code mode got a deep reliability pass: runs no longer stall, loop, or invent results, small local models drive tools properly, and Stop always stops.',
+ 'Long chats stopped eating memory, streaming stays smooth, and generated images now survive a restart.',
+ 'Every cloud model shows its price up front, and the credits meter counts video and training budgets truthfully.',
+ 'The benchmark measures cost and correctness, not just speed, and marks answers that were cut off.',
+ 'New: native HiRes fix for local image generation, and the agent opens folders and programs on request.',
],
},
]
diff --git a/src/stores/__tests__/updateStore-autodownload.test.ts b/src/stores/__tests__/updateStore-autodownload.test.ts
new file mode 100644
index 00000000..334bd104
--- /dev/null
+++ b/src/stores/__tests__/updateStore-autodownload.test.ts
@@ -0,0 +1,158 @@
+import { describe, it, expect, vi, beforeEach } from 'vitest'
+
+// The auto-download path lives inside the Tauri branch of checkForUpdate, which
+// updateStore.test.ts cannot reach (it mocks isTauri to false to exercise the
+// dev/GitHub path). Hence a second file with the real plugin mocked.
+//
+// Why this exists at all: on 2026-08-05 the in-app waitlist was still logging
+// sign-ups from 2.5.5 and 2.5.6 builds, weeks after 2.5.7 shipped, on installs
+// whose updater and signing key were both fine. People were not refusing the
+// update, they were never getting as far as starting the download.
+
+vi.mock('../../api/backend', () => ({
+ isTauri: () => true,
+ backendCall: vi.fn(),
+ openExternal: vi.fn(),
+}))
+
+vi.mock('../../../package.json', () => ({ version: '2.0.0' }))
+
+const updater = vi.hoisted(() => ({
+ check: vi.fn(),
+ downloads: 0,
+}))
+
+vi.mock('@tauri-apps/plugin-updater', () => ({ check: updater.check }))
+
+import { useUpdateStore } from '../updateStore'
+
+/** An Update handle that reports a complete download when asked. */
+function fakeUpdate(version: string) {
+ return {
+ version,
+ body: 'notes',
+ download: vi.fn(async (cb: (e: unknown) => void) => {
+ updater.downloads++
+ cb({ event: 'Started', data: { contentLength: 100 } })
+ cb({ event: 'Progress', data: { chunkLength: 100 } })
+ cb({ event: 'Finished' })
+ }),
+ install: vi.fn(),
+ }
+}
+
+/** checkForUpdate fires the download without awaiting it, on purpose: a 100 MB
+ * fetch must not block the check. Let those microtasks land. */
+const settle = () => new Promise((r) => setTimeout(r, 0))
+
+function reset(over: Record<string, unknown> = {}) {
+ useUpdateStore.setState({
+ currentVersion: '2.0.0',
+ latestVersion: null,
+ updateAvailable: false,
+ releaseNotes: null,
+ isChecking: false,
+ lastChecked: null,
+ dismissed: null,
+ autoDownload: true,
+ downloadStatus: 'idle',
+ downloadProgress: 0,
+ downloadedBytes: 0,
+ totalBytes: 0,
+ errorMessage: null,
+ ...over,
+ })
+}
+
+beforeEach(() => {
+ updater.check.mockReset()
+ updater.downloads = 0
+ reset()
+})
+
+describe('an update fetches itself', () => {
+ it('downloads as soon as the check finds one', async () => {
+ updater.check.mockResolvedValue(fakeUpdate('2.1.0'))
+
+ await useUpdateStore.getState().checkForUpdate()
+ await settle()
+
+ expect(updater.downloads).toBe(1)
+ expect(useUpdateStore.getState().downloadStatus).toBe('downloaded')
+ expect(useUpdateStore.getState().latestVersion).toBe('2.1.0')
+ })
+
+ it('stays off when the user turned it off', async () => {
+ reset({ autoDownload: false })
+ updater.check.mockResolvedValue(fakeUpdate('2.1.0'))
+
+ await useUpdateStore.getState().checkForUpdate()
+ await settle()
+
+ expect(updater.downloads).toBe(0)
+ // The badge still offers the manual Download button.
+ expect(useUpdateStore.getState().updateAvailable).toBe(true)
+ expect(useUpdateStore.getState().downloadStatus).toBe('idle')
+ })
+
+ it('starts immediately when the user switches it on with one waiting', async () => {
+ reset({ autoDownload: false })
+ updater.check.mockResolvedValue(fakeUpdate('2.1.0'))
+ await useUpdateStore.getState().checkForUpdate()
+ await settle()
+ expect(updater.downloads).toBe(0)
+
+ useUpdateStore.getState().setAutoDownload(true)
+ await settle()
+
+ expect(updater.downloads).toBe(1)
+ })
+})
+
+describe('the 6h re-check does not re-download', () => {
+ it('leaves a finished download alone', async () => {
+ updater.check.mockResolvedValue(fakeUpdate('2.1.0'))
+ await useUpdateStore.getState().checkForUpdate()
+ await settle()
+ expect(updater.downloads).toBe(1)
+
+ // The interval keeps firing for as long as the user stays on the old build.
+ // Resetting downloadStatus here would pull the same 100 MB every 6 hours,
+ // and would also blank a "Restart to update" badge back to "Download".
+ await useUpdateStore.getState().checkForUpdate(true)
+ await settle()
+ await useUpdateStore.getState().checkForUpdate(true)
+ await settle()
+
+ expect(updater.downloads).toBe(1)
+ expect(useUpdateStore.getState().downloadStatus).toBe('downloaded')
+ expect(useUpdateStore.getState().downloadProgress).toBe(100)
+ })
+
+ it('does re-download when the target version actually changes', async () => {
+ updater.check.mockResolvedValue(fakeUpdate('2.1.0'))
+ await useUpdateStore.getState().checkForUpdate()
+ await settle()
+
+ // A newer release lands while the app is still open: what we hold on disk
+ // is the wrong build now, so the state must reset and fetch again.
+ updater.check.mockResolvedValue(fakeUpdate('2.2.0'))
+ await useUpdateStore.getState().checkForUpdate(true)
+ await settle()
+
+ expect(updater.downloads).toBe(2)
+ expect(useUpdateStore.getState().latestVersion).toBe('2.2.0')
+ expect(useUpdateStore.getState().downloadStatus).toBe('downloaded')
+ })
+
+ it('does not restart a download that is still running', async () => {
+ const update = fakeUpdate('2.1.0')
+ updater.check.mockResolvedValue(update)
+ reset({ downloadStatus: 'downloading', latestVersion: '2.1.0', updateAvailable: true })
+
+ await useUpdateStore.getState().checkForUpdate(true)
+ await settle()
+
+ expect(updater.downloads).toBe(0)
+ })
+})
diff --git a/src/stores/updateStore.ts b/src/stores/updateStore.ts
index f2190584..86aeb094 100644
--- a/src/stores/updateStore.ts
+++ b/src/stores/updateStore.ts
@@ -16,6 +16,10 @@ interface UpdateState {
isChecking: boolean
lastChecked: number | null
dismissed: string | null
+ /** Fetch the update in the background as soon as it is found, so the badge
+ * offers a one-click Restart instead of a download the user has to sit
+ * through. Never auto-INSTALLS: nothing restarts without a click. */
+ autoDownload: boolean
downloadStatus: DownloadStatus
downloadProgress: number
@@ -30,6 +34,7 @@ interface UpdateState {
installAndRestart: () => Promise<void>
dismissUpdate: () => void
clearDismiss: () => void
+ setAutoDownload: (on: boolean) => void
openReleasePage: () => void
}
@@ -67,6 +72,7 @@ export const useUpdateStore = create<UpdateState>()(
isChecking: false,
lastChecked: null,
dismissed: null,
+ autoDownload: true,
downloadStatus: 'idle',
downloadProgress: 0,
@@ -89,19 +95,39 @@ export const useUpdateStore = create<UpdateState>()(
if (update) {
_pendingUpdate = update
+ // This check repeats every 6h for as long as the user stays on the
+ // old build. Resetting the download state unconditionally would
+ // throw away a finished download and, with autoDownload on, pull
+ // the same 100 MB again on every tick. Only a DIFFERENT version
+ // invalidates what we already have.
+ const isNewTarget = get().latestVersion !== update.version
set({
updateAvailable: true,
latestVersion: update.version,
releaseNotes: update.body ? truncateNotes(update.body) : null,
isChecking: false,
lastChecked: Date.now(),
- // Reset download state for new version
- downloadStatus: 'idle',
- downloadProgress: 0,
- downloadedBytes: 0,
- totalBytes: 0,
- errorMessage: null,
+ ...(isNewTarget
+ ? {
+ downloadStatus: 'idle' as DownloadStatus,
+ downloadProgress: 0,
+ downloadedBytes: 0,
+ totalBytes: 0,
+ errorMessage: null,
+ }
+ : {}),
})
+
+ // Fetch it now rather than waiting for a click. Sign-ups in the
+ // app were still arriving from 2.5.5 and 2.5.6 builds weeks after
+ // 2.5.7 shipped: people were not refusing the update, they were
+ // never getting far enough to start it. Not awaited — the check
+ // must not block on a 100 MB download. Only from 'idle', so a
+ // finished, running or failed download is never restarted behind
+ // the user's back.
+ if (get().autoDownload && get().downloadStatus === 'idle') {
+ void get().downloadUpdate()
+ }
} else {
set({ isChecking: false, lastChecked: Date.now(), updateAvailable: false })
}
@@ -214,6 +240,15 @@ export const useUpdateStore = create<UpdateState>()(
set({ dismissed: null })
},
+ setAutoDownload: (on: boolean) => {
+ set({ autoDownload: on })
+ // Turning it on with an update already waiting should act immediately,
+ // not at the next 6h tick.
+ if (on && get().updateAvailable && get().downloadStatus === 'idle') {
+ void get().downloadUpdate()
+ }
+ },
+
openReleasePage: () => {
void openExternal(`https://github.com/${GITHUB_REPO}/releases/latest`)
},
@@ -229,6 +264,7 @@ export const useUpdateStore = create<UpdateState>()(
latestVersion: state.latestVersion,
updateAvailable: state.updateAvailable,
releaseNotes: state.releaseNotes,
+ autoDownload: state.autoDownload,
}),
// Reset stale persisted state when the binary has been updated out-of-band
// (e.g. user manually installed a newer .deb / .exe than what the persisted