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(mac): Cloud-only launch build — dark monogram icon, native traffic lights, hard Cloud wall

purple7b7486992979
diff --git a/src-tauri/icons/128x128.png b/src-tauri/icons/128x128.png
index a8654c27..b9e094ee 100644
Binary files a/src-tauri/icons/128x128.png and b/src-tauri/icons/128x128.png differ
diff --git a/src-tauri/icons/[email protected] b/src-tauri/icons/[email protected]
index 2dcb8bcd..7093a224 100644
Binary files a/src-tauri/icons/[email protected] and b/src-tauri/icons/[email protected] differ
diff --git a/src-tauri/icons/32x32.png b/src-tauri/icons/32x32.png
index b7a7eeff..d62dd292 100644
Binary files a/src-tauri/icons/32x32.png and b/src-tauri/icons/32x32.png differ
diff --git a/src-tauri/icons/icon.icns b/src-tauri/icons/icon.icns
new file mode 100644
index 00000000..342ff596
Binary files /dev/null and b/src-tauri/icons/icon.icns differ
diff --git a/src-tauri/icons/icon.ico b/src-tauri/icons/icon.ico
index c1f0bf68..32e40b1a 100644
Binary files a/src-tauri/icons/icon.ico and b/src-tauri/icons/icon.ico differ
diff --git a/src-tauri/icons/icon.png b/src-tauri/icons/icon.png
index 850522b3..f9a85e80 100644
Binary files a/src-tauri/icons/icon.png and b/src-tauri/icons/icon.png differ
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index ce7f5731..c743d240 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -57,6 +57,7 @@
"icons/32x32.png",
"icons/128x128.png",
+ "icons/icon.icns",
"icons/icon.ico",
"icons/icon.png"
],
diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json
new file mode 100644
index 00000000..674ec882
--- /dev/null
+++ b/src-tauri/tauri.macos.conf.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json",
+ "app": {
+ "windows": [
+ {
+ "title": "LU",
+ "width": 1280,
+ "height": 800,
+ "resizable": true,
+ "fullscreen": false,
+ "visible": false,
+ "decorations": true,
+ "transparent": false,
+ "titleBarStyle": "Overlay",
+ "hiddenTitle": true
+ }
+ ]
+ }
+}
diff --git a/src/api/backend.ts b/src/api/backend.ts
index 78d0d159..bcf1f5c6 100644
--- a/src/api/backend.ts
+++ b/src/api/backend.ts
@@ -21,6 +21,29 @@ export function isTauri(): boolean {
return !!(w.__TAURI_INTERNALS__ || w.__TAURI__);
}
+/** True when the host OS is macOS. The frontend `dist` is shared across the
+ * mac and Windows Tauri builds, so platform-specific behaviour must be a
+ * RUNTIME check. WKWebView reports "MacIntel" / "Mac OS X" (even on Apple
+ * Silicon); WebView2 reports "Win32" / "Windows NT". */
+export function isMacOS(): boolean {
+ if (typeof navigator === "undefined") return false;
+ const plat = navigator.platform || "";
+ const ua = navigator.userAgent || "";
+ return /Mac|iPhone|iPad|iPod/.test(plat) || /Mac OS X|Macintosh/.test(ua);
+}
+
+/**
+ * Launch policy: the macOS desktop app ships Cloud-ONLY for now (David
+ * 2026-07-11) — it behaves like the web app (hosted models everywhere, no
+ * Local/Cloud switch, no local-hardware surfaces) until the fully-tested local
+ * version is unlocked in a later release. Windows/Linux keep the full
+ * local+cloud app, so this is gated to the packaged mac build only (isTauri so
+ * a mac browser dev session and the unit tests keep the normal switchable UI).
+ */
+export function isCloudOnly(): boolean {
+ return isTauri() && isMacOS();
+}
+
async function getInvoke() {
if (!_invoke) {
const { invoke } = await import("@tauri-apps/api/core");
diff --git a/src/components/cloud/CloudGateModal.tsx b/src/components/cloud/CloudGateModal.tsx
index 5006034f..a93631aa 100644
--- a/src/components/cloud/CloudGateModal.tsx
+++ b/src/components/cloud/CloudGateModal.tsx
@@ -18,7 +18,7 @@ import { useCloudAuthStore, deriveCloudAvailable } from '../../stores/cloudAuthS
import { useCloudAuth } from '../../hooks/useCloudAuth'
import { AccountPanel } from '../auth/AccountPanel'
import { CLOUD_BASE } from '../../api/cloud/config'
-import { openExternal } from '../../api/backend'
+import { openExternal, isCloudOnly } from '../../api/backend'
const PLANS = [
{ anchor: 'hosted', name: 'Hosted' },
@@ -89,10 +89,15 @@ export function CloudGateModal() {
const quota = useCloudAuthStore((s) => s.quota)
const available = deriveCloudAvailable({ user, licenseActive, access, quota })
- // Signed-out walkthrough position. Reset to the hero every time the gate
- // opens so a re-open never lands mid-flow.
- const [step, setStep] = useState<Step>('intro')
- useEffect(() => { if (open) setStep('intro') }, [open])
+ // macOS Cloud-only build: there is no Local to fall back to. Lead with
+ // sign-in, drop every "Stay on Local" escape, and don't let the gate be
+ // dismissed while the cloud axis is unusable (David 2026-07-11).
+ const cloudOnly = isCloudOnly()
+
+ // Signed-out walkthrough position. Reset every time the gate opens so a
+ // re-open never lands mid-flow — straight to sign-in on the Cloud-only build.
+ const [step, setStep] = useState<Step>(cloudOnly ? 'login' : 'intro')
+ useEffect(() => { if (open) setStep(cloudOnly ? 'login' : 'intro') }, [open, cloudOnly])
// The moment the account clears every gate (fresh login, re-check after
// subscribing), flip the global switch and get out of the way — via the
@@ -108,6 +113,7 @@ export function CloudGateModal() {
}, [available, cloudOnboardingSeen, setCloudOnboardingOpen, setOpen, updateSettings])
const stayLocal = () => {
+ if (cloudOnly) return
updateSettings({ appMode: 'local' })
setOpen(false)
}
@@ -128,7 +134,7 @@ export function CloudGateModal() {
const signedOut = status === 'signed-out' || !user
return (
- <Modal open={open} onClose={() => setOpen(false)} title="LU Cloud" hideHeader>
+ <Modal open={open} onClose={() => { if (!cloudOnly) setOpen(false) }} title="LU Cloud" hideHeader>
{signedOut ? (
step === 'intro' ? (
<div className="space-y-5 pt-2">
@@ -137,7 +143,7 @@ export function CloudGateModal() {
<button onClick={() => setStep('plans')} className={primaryBtn}>
Get LU Cloud <ArrowRight size={13} />
</button>
- <StayLocalButton onLocal={stayLocal} />
+ {!cloudOnly && <StayLocalButton onLocal={stayLocal} />}
</div>
</div>
) : step === 'plans' ? (
@@ -145,7 +151,7 @@ export function CloudGateModal() {
<CloudHero subtitle="Pick a plan on lu-labs.ai — payment stays in the browser." />
<div className="space-y-3 max-w-xs mx-auto">
<PlanGrid />
- <StayLocalButton onLocal={stayLocal} />
+ {!cloudOnly && <StayLocalButton onLocal={stayLocal} />}
<div className="pt-1 flex items-center gap-2">
<div className="flex-1 h-px bg-gray-200 dark:bg-white/10" />
<span className="text-[0.6rem] text-gray-400 dark:text-gray-600">or</span>
@@ -177,7 +183,7 @@ export function CloudGateModal() {
but this account has no active plan yet. LU Cloud is part of the paid plans.
</p>
<PlanGrid />
- <StayLocalButton onLocal={stayLocal} />
+ {!cloudOnly && <StayLocalButton onLocal={stayLocal} />}
<button className={ghostBtn} onClick={() => void refresh()}>
<RefreshCw size={12} /> I subscribed — re-check
</button>
@@ -192,7 +198,7 @@ export function CloudGateModal() {
active, but the beta hasn't opened for it yet — you'll get in the
moment it does, nothing to reinstall.
</p>
- <StayLocalButton onLocal={stayLocal} />
+ {!cloudOnly && <StayLocalButton onLocal={stayLocal} />}
<button className={ghostBtn} onClick={() => void refresh()}>
<RefreshCw size={12} /> Re-check
</button>
@@ -206,7 +212,7 @@ export function CloudGateModal() {
Your plan is active, but your usage couldn't be loaded just now, so
Cloud mode can't switch on yet. Check your connection and re-check.
</p>
- <StayLocalButton onLocal={stayLocal} />
+ {!cloudOnly && <StayLocalButton onLocal={stayLocal} />}
<button className={ghostBtn} onClick={() => void refresh()}>
<RefreshCw size={12} /> Re-check
</button>
@@ -224,7 +230,7 @@ export function CloudGateModal() {
<button className={primaryBtn} onClick={() => void openExternal(`${CLOUD_BASE}/account`)}>
<ExternalLink size={12} /> Open your account
</button>
- <StayLocalButton onLocal={stayLocal} />
+ {!cloudOnly && <StayLocalButton onLocal={stayLocal} />}
<button className={ghostBtn} onClick={() => void refresh()}>
<RefreshCw size={12} /> Re-check
</button>
diff --git a/src/components/layout/AppShell.tsx b/src/components/layout/AppShell.tsx
index dff53c5d..bd40ab18 100644
--- a/src/components/layout/AppShell.tsx
+++ b/src/components/layout/AppShell.tsx
@@ -21,7 +21,7 @@ import { useRemoteStore } from '../../stores/remoteStore'
import { useModelHealthStore } from '../../stores/modelHealthStore'
import { extractMemoriesFromPair } from '../../hooks/useMemory'
import { detectLocalBackends, type DetectedBackend } from '../../lib/backend-detector'
-import { backendCall, isTauri } from '../../api/backend'
+import { backendCall, isTauri, isCloudOnly } from '../../api/backend'
import { idbStorage } from '../../lib/idbStorage'
import type { AIModel } from '../../types/models'
import { useKeyboardShortcuts } from '../../hooks/useKeyboardShortcuts'
@@ -61,15 +61,31 @@ export function AppShell() {
// ── Global Local/Cloud mode (2.5.7) — appMode drives everything ──
const appMode = settings.appMode
const cloudAvailable = useCloudAuthStore(deriveCloudAvailable)
+ const cloudStatus = useCloudAuthStore((s) => s.status)
+ const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)
+
+ // macOS launch build is Cloud-ONLY (David 2026-07-11): the app behaves like
+ // the web app — hosted models everywhere, no Local/Cloud switch, no
+ // local-hardware surfaces. Pin appMode to 'cloud' permanently, and when the
+ // cloud axis isn't usable yet (signed out / unlicensed / gated) open the
+ // CloudGateModal so the user logs in. There is no Local to fall back to; the
+ // full local version returns in a later release.
+ const cloudOnly = isCloudOnly()
+ useEffect(() => {
+ if (!cloudOnly) return
+ if (appMode !== 'cloud') { updateSettings({ appMode: 'cloud' }); return }
+ if (cloudStatus !== 'probing' && !cloudAvailable) setCloudGateOpen(true)
+ }, [cloudOnly, appMode, cloudStatus, cloudAvailable, updateSettings, setCloudGateOpen])
// Create renders where the mode says: the global switch owns the axis the
- // Composer's per-surface toggle used to.
+ // Composer's per-surface toggle used to. On the Cloud-only build Create is
+ // always cloud (the gate covers the not-yet-signed-in state).
useEffect(() => {
- const target = appMode === 'cloud' && cloudAvailable ? 'cloud' : 'local'
+ const target = appMode === 'cloud' && (cloudAvailable || cloudOnly) ? 'cloud' : 'local'
if (useCreateStore.getState().backend !== target) {
useCreateStore.getState().setBackend(target)
}
- }, [appMode, cloudAvailable])
+ }, [appMode, cloudAvailable, cloudOnly])
// Never leave an out-of-mode model active: flipping the switch moves the
// chat selection onto the first model of the new mode (cloud ↔ local).
@@ -668,7 +684,8 @@ export function AppShell() {
// capabilities refresh). Populates useModelHealthStore → StaleModelsBanner
// surfaces the result as a top-of-app notice with one-click Refresh All.
useEffect(() => {
- if (!onboardingDone || !isTauri()) return
+ // Cloud-only build never touches local Ollama — skip the stale-manifest scan.
+ if (!onboardingDone || !isTauri() || isCloudOnly()) return
if (sessionStorage.getItem('lu-model-health-scan-done')) return
sessionStorage.setItem('lu-model-health-scan-done', '1')
@@ -694,7 +711,8 @@ export function AppShell() {
// Auto-detect local backends on startup (once per session)
useEffect(() => {
- if (!onboardingDone) return
+ // Cloud-only build has no local backends to detect (David 2026-07-11).
+ if (!onboardingDone || isCloudOnly()) return
if (sessionStorage.getItem('lu-backend-detection-done')) return
sessionStorage.setItem('lu-backend-detection-done', '1')
@@ -759,7 +777,10 @@ export function AppShell() {
// While restoring from backup, show nothing (prevents onboarding flash)
if (restoring) return null
- if (!onboardingDone) {
+ // The local first-run onboarding (backend picker, hardware setup) is
+ // meaningless on the Cloud-only build — the CloudGateModal drives sign-in
+ // instead (David 2026-07-11). Windows/Linux keep the local onboarding.
+ if (!onboardingDone && !cloudOnly) {
return <Onboarding />
}
diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx
index ee995611..a5fedeb9 100644
--- a/src/components/layout/Header.tsx
+++ b/src/components/layout/Header.tsx
@@ -9,6 +9,7 @@ import { useProviderStore } from '../../stores/providerStore'
import { UpdateBadge } from './UpdateBadge'
import { DownloadBadge } from './DownloadBadge'
import { CloudSwitch } from '../cloud/CloudSwitch'
+import { isCloudOnly } from '../../api/backend'
import { loadModel } from '../../api/ollama'
import { getProviderIdFromModel } from '../../api/providers'
import { ModelLoadError } from '../../lib/ollama-errors'
@@ -32,6 +33,9 @@ export function Header() {
const markHealthFresh = useModelHealthStore((s) => s.markFresh)
const [showMoreMenu, setShowMoreMenu] = useState(false)
const isCreateView = currentView === 'create'
+ // macOS launch build is Cloud-only: no Local/Cloud switch, no local model
+ // downloads badge (David 2026-07-11). Windows/Linux keep both.
+ const cloudOnly = isCloudOnly()
// App-level model bootstrap. This used to ride on the header ModelSelector,
// which sat here always-mounted; the picker has moved into the composer
@@ -255,9 +259,10 @@ export function Header() {
{/* Purple Cloud light-switch (David 2026-07-10): left of Downloads,
purple like the website. Gated: flipping ON without a usable
account opens the CloudGateModal; the first successful flip runs
- the one-time cloud onboarding. */}
- <CloudSwitch />
- <DownloadBadge />
+ the one-time cloud onboarding. Hidden on the macOS Cloud-only build
+ (no switch, no local model downloads — David 2026-07-11). */}
+ {!cloudOnly && <CloudSwitch />}
+ {!cloudOnly && <DownloadBadge />}
<button
onClick={toggleTheme}
diff --git a/src/components/layout/Titlebar.tsx b/src/components/layout/Titlebar.tsx
index 1bd393ca..d3abff58 100644
--- a/src/components/layout/Titlebar.tsx
+++ b/src/components/layout/Titlebar.tsx
@@ -1,5 +1,6 @@
import { useEffect, useState } from 'react'
import { Minus, Square, Copy, X } from 'lucide-react'
+import { isMacOS } from '../../api/backend'
const isTauri = typeof window !== 'undefined' && !!(window as any).__TAURI_INTERNALS__
@@ -44,6 +45,22 @@ export function Titlebar() {
const btnBase = 'inline-flex items-center justify-center w-[46px] h-8 transition-colors'
+ // macOS uses the OS-native traffic lights (close/minimize/zoom) rendered on
+ // the LEFT by titleBarStyle:"Overlay" (tauri.macos.conf.json). So on mac we
+ // draw NO custom window buttons — we just reserve space on the left for the
+ // native lights and move the LU logo to the RIGHT (David 2026-07-11). The
+ // whole strip stays a drag region.
+ if (isMacOS()) {
+ return (
+ <div
+ data-tauri-drag-region
+ className="h-8 flex items-center justify-end bg-gray-100 dark:bg-[#141414] select-none pl-[80px] pr-3"
+ >
+ <img src="/LU-monogram-bw.png" alt="" width={18} height={18} className="pointer-events-none dark:invert-0 invert opacity-80" />
+ </div>
+ )
+ }
+
return (
<div
data-tauri-drag-region
@@ -54,7 +71,7 @@ export function Titlebar() {
<img src="/LU-monogram-bw.png" alt="" width={18} height={18} className="pointer-events-none dark:invert-0 invert opacity-80" />
</div>
- {/* Right: Window controls */}
+ {/* Right: Window controls (Windows/Linux — custom, since decorations:false) */}
<div className="flex items-center">
<button
onClick={handleMinimize}
diff --git a/src/hooks/useCloudAuth.ts b/src/hooks/useCloudAuth.ts
index 6b884084..af80881c 100644
--- a/src/hooks/useCloudAuth.ts
+++ b/src/hooks/useCloudAuth.ts
@@ -12,6 +12,7 @@ import { useCloudAuthStore, deriveCloudAvailable } from '../stores/cloudAuthStor
import { refreshCatalog } from '../stores/cloudCatalogStore'
import { useProviderStore } from '../stores/providerStore'
import { useSettingsStore } from '../stores/settingsStore'
+import { isCloudOnly } from '../api/backend'
import type { CloudQuota } from '../lib/render/cloud-jobs'
const REFRESH_MS = 5 * 60_000
@@ -87,7 +88,11 @@ async function probeAccount(): Promise<void> {
// Never strand the app in cloud mode without a usable cloud: sign-out,
// license loss or the beta gate flips the global switch back to Local.
+// EXCEPTION: the macOS Cloud-only build has no Local to fall back to — it stays
+// in cloud mode and the CloudGateModal drives (re-)login instead (David
+// 2026-07-11).
function syncAppMode(): void {
+ if (isCloudOnly()) return
const settings = useSettingsStore.getState()
if (settings.settings.appMode === 'cloud' && !deriveCloudAvailable(useCloudAuthStore.getState())) {
settings.updateSettings({ appMode: 'local' })