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.

cloud: one boot popup, open beta, discovery layer shows once

purple44db8cfa5606
diff --git a/src/components/cloud/CloudGateModal.tsx b/src/components/cloud/CloudGateModal.tsx
index f885d13c..a75b5aed 100644
--- a/src/components/cloud/CloudGateModal.tsx
+++ b/src/components/cloud/CloudGateModal.tsx
@@ -109,7 +109,7 @@ export function CloudGateModal() {
// gate opens, a fresh login, or a re-check after subscribing — flip the
// global switch and get out of the way, via the one-time cloud onboarding on
// the first successful flip. `open` MUST be a dependency (not the old wasOpen
- // ref): the one-time intro popup's "Check out the Cloud" can open this gate
+ // ref): the one-time intro popup's "Sign in or create account" can open this gate
// for a signed-in, fully provisioned user who's still in local mode. In that
// case `available` was already true before the gate opened, so an effect
// keyed only on `available` never re-runs — and the gate hangs forever on the
@@ -204,9 +204,9 @@ export function CloudGateModal() {
<CloudHero />
<div className="space-y-3 max-w-xs mx-auto">
<p className="text-[0.72rem] text-center text-gray-600 dark:text-gray-400">
- LU Cloud is in a closed beta right now (Max plan only). Your plan is
- active, but the beta hasn't opened for it yet. You'll get in the
- moment it does, nothing to reinstall.
+ Your plan is active, but the server hasn't switched Cloud on for
+ this account yet. Hit Check again in a moment, nothing to
+ reinstall.
</p>
<StayLocalButton onLocal={stayLocal} />
<button className={ghostBtn} onClick={() => void refresh()}>
diff --git a/src/components/cloud/CloudIntroPopup.tsx b/src/components/cloud/CloudIntroPopup.tsx
index 80ae488e..1d803b65 100644
--- a/src/components/cloud/CloudIntroPopup.tsx
+++ b/src/components/cloud/CloudIntroPopup.tsx
@@ -1,14 +1,16 @@
-// One-time "LU Cloud is here" hello (David 2026-07-13, shipped with 2.5.7).
-// Every install sees this exactly once on its first launch after onboarding,
-// auto-updaters and fresh installs alike, then never again: any way of closing
-// it writes the localStorage flag, and that flag rides the store-backup list so
-// even an NSIS localStorage wipe can't resurrect it.
+// THE one Cloud popup at app start (David 2026-07-19, 2.5.8): every install
+// sees this exactly once on its first launch after onboarding, then never
+// again — any way of closing it writes the localStorage flag, and that flag
+// rides the store-backup list so even an NSIS localStorage wipe can't
+// resurrect it. Two choices only: "Sign in or create account" opens the
+// normal in-app gate (login / plans; payment leaves for the browser from
+// there), and an equally visible "I don't want an account" which ALSO retires
+// the whole Cloud discovery layer (picker teaser rows, tap-sheets) via
+// cloudTeasersEnabled — after that tap, nothing Cloud pitches you again.
+// Settings can re-enable the discovery layer later.
//
-// It reads the founding-wave seat count LIVE from /api/launch/seats each time it
-// opens (the server sends no-store) — never a cached or guessed number. Copy
-// splits the spec's line into a bold title + gray detail (same words, no
-// em-dash). "Check out the Cloud" opens the normal in-app gate (Get LU Cloud /
-// Stay on Local); payment leaves for the browser from the plan buttons there.
+// It reads the founding-wave seat count LIVE from /api/launch/seats each time
+// it opens (the server sends no-store) — never a cached or guessed number.
import { useEffect, useState } from 'react'
import { Modal } from '../ui/Modal'
@@ -31,6 +33,7 @@ type SeatState =
export function CloudIntroPopup() {
const appMode = useSettingsStore((s) => s.settings.appMode)
+ const updateSettings = useSettingsStore((s) => s.updateSettings)
const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)
const [open, setOpen] = useState(false)
const [seatState, setSeatState] = useState<SeatState>({ phase: 'loading' })
@@ -73,13 +76,22 @@ export function CloudIntroPopup() {
setOpen(false)
}
- const checkOut = () => {
- // Open the normal in-app onboarding gate (Get LU Cloud / Stay on Local),
- // not the website directly — payment leaves for the browser from there.
+ const signIn = () => {
+ // Open the normal in-app onboarding gate (login / Get LU Cloud), not the
+ // website directly — payment leaves for the browser from there.
close()
setCloudGateOpen(true)
}
+ const decline = () => {
+ // "I don't want an account": beyond the once-ever close, retire the whole
+ // Cloud discovery layer so nothing pitches Cloud again (Settings can
+ // re-enable it). Cloud-only tools keep their tap-gate — that is feature
+ // access, not a pitch.
+ updateSettings({ cloudTeasersEnabled: false })
+ close()
+ }
+
// Loading shows the headline alone (no flash of wrong numbers); ready uses the
// live seats; error uses the numberless fallback.
const copy =
@@ -110,16 +122,16 @@ export function CloudIntroPopup() {
)}
<div className="w-full flex flex-col gap-1.5 pt-1">
<button
- onClick={checkOut}
+ onClick={signIn}
className="w-full px-3 py-2 rounded-md text-[0.7rem] font-medium text-white bg-[#7c3aed] hover:bg-[#6d31d6] transition-colors"
>
- Check out the Cloud
+ Sign in or create account
</button>
<button
- onClick={close}
- className="w-full px-3 py-1.5 rounded-md text-[0.65rem] text-gray-500 hover:text-gray-800 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-white/5 transition-colors"
+ onClick={decline}
+ className="w-full px-3 py-2 rounded-md text-[0.7rem] font-medium text-gray-700 dark:text-gray-300 border border-gray-300 dark:border-white/15 hover:bg-gray-100 dark:hover:bg-white/5 transition-colors"
>
- Dismiss
+ I don't want an account
</button>
</div>
</div>
diff --git a/src/components/cloud/CloudTeaserModal.tsx b/src/components/cloud/CloudTeaserModal.tsx
index 269e7107..c2183a1e 100644
--- a/src/components/cloud/CloudTeaserModal.tsx
+++ b/src/components/cloud/CloudTeaserModal.tsx
@@ -55,8 +55,18 @@ export function CloudTeaserModal() {
const setCloudExampleVideo = useUIStore((s) => s.setCloudExampleVideo)
const setIntent = useCreateStore((s) => s.setIntent)
const { updateSettings } = useSettingsStore()
+ const teasersEnabled = useSettingsStore((s) => s.settings.cloudTeasersEnabled)
- const close = () => setCloudTeaser(null)
+ // 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 / Try 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 })
+ setCloudTeaser(null)
+ }
// 2.5.8: the lanes that ALSO run locally get a "Try local" path — the sheet
// stops being a pure upsell and becomes the fork between the two lanes.
const localLane =
@@ -118,8 +128,8 @@ export function CloudTeaserModal() {
<p className="text-[0.7rem] leading-relaxed text-gray-400">{copy.line}</p>
<p className="text-[0.62rem] leading-relaxed text-gray-500">
{localLane
- ? 'Runs on your PC with downloaded models, or on LU Cloud where datacenter GPUs do the heavy lifting. Cloud is part of the Max plan (closed beta).'
- : 'Runs on LU Cloud. Your PC stays cool while datacenter GPUs do the heavy lifting. Part of the Max plan (closed beta).'}
+ ? 'Runs on your PC with downloaded models, or on LU Cloud where datacenter GPUs do the heavy lifting.'
+ : 'Runs on LU Cloud. Your PC stays cool while datacenter GPUs do the heavy lifting.'}
</p>
<div className="flex items-center gap-2 pt-1">
<button
@@ -151,12 +161,6 @@ export function CloudTeaserModal() {
Not now
</button>
</div>
- <button
- onClick={() => { updateSettings({ cloudTeasersEnabled: false }); close() }}
- className="w-full text-center text-[0.58rem] text-gray-600 hover:text-gray-400 transition-colors pt-0.5"
- >
- Hide Cloud features in Local mode
- </button>
</div>
</motion.div>
</motion.div>
diff --git a/src/hooks/useCloudAuth.ts b/src/hooks/useCloudAuth.ts
index 6b884084..a11a6251 100644
--- a/src/hooks/useCloudAuth.ts
+++ b/src/hooks/useCloudAuth.ts
@@ -51,7 +51,8 @@ async function probeAccount(): Promise<void> {
return
}
const licenseActive = me.license?.status === 'active'
- // Launch gate (Max-only closed beta): absent on older servers = allowed.
+ // Server-driven access gate (beta is fully open — servers send true for
+ // every licensed account): absent on older servers = allowed.
const access = me.license?.access !== false
const tier = me.license?.tier ?? null
let quota: CloudQuota | null = null
diff --git a/src/stores/__tests__/cloudAuthStore.test.ts b/src/stores/__tests__/cloudAuthStore.test.ts
index 2d2c1af3..8d6a8e13 100644
--- a/src/stores/__tests__/cloudAuthStore.test.ts
+++ b/src/stores/__tests__/cloudAuthStore.test.ts
@@ -60,7 +60,7 @@ describe('deriveCloudAvailable', () => {
expect(deriveCloudAvailable({ user: { id: 'u' }, ...account({ quota: null }) })).toBe(false)
// self-host tier: licensed but 0 media credits
expect(deriveCloudAvailable({ user: { id: 'u' }, ...account({ quota: quota(0) }) })).toBe(false)
- // Max-only closed beta: licensed non-max account is gated out
+ // Server-driven access gate (legacy closed-beta wall): access false gates out
expect(deriveCloudAvailable({ user: { id: 'u' }, ...account({ access: false, quota: quota(800) }) })).toBe(false)
expect(deriveCloudAvailable({ user: { id: 'u' }, ...account({ quota: quota(800) }) })).toBe(true)
})
diff --git a/src/stores/cloudAuthStore.ts b/src/stores/cloudAuthStore.ts
index 335b059c..13d48cb4 100644
--- a/src/stores/cloudAuthStore.ts
+++ b/src/stores/cloudAuthStore.ts
@@ -15,8 +15,9 @@ export interface CloudAccount {
licenseActive: boolean
/** Canonical tier slug from /api/me, null while signed out/unknown. */
tier: string | null
- /** Launch gate (Max-only closed beta). Licensed-but-gated users get the
- * closed-beta wall instead of the cloud. */
+ /** Server-driven access gate. Used by the 2.5.7 Max-only closed beta;
+ * the beta is fully open since, so servers now send true for every
+ * licensed account — kept as a kill-switch the server owns. */
access: boolean
quota: CloudQuota | null
}