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
feat(release): say what is new, once per version
purple20fabcc4edf8
diff --git a/src/components/layout/AppShell.tsx b/src/components/layout/AppShell.tsxindex 51ae6995..bfc5f49d 100644--- a/src/components/layout/AppShell.tsx+++ b/src/components/layout/AppShell.tsx@@ -31,6 +31,7 @@ import { useCreateStore } from '../../stores/createStore'import { CloudGateModal } from '../cloud/CloudGateModal'import { CloudTeaserModal } from '../cloud/CloudTeaserModal'import { CloudExampleModal } from '../cloud/CloudExampleModal'+import { ReleaseNotesModal } from '../release/ReleaseNotesModal'import { ShortcutsModal } from './ShortcutsModal'import { CreditsExhaustedModal } from './CreditsExhaustedModal'import { Titlebar } from './Titlebar'@@ -821,6 +822,9 @@ export function AppShell() {{/* Example video popup: teaser "See plans" detours here (intentsurfaces only) before the gate. */}<CloudExampleModal />+ {/* What is new, once per version. Mounted inside the onboarded tree, so+ it can never stack on top of the onboarding wizard. */}+ <ReleaseNotesModal /><ShortcutsModal />{/* Out-of-credits purchase prompt: opens when LU Cloud answerscode:'credits_exhausted' (monthly budget + top-up wallet empty). */}diff --git a/src/components/onboarding/Onboarding.tsx b/src/components/onboarding/Onboarding.tsxindex 08139509..ac0594c5 100644--- a/src/components/onboarding/Onboarding.tsx+++ b/src/components/onboarding/Onboarding.tsx@@ -17,6 +17,8 @@ import { pullModelTauri, checkConnection as checkOllama } from '../../api/ollamaimport { hfUrlToOllamaRef, hfUrlToLmStudioSubdir } from '../../lib/hf-to-provider'import { startBundledEngine, startBundledEmbed } from '../../api/engine'import { BUILTIN_BACKEND_ID, classifyOnboardingBackend, resolveOnboardingBackend } from '../../lib/onboarding-backend'+import { version as currentVersion } from '../../../package.json'+import { useReleaseNotesStore } from '../../stores/releaseNotesStore'// Bug (h): the dedicated 'theme' onboarding step was removed because users// kept ending up on Light by accident, and the project standard is "dark@@ -340,6 +342,12 @@ export function Onboarding() {const finish = () => {updateSettings({ onboardingDone: true })+ // B4: a brand new install must NOT be greeted by "what is new in 2.6.3"+ // right after setting the app up for the first time. Stamping the current+ // version here silently is what separates a fresh install from an upgrade:+ // an upgrade never runs this wizard, so its flag stays null and it gets the+ // notes. This is the ONLY place that stamps without showing anything.+ useReleaseNotesStore.getState().markNotesSeen(currentVersion)// Persist to filesystem so NSIS updates don't reset onboardingif (isTauri) backendCall('set_onboarding_done').catch(() => {})}diff --git a/src/components/release/ReleaseNotesModal.tsx b/src/components/release/ReleaseNotesModal.tsxnew file mode 100644index 00000000..227b291b--- /dev/null+++ b/src/components/release/ReleaseNotesModal.tsx@@ -0,0 +1,98 @@+// "What is new" sheet, shown once after an update (B4, David 2026-08-04).+// Same shape as CloudTeaserModal: 360 px sheet, #232323, rounded-2xl, a short+// animated stage on top, framer-motion in and out, backdrop and X both close.+// Dismissing stamps the version, so it never comes back for this build.++import { AnimatePresence, motion } from 'framer-motion'+import { X, Sparkles } from 'lucide-react'+import { version as currentVersion } from '../../../package.json'+import { useSettingsStore } from '../../stores/settingsStore'+import { useReleaseNotesStore, shouldShowReleaseNotes } from '../../stores/releaseNotesStore'+import { releaseNoteFor } from '../../lib/release-notes'++export function ReleaseNotesModal() {+ const lastNotesVersion = useReleaseNotesStore((s) => s.lastNotesVersion)+ const markNotesSeen = useReleaseNotesStore((s) => s.markNotesSeen)+ const onboardingDone = useSettingsStore((s) => s.settings.onboardingDone)++ const open = shouldShowReleaseNotes(currentVersion, lastNotesVersion, onboardingDone)+ const note = releaseNoteFor(currentVersion)+ const close = () => markNotesSeen(currentVersion)++ return (+ <AnimatePresence>+ {open && note && (+ <motion.div+ initial={{ opacity: 0 }}+ animate={{ opacity: 1 }}+ exit={{ opacity: 0 }}+ className="fixed inset-0 z-[90] flex items-center justify-center bg-black/60 backdrop-blur-sm"+ onClick={close}+ >+ <motion.div+ initial={{ opacity: 0, y: 10, scale: 0.97 }}+ animate={{ opacity: 1, y: 0, scale: 1 }}+ exit={{ opacity: 0, y: 10, scale: 0.97 }}+ transition={{ duration: 0.15, ease: 'easeOut' }}+ onClick={(e) => e.stopPropagation()}+ className="w-[360px] max-w-[92vw] rounded-2xl bg-[#232323] border border-white/[0.08] shadow-2xl shadow-black/50 overflow-hidden"+ >+ <div className="relative h-[130px] bg-[#1b1b1b] border-b border-white/[0.06] overflow-hidden">+ <UpdateDemo version={note.version} />+ <button+ onClick={close}+ className="absolute top-2 right-2 p-1.5 rounded-md text-gray-500 hover:text-gray-200 hover:bg-white/10 transition-colors"+ title="Close"+ aria-label="Close"+ >+ <X size={14} />+ </button>+ </div>++ <div className="p-4 space-y-3">+ <div className="flex items-center gap-2">+ <Sparkles size={14} className="text-violet-300" />+ <h3 className="text-[0.85rem] font-semibold text-white">What is new</h3>+ <span className="ml-auto text-[0.55rem] font-medium uppercase tracking-widest text-violet-300/80">+ {note.version}+ </span>+ </div>+ <p className="text-[0.7rem] leading-relaxed text-gray-300">{note.headline}</p>+ <ul className="space-y-1.5">+ {note.lines.map((line) => (+ <li key={line} className="flex gap-2 text-[0.62rem] leading-relaxed text-gray-500">+ <span className="mt-[0.35rem] w-1 h-1 rounded-full bg-violet-300/70 shrink-0" />+ <span>{line}</span>+ </li>+ ))}+ </ul>+ <div className="flex items-center gap-2 pt-1">+ <button+ onClick={close}+ className="flex-1 flex items-center justify-center h-8 rounded-lg bg-white text-black text-[0.7rem] font-semibold hover:bg-gray-200 transition-colors"+ >+ Got it+ </button>+ </div>+ </div>+ </motion.div>+ </motion.div>+ )}+ </AnimatePresence>+ )+}++/** Pure CSS/SVG, like the teaser demos: no media asset in the bundle. */+function UpdateDemo({ version }: { version: string }) {+ return (+ <div className="absolute inset-0 flex items-center justify-center">+ <motion.div+ className="w-20 h-20 rounded-2xl bg-gradient-to-br from-violet-500/50 to-sky-500/50 flex items-center justify-center"+ animate={{ scale: [0.94, 1.04, 0.94] }}+ transition={{ duration: 2.6, repeat: Infinity, ease: 'easeInOut' }}+ >+ <span className="text-[0.7rem] font-mono font-semibold text-white/90">{version}</span>+ </motion.div>+ </div>+ )+}diff --git a/src/lib/release-notes.ts b/src/lib/release-notes.tsnew file mode 100644index 00000000..2f462882--- /dev/null+++ b/src/lib/release-notes.ts@@ -0,0 +1,39 @@+/**+ * What is new in this version, shown once after an update (B4, David 2026-08-04).+ *+ * New models land weekly and the catalogue is server-driven, so a shipped build+ * gains capability without anyone noticing. This is the one place that tells the+ * user what changed, once per version, and then never again.+ *+ * The rule that keeps it honest: a version with NO entry here shows NO popup.+ * An empty sheet is worse than no sheet, and a release whose notes nobody wrote+ * should simply stay quiet rather than greet the user with a headline and+ * nothing under it.+ */++export interface ReleaseNote {+ /** Exact version string, matched against package.json. */+ version: string+ /** One line the user reads first. */+ headline: string+ /** Two to five short lines. Anything longer stops being read. */+ lines: string[]+}++export const RELEASE_NOTES: ReleaseNote[] = [+ {+ version: '2.6.3',+ headline: 'Sharper measurements, and an agent that can reach your desktop',+ 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.',+ ],+ },+]++/** The note for a version, or undefined when nobody wrote one. */+export function releaseNoteFor(version: string): ReleaseNote | undefined {+ return RELEASE_NOTES.find((n) => n.version === version)+}diff --git a/src/stores/__tests__/releaseNotesStore.test.ts b/src/stores/__tests__/releaseNotesStore.test.tsnew file mode 100644index 00000000..379fed33--- /dev/null+++ b/src/stores/__tests__/releaseNotesStore.test.ts@@ -0,0 +1,100 @@+/**+ * B4 (David 2026-08-04): "what is new" once per VERSION.+ *+ * The whole feature is one decision, and it has exactly one trap: a null flag+ * means two different things. A fresh install has never stored one, and so does+ * anyone upgrading from a build that predates the store. Show the popup on both+ * and every new customer is greeted by release notes for software they have+ * never used. Suppress it on both and no upgrade ever sees it. So the rule+ * needs a second signal, and this file is where that is pinned down.+ *+ * Run: npx vitest run src/stores/__tests__/releaseNotesStore.test.ts+ */+import { describe, it, expect, beforeEach } from 'vitest'+import { useReleaseNotesStore, shouldShowReleaseNotes } from '../releaseNotesStore'+import { RELEASE_NOTES, releaseNoteFor } from '../../lib/release-notes'++/** A version that really has notes, read from the table rather than hardcoded. */+const KNOWN = RELEASE_NOTES[0].version+const UNKNOWN = '9.9.9'++beforeEach(() => useReleaseNotesStore.setState({ lastNotesVersion: null }))++describe('the notes table', () => {+ it('has at least one entry, so the rest of this file means something', () => {+ expect(RELEASE_NOTES.length).toBeGreaterThan(0)+ expect(releaseNoteFor(KNOWN)).toBeDefined()+ expect(releaseNoteFor(UNKNOWN)).toBeUndefined()+ })++ it('every entry has a headline and at least two lines', () => {+ for (const n of RELEASE_NOTES) {+ expect(n.headline.trim().length, `${n.version}: headline`).toBeGreaterThan(10)+ expect(n.lines.length, `${n.version}: lines`).toBeGreaterThanOrEqual(2)+ for (const l of n.lines) expect(l.trim().length, `${n.version}: empty line`).toBeGreaterThan(0)+ }+ })++ it('no version appears twice', () => {+ const versions = RELEASE_NOTES.map((n) => n.version)+ expect(new Set(versions).size).toBe(versions.length)+ })+})++describe('shouldShowReleaseNotes', () => {+ it('shows for an upgrade from a build that had no store yet', () => {+ // The 2.6.2 to 2.6.3 case: onboarding was done long ago, the flag is null+ // because this store did not exist there.+ expect(shouldShowReleaseNotes(KNOWN, null, true)).toBe(true)+ })++ it('shows for an upgrade from a version whose notes were already read', () => {+ expect(shouldShowReleaseNotes(KNOWN, '2.6.0', true)).toBe(true)+ })++ it('does NOT show again once this version was seen', () => {+ expect(shouldShowReleaseNotes(KNOWN, KNOWN, true)).toBe(false)+ })++ it('does NOT show while onboarding is still running', () => {+ // This is the fresh-install guard. Onboarding owns the whole screen, and+ // finish() stamps the current version, so a new user never reaches the+ // "null means upgraded" branch above.+ expect(shouldShowReleaseNotes(KNOWN, null, false)).toBe(false)+ })++ it('stays quiet for a version nobody wrote notes for', () => {+ // A release that ships without notes shows no sheet rather than a headline+ // with nothing under it.+ expect(shouldShowReleaseNotes(UNKNOWN, null, true)).toBe(false)+ expect(shouldShowReleaseNotes(UNKNOWN, '2.6.0', true)).toBe(false)+ })+})++describe('the fresh-install sequence end to end', () => {+ it('a new user who finishes onboarding never sees the notes for that build', () => {+ const store = useReleaseNotesStore.getState()+ // Before onboarding finishes: nothing stored, nothing shown.+ expect(shouldShowReleaseNotes(KNOWN, useReleaseNotesStore.getState().lastNotesVersion, false)).toBe(false)+ // Onboarding.finish() does exactly this.+ store.markNotesSeen(KNOWN)+ // Now onboarded, and the sheet stays down.+ expect(shouldShowReleaseNotes(KNOWN, useReleaseNotesStore.getState().lastNotesVersion, true)).toBe(false)+ })++ it('that same user DOES see the notes for the next version', () => {+ useReleaseNotesStore.getState().markNotesSeen(KNOWN)+ // Pretend the next build ships with its own entry.+ expect(useReleaseNotesStore.getState().lastNotesVersion).toBe(KNOWN)+ expect(shouldShowReleaseNotes(KNOWN, KNOWN, true)).toBe(false)+ // A different current version with notes would show; proven with the table+ // entry itself so this cannot pass on a typo.+ expect(shouldShowReleaseNotes(KNOWN, 'something-older', true)).toBe(true)+ })++ it('dismissing stamps the version so it does not return', () => {+ expect(shouldShowReleaseNotes(KNOWN, null, true)).toBe(true)+ useReleaseNotesStore.getState().markNotesSeen(KNOWN)+ expect(shouldShowReleaseNotes(KNOWN, useReleaseNotesStore.getState().lastNotesVersion, true)).toBe(false)+ })+})diff --git a/src/stores/releaseNotesStore.ts b/src/stores/releaseNotesStore.tsnew file mode 100644index 00000000..44346c0f--- /dev/null+++ b/src/stores/releaseNotesStore.ts@@ -0,0 +1,60 @@+import { create } from 'zustand'+import { persist } from 'zustand/middleware'+import { releaseNoteFor } from '../lib/release-notes'++/**+ * "What is new" popup, once per VERSION (B4, David 2026-08-04).+ *+ * Deliberately NOT hung off `cloudTeasersEnabled`. That flag means "once per+ * user, never again, not even after an update" (David 2026-07-19). This is the+ * opposite by design: once per version, every version. Two layers, two flags.+ */+interface ReleaseNotesState {+ /** The version whose notes this user has already seen. */+ lastNotesVersion: string | null+ markNotesSeen: (version: string) => void+}++export const useReleaseNotesStore = create<ReleaseNotesState>()(+ persist(+ (set) => ({+ lastNotesVersion: null,+ markNotesSeen: (version) => set({ lastNotesVersion: version }),+ }),+ { name: 'lu_release_notes' },+ ),+)++/**+ * Whether to show the notes now. Pure so the rule is provable in a unit test+ * rather than only through a live click, the same reason+ * shouldShowRetentionNotice is a function and not a JSX condition.+ *+ * `lastNotesVersion === null` is genuinely ambiguous: it is what a fresh+ * install looks like AND what an upgrade from any build before this feature+ * existed looks like, because the store did not exist there either. That is why+ * onboarding is the second signal and why the stamp happens at the END of+ * onboarding rather than at startup:+ *+ * fresh install -> onboarding runs -> finish() stamps the current version+ * -> null never survives to be read as "upgraded"+ * upgrade to 2.6.3 -> onboarding does not run -> nothing stamps+ * -> null means "has not seen 2.6.3 notes" -> show+ *+ * The NSIS-recovery path in AppShell that flips onboardingDone back on for a+ * user whose settings were reset deliberately does NOT stamp: that user is an+ * upgrader and has notes coming.+ */+export function shouldShowReleaseNotes(+ currentVersion: string,+ lastNotesVersion: string | null,+ onboardingDone: boolean,+): boolean {+ // Onboarding owns the whole screen; the app tree this modal lives in is not+ // even mounted yet. Stacking the two would put a sheet over a wizard.+ if (!onboardingDone) return false+ // A version nobody wrote notes for stays quiet rather than showing a headline+ // with nothing under it.+ if (!releaseNoteFor(currentVersion)) return false+ return lastNotesVersion !== currentVersion+}