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
test(e2e): re-pin the cloud specs to 2.6.0 behavior; drop the dead first-flip onboarding
purple40d1466683e6
diff --git a/e2e/cloud-create.spec.ts b/e2e/cloud-create.spec.tsindex 3d774133..0139ddeb 100644--- a/e2e/cloud-create.spec.ts+++ b/e2e/cloud-create.spec.ts@@ -56,7 +56,8 @@ test('ops start EMPTY and adopt a gallery image only on explicit pick', async ({// Switching to Edit must NOT auto-adopt the gallery image (David 2026-07-10):// the stage shows the empty input slot with the explicit gallery pick strip.- await page.getByRole('radio', { name: /Edit Image/i }).click()+ // (2.6.0 label: "Edit / Image to Image".)+ await page.getByRole('radio', { name: /Edit \/ Image to Image/i }).click()await expect(page.getByText(/Drop an image to edit/i)).toBeVisible({ timeout: 15_000 })await expect(page.getByText(/or pick from your gallery/i)).toBeVisible()@@ -65,7 +66,7 @@ test('ops start EMPTY and adopt a gallery image only on explicit pick', async ({await expect(page.getByRole('button', { name: /Paint mask/i })).toBeVisible({ timeout: 15_000 })})-test('local mode offers only the local lane (no cloud-only ops)', async ({ page }) => {+test('local mode: local lanes usable, cloud-only ops shown as locked teasers', async ({ page }) => {await page.addInitScript(tauriMockInit, {assistantReply: DEFAULT_ASSISTANT_REPLY,modelName: DEFAULT_MODEL_NAME,@@ -76,15 +77,25 @@ test('local mode offers only the local lane (no cloud-only ops)', async ({ pageawait expect(cloudSwitch(page)).toBeVisible({ timeout: 20_000 })await page.getByRole('button', { name: /^Create$/ }).click()- await expect(page.getByRole('radio', { name: /^Image$/i })).toBeVisible({ timeout: 15_000 })- await expect(page.getByRole('radio', { name: /^Video$/i })).toBeVisible()- // David 2026-07-10: edit/animate/upscale/eraser have no local models — they- // exist only on the cloud backend. removebg keeps its local RMBG lane.- await expect(page.getByRole('radio', { name: /Remove Background/i })).toBeVisible()- await expect(page.getByRole('radio', { name: /Edit Image/i })).toHaveCount(0)- await expect(page.getByRole('radio', { name: /Animate Image/i })).toHaveCount(0)- await expect(page.getByRole('radio', { name: /Upscale/i })).toHaveCount(0)- await expect(page.getByRole('radio', { name: /Erase Object/i })).toHaveCount(0)+ // Local-capable lanes carry their plain label. Since 2.5.8/2.5.9 that+ // includes edit, animate (restored 2026-07-17) and the four specialized+ // categories with hasLocalLane — NOT just image/video/removebg.+ await expect(page.getByRole('radio', { name: 'Image', exact: true })).toBeVisible({ timeout: 15_000 })+ await expect(page.getByRole('radio', { name: 'Video', exact: true })).toBeVisible()+ await expect(page.getByRole('radio', { name: 'Remove Background', exact: true })).toBeVisible()+ await expect(page.getByRole('radio', { name: 'Edit / Image to Image', exact: true })).toBeVisible()+ await expect(page.getByRole('radio', { name: 'Animate Image', exact: true })).toBeVisible()+ await expect(page.getByRole('radio', { name: 'Music', exact: true })).toBeVisible()++ // cloudOnly WITHOUT a local lane (upscale / eraser / character training)+ // renders locked: aria-label gains ", runs on LU Cloud" and a click opens+ // the teaser instead of switching the lane.+ await expect(page.getByRole('radio', { name: 'Upscale, runs on LU Cloud' })).toBeVisible()+ await expect(page.getByRole('radio', { name: 'Erase Object, runs on LU Cloud' })).toBeVisible()+ await expect(page.getByRole('radio', { name: 'Character Studio, runs on LU Cloud' })).toBeVisible()++ await page.getByRole('radio', { name: 'Upscale, runs on LU Cloud' }).click()+ await expect(page.getByRole('radio', { name: 'Image', exact: true })).toBeChecked()})test('media_live=false: generate shows the honest coming-soon message', async ({ page }) => {diff --git a/e2e/cloud-gate.spec.ts b/e2e/cloud-gate.spec.tsindex b15d1b30..202deb51 100644--- a/e2e/cloud-gate.spec.ts+++ b/e2e/cloud-gate.spec.ts@@ -5,11 +5,12 @@ import { routeCloud, seedOnboardingDone, signInViaGate, cloudSwitch, type CloudS/*** 2.5.7 cloud gate — the wall in front of Cloud mode (David's 4-options flow).*- * (a) signed in without a plan → the three plan buttons open lu-labs.ai/pricing- * in the SYSTEM browser (asserted via the mocked shell-open recorder),- * the switch stays off;- * (b) licensed but behind the Max-only launch gate (access:false) → the- * closed-beta wall, switch stays off;+ * (a) signed in without a plan → the three plan buttons (name + monthly EUR+ * price) open lu-labs.ai/pricing in the SYSTEM browser (asserted via the+ * mocked shell-open recorder), the switch stays off;+ * (b) licensed but not yet enabled server-side (access:false) → the+ * "server hasn't switched Cloud on" wall with Check again, switch stays+ * off (the 2.5.7 closed-beta wording is gone — launch is open);* (c) "Stay on Local" closes the gate with the switch off.*/@@ -30,24 +31,27 @@ test('signed in without a plan: plan buttons → browser, switch stays off', asyawait expect(page.getByText(/no active plan/i)).toBeVisible({ timeout: 20_000 })- // David's 4 options: three plans + back to Local.- await expect(page.getByRole('button', { name: 'Hosted lu-labs.ai' })).toBeVisible()- await expect(page.getByRole('button', { name: 'Pro lu-labs.ai' })).toBeVisible()+ // David's 4 options: three plans (with the monthly price up front) + back+ // to Local. `€` in the pattern keeps "Max" from matching the window's+ // Maximize button.+ await expect(page.getByRole('button', { name: /^Hosted €19/ })).toBeVisible()+ await expect(page.getByRole('button', { name: /^Pro €49/ })).toBeVisible()await expect(page.getByRole('button', { name: /Stay on Local/i })).toBeVisible()- await page.getByRole('button', { name: 'Max lu-labs.ai' }).click()+ await page.getByRole('button', { name: /^Max €99/ }).click()const opened = await page.evaluate(() => (window as unknown as { __E2E_OPENED_URLS__?: string[] }).__E2E_OPENED_URLS__ ?? [])- expect(opened.some((u) => u.includes('lu-labs.ai/pricing'))).toBe(true)+ expect(opened.some((u) => u.includes('/pricing#max'))).toBe(true)// Gate holds: the switch is still off.await expect(cloudSwitch(page)).not.toBeChecked()})-test('licensed but beta-gated (access:false): closed-beta wall, switch stays off', async ({ page }) => {+test('licensed but not server-enabled (access:false): wall with Check again, switch stays off', async ({ page }) => {await boot(page, { license: 'active', tier: 'hosted-pro', access: false })await signInViaGate(page)- await expect(page.getByText(/closed beta/i)).toBeVisible({ timeout: 20_000 })+ await expect(page.getByText(/hasn't switched Cloud on/i)).toBeVisible({ timeout: 20_000 })+ await expect(page.getByRole('button', { name: /Check again/i })).toBeVisible()await expect(cloudSwitch(page)).not.toBeChecked()})diff --git a/e2e/cloud-onboarding.spec.ts b/e2e/cloud-onboarding.spec.tsindex fcd472c8..68acf87f 100644--- a/e2e/cloud-onboarding.spec.ts+++ b/e2e/cloud-onboarding.spec.ts@@ -9,16 +9,16 @@ import { routeCloud, seedOnboardingDone, signInViaGate, cloudSwitch } from './su* (email+password against the mocked Supabase), /api/me grants access, the* modal closes itself, and the chat picker surfaces ONLY the hosted catalog* while the local-hardware tabs disappear. Flipping back to Local restores- * today's app. The very FIRST successful flip runs the one-time cloud- * onboarding (own spec below).+ * today's app. (The 2.5.7 first-flip onboarding modal is gone — since #91 the+ * one-time onboarding runs in the web checkout after subscribing.)*/-async function boot(page: Page, opts?: { cloudOnboardingSeen?: boolean }) {+async function boot(page: Page) {await page.addInitScript(tauriMockInit, {assistantReply: DEFAULT_ASSISTANT_REPLY,modelName: DEFAULT_MODEL_NAME,})- await seedOnboardingDone(page, opts)+ await seedOnboardingDone(page)await routeCloud(page, { license: 'active', tier: 'hosted-max', access: true })await page.goto('/')await expect(cloudSwitch(page)).toBeVisible({ timeout: 20_000 })@@ -50,22 +50,3 @@ test('Max account: switch → login → cloud mode with the hosted catalog', asyawait expect(page.getByRole('button', { name: /^Models$/ })).toBeVisible()})-test('first flip runs the one-time cloud onboarding before switching', async ({ page }) => {- await boot(page, { cloudOnboardingSeen: false })-- await signInViaGate(page)-- // Instead of flipping silently, the one-time onboarding appears.- await expect(page.getByText(/Welcome to LU Cloud/i)).toBeVisible({ timeout: 20_000 })- await expect(cloudSwitch(page)).not.toBeChecked()-- await page.getByRole('button', { name: /Start Cloud mode/i }).click()- await expect(cloudSwitch(page)).toBeChecked()-- // Seen persists: flipping off and on again is silent now.- await cloudSwitch(page).click()- await expect(cloudSwitch(page)).not.toBeChecked()- await cloudSwitch(page).click()- await expect(cloudSwitch(page)).toBeChecked()- await expect(page.getByText(/Welcome to LU Cloud/i)).toBeHidden()-})diff --git a/e2e/support/cloud-mock.ts b/e2e/support/cloud-mock.tsindex 1e3e26c5..a60117f2 100644--- a/e2e/support/cloud-mock.ts+++ b/e2e/support/cloud-mock.ts@@ -189,17 +189,14 @@ export async function routeCloud(page: Page, scenario: CloudScenario): Promise<v* Pre-seed the persisted settings so the app boots straight into chat (no* onboarding walk) in LOCAL mode. The settingsStore merge() backfills every* missing field from defaults, so the minimal shape is enough.- * cloudOnboardingSeen defaults to true here so the specs exercising the- * silent flip stay silent — the first-flip onboarding has its own spec.*/-export async function seedOnboardingDone(page: Page, opts?: { cloudOnboardingSeen?: boolean }): Promise<void> {- const cloudOnboardingSeen = opts?.cloudOnboardingSeen !== false- await page.addInitScript((seen) => {+export async function seedOnboardingDone(page: Page): Promise<void> {+ await page.addInitScript(() => {window.localStorage.setItem('chat-settings',- JSON.stringify({ state: { settings: { onboardingDone: true, appMode: 'local', cloudOnboardingSeen: seen }, _version: 10 }, version: 10 }),+ JSON.stringify({ state: { settings: { onboardingDone: true, appMode: 'local' }, _version: 10 }, version: 10 }),)- }, cloudOnboardingSeen)+ })}/** The purple Cloud light-switch in the header (right cluster). */diff --git a/src/lib/constants.ts b/src/lib/constants.tsindex 11d062e1..f1c45448 100644--- a/src/lib/constants.ts+++ b/src/lib/constants.ts@@ -16,7 +16,6 @@ export const DEFAULT_SETTINGS: Settings = {onboardingDone: false,// Global Local/Cloud switch (2.5.7) — local is and stays the default.appMode: 'local',- cloudOnboardingSeen: false,// Cloud teasers in Local mode (2.5.8) — on by default, one-click off.cloudTeasersEnabled: true,personasEnabled: true,diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex e6a77918..b71cb8a7 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -33,8 +33,9 @@ import { DEFAULT_SETTINGS, BUILT_IN_PERSONAS } from '../lib/constants'// v12 (2.5.7): added settings.comfyGpuMode ('auto'|'cpu'|'gpu', default// 'auto') for the AMD ComfyUI GPU path (rhodium92). Additive — the merge// fills the default while preserving every existing value; NVIDIA unaffected.-// v13 (2.5.7): added settings.cloudOnboardingSeen (one-time Cloud onboarding-// on the first successful switch flip, default false). Additive merge.+// v13 (2.5.7): added settings.cloudOnboardingSeen — REMOVED in 2.6.0: the+// one-time onboarding moved into the web checkout (#91); stale persisted+// values are ignored by the merge.// v14 (2.5.8): added settings.cloudTeasersEnabled (Cloud discovery in Local// mode: locked Create tabs + hosted-model picker rows, default true). Additive.// v15 (2.5.9): added settings.codexCloudConfirmShell (default true). The clouddiff --git a/src/stores/uiStore.ts b/src/stores/uiStore.tsindex 4bdde099..12703cf1 100644--- a/src/stores/uiStore.ts+++ b/src/stores/uiStore.ts@@ -20,9 +20,6 @@ interface UIState {/** CloudGateModal (login → plan → beta gate) — opened by the header's* Cloud switch when the cloud side isn't usable yet. */cloudGateOpen: boolean- /** One-time Cloud onboarding — opened on the first successful flip to- * Cloud (subscription present, cloudOnboardingSeen still false). */- cloudOnboardingOpen: boolean/** CloudTeaserModal — null = closed. */cloudTeaser: CloudTeaserTarget | null/** CloudExampleModal — the example video popup a teaser sheet's "See plans"@@ -33,7 +30,6 @@ interface UIState {toggleSidebar: () => voidsetSidebarOpen: (open: boolean) => voidsetCloudGateOpen: (open: boolean) => void- setCloudOnboardingOpen: (open: boolean) => voidsetCloudTeaser: (target: CloudTeaserTarget | null) => voidsetCloudExampleVideo: (target: Extract<CloudTeaserTarget, { surface: 'intent' }> | null) => void}@@ -42,7 +38,6 @@ export const useUIStore = create<UIState>()((set) => ({currentView: 'chat',sidebarOpen: true,cloudGateOpen: false,- cloudOnboardingOpen: false,cloudTeaser: null,cloudExampleVideo: null,@@ -53,7 +48,6 @@ export const useUIStore = create<UIState>()((set) => ({toggleSidebar: () => set((state) => ({ sidebarOpen: !state.sidebarOpen })),setSidebarOpen: (open) => set({ sidebarOpen: open }),setCloudGateOpen: (open) => set({ cloudGateOpen: open }),- setCloudOnboardingOpen: (open) => set({ cloudOnboardingOpen: open }),setCloudTeaser: (target) => set({ cloudTeaser: target }),setCloudExampleVideo: (target) => set({ cloudExampleVideo: target }),}))diff --git a/src/types/settings.ts b/src/types/settings.tsindex c6baf5c2..8270d2d4 100644--- a/src/types/settings.ts+++ b/src/types/settings.ts@@ -46,7 +46,6 @@ export interface Settings {/** One-time Cloud onboarding (David 2026-07-10): the FIRST successful flip* to Cloud shows a short what-changes walkthrough; after that the switch* flips silently. Persisted so it never re-triggers. */- cloudOnboardingSeen: boolean/** Cloud discovery inside Local mode (2.5.8): locked Upscale/Erase tabs in* Create, hosted-model rows in the chat + Create pickers, each opening a* small "runs on LU Cloud" sheet. Teasers never block a local flow and