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(cloud): closing the Cloud sheet no longer turns the Cloud features off
purple248b4d1e89d5
diff --git a/src/components/cloud/CloudTeaserModal.tsx b/src/components/cloud/CloudTeaserModal.tsxindex 926eb877..cc02088f 100644--- a/src/components/cloud/CloudTeaserModal.tsx+++ b/src/components/cloud/CloudTeaserModal.tsx@@ -2,8 +2,9 @@// tools + hosted models as tappable teasers, and THIS is what a tap opens — a// small sheet with an animated "show me" demo of the tool, one line of copy,// and the path into LU Cloud. Never blocks a local flow (it only opens from-// explicitly cloud-tagged surfaces), never shows in cloud mode, and the-// footer link turns the whole discovery layer off (Settings can re-enable).+// explicitly cloud-tagged surfaces), never shows in cloud mode. Closing it is+// only closing; the footer link is the one thing here that turns the whole+// discovery layer off (Settings can re-enable).import { useEffect, useState } from 'react'import { AnimatePresence, motion } from 'framer-motion'@@ -60,7 +61,6 @@ export function CloudTeaserModal() {const setCloudTeaser = useUIStore((s) => s.setCloudTeaser)const setIntent = useCreateStore((s) => s.setIntent)const { updateSettings } = useSettingsStore()- const teasersEnabled = useSettingsStore((s) => s.settings.cloudTeasersEnabled)// The card's own number (David, 2026-09-07): "Your GPU has 6 GB" says why// the tool is greyed out better than any adjective. Read once per opening,// from the same detect_gpus the hardware settings use; null when nothing@@ -75,14 +75,15 @@ export function CloudTeaserModal() {return () => { alive = false }}, [target])- // One-time onboarding (David 2026-07-19): the Cloud discovery layer is meant- // to appear ONCE per user, never again — not after updates either. Any- // dismissal of this sheet (button, backdrop, X, Try local / Get LU Cloud) retires- // the whole discovery layer permanently; the persisted flag survives updates,- // and Settings can re-enable it. Cloud-only *features* (upscale / eraser) stay- // accessible regardless — their sheet renders on tap, not on this flag.- const close = () => {- if (teasersEnabled) updateSettings({ cloudTeasersEnabled: false })+ // Closing the sheet changes nothing (the box, 03.10.2026). From 2026-07-19+ // until 3.0.5 every way out of it (Escape, a click beside it, X, "Not now",+ // both buttons) also switched "Show Cloud features in Local mode" off, so+ // one Escape silently took the LU Cloud group out of the model pickers. The+ // setting now has exactly one control on this sheet, the link at the bottom+ // that says what it does, and the switch in Settings, General.+ const close = () => setCloudTeaser(null)+ const hideCloudFeatures = () => {+ updateSettings({ cloudTeasersEnabled: false })setCloudTeaser(null)}// 2.5.8: the lanes that ALSO run locally get a "Try local" path — the sheet@@ -126,6 +127,9 @@ export function CloudTeaserModal() {exit={{ opacity: 0, y: 10, scale: 0.97 }}transition={{ duration: 0.15, ease: 'easeOut' }}onClick={(e) => e.stopPropagation()}+ role="dialog"+ aria-modal="true"+ aria-label={copy.title}className="m-auto shrink-0 w-[360px] max-w-[92vw] rounded-2xl bg-[#232323] border border-white/[0.08] shadow-2xl shadow-black/50 overflow-hidden">{/* Demo stage */}@@ -188,6 +192,13 @@ export function CloudTeaserModal() {Not now</button></div>+ <button+ onClick={hideCloudFeatures}+ title="Turns off Show Cloud features in Local mode. Settings, General turns it back on."+ className="w-full text-center t-micro text-gray-500 hover:text-gray-300 transition-colors pt-0.5"+ >+ Don't show Cloud features in Local mode+ </button></div></motion.div></motion.div>diff --git a/src/components/cloud/__tests__/cloud-teaser-close-keeps-setting.test.tsx b/src/components/cloud/__tests__/cloud-teaser-close-keeps-setting.test.tsxnew file mode 100644index 00000000..0184738a--- /dev/null+++ b/src/components/cloud/__tests__/cloud-teaser-close-keeps-setting.test.tsx@@ -0,0 +1,79 @@+// @vitest-environment jsdom+/**+ * The box, 03.10.2026: closing the Cloud sheet ("Not now", Escape, a click+ * beside it) switched "Show Cloud features in Local mode" off, and the LU+ * Cloud group was gone from the model picker without a word. Closing is only+ * closing. The one control on the sheet that turns the setting off says so.+ */+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'+import { render, cleanup, screen, fireEvent, act } from '@testing-library/react'++const openExternal = vi.hoisted(() => vi.fn())+vi.mock('../../../api/backend', async () => ({+ ...(await vi.importActual<typeof import('../../../api/backend')>('../../../api/backend')),+ openExternal,+}))+vi.mock('../../../lib/hardware', () => ({ getMaxVramGb: () => Promise.resolve(12) }))++import { CloudTeaserModal } from '../CloudTeaserModal'+import { useUIStore } from '../../../stores/uiStore'+import { useSettingsStore } from '../../../stores/settingsStore'++const enabled = () => useSettingsStore.getState().settings.cloudTeasersEnabled+const open = () => useUIStore.getState().cloudTeaser !== null++beforeEach(async () => {+ openExternal.mockReset()+ useSettingsStore.getState().updateSettings({ cloudTeasersEnabled: true })+ useUIStore.getState().setCloudTeaser({ surface: 'intent', intent: 'upscale' })+ await act(async () => { render(<CloudTeaserModal />) })+})+afterEach(() => cleanup())++describe('closing the Cloud sheet', () => {+ it('"Not now" closes it and leaves the setting on', () => {+ fireEvent.click(screen.getByText('Not now'))+ expect(open()).toBe(false)+ expect(enabled()).toBe(true)+ })++ it('Escape closes it and leaves the setting on', () => {+ fireEvent.keyDown(document, { key: 'Escape' })+ expect(open()).toBe(false)+ expect(enabled()).toBe(true)+ })++ it('a click beside it closes it and leaves the setting on', () => {+ fireEvent.click(screen.getByRole('dialog').parentElement as HTMLElement)+ expect(open()).toBe(false)+ expect(enabled()).toBe(true)+ })++ it('the X closes it and leaves the setting on', () => {+ fireEvent.click(screen.getByLabelText('Close'))+ expect(open()).toBe(false)+ expect(enabled()).toBe(true)+ })++ it('"Get LU Cloud" opens the checkout and leaves the setting on', () => {+ fireEvent.click(screen.getByText('Get LU Cloud'))+ expect(openExternal).toHaveBeenCalledTimes(1)+ expect(open()).toBe(false)+ expect(enabled()).toBe(true)+ })++ it('a click inside the sheet does not close it', () => {+ fireEvent.click(screen.getByRole('dialog'))+ expect(open()).toBe(true)+ })+})++describe('the link that turns the Cloud features off', () => {+ it('says what it does, turns the setting off and closes the sheet', () => {+ const link = screen.getByText("Don't show Cloud features in Local mode")+ expect(link.getAttribute('title')).toContain('Settings, General')+ fireEvent.click(link)+ expect(enabled()).toBe(false)+ expect(open()).toBe(false)+ })+})diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsxindex e51980c0..474d4d98 100644--- a/src/components/settings/SettingsPage.tsx+++ b/src/components/settings/SettingsPage.tsx@@ -1846,8 +1846,9 @@ export function SettingsPage() {<Section title="LU Cloud Account" defaultOpen><AccountPanel />{/* Local-mode discovery layer (2.5.8): the locked Create tabs +- hosted-model rows. The teaser sheet's "Hide Cloud features"- link flips this off; this is the way back on. */}+ hosted-model rows. The teaser sheet's "Don't show Cloud+ features in Local mode" link flips this off, and nothing else+ on that sheet does; this is the way back on. */}<div className="flex items-center justify-between pt-1"><div className="min-w-0 pr-3"><span className="text-[0.7rem] text-gray-700 dark:text-gray-400">Show Cloud features in Local mode</span>diff --git a/src/stores/releaseNotesStore.ts b/src/stores/releaseNotesStore.tsindex e9478212..3d7e4b1d 100644--- a/src/stores/releaseNotesStore.ts+++ b/src/stores/releaseNotesStore.ts@@ -6,8 +6,9 @@ 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+ * Deliberately NOT hung off `cloudTeasersEnabled`. That flag is the user's own+ * switch for the Cloud features in Local mode, and once off it stays off, not+ * even an update turns it back on (David 2026-07-19). This is the* opposite by design: once per version, every version. Two layers, two flags.*/interface ReleaseNotesState {