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(mac): Create can set up local media itself; Rust refuses ComfyUI on macOS
purple3579ab6ac751
diff --git a/e2e/mac-create-mlx.spec.ts b/e2e/mac-create-mlx.spec.tsindex a0364963..7bd07254 100644--- a/e2e/mac-create-mlx.spec.ts+++ b/e2e/mac-create-mlx.spec.ts@@ -138,6 +138,42 @@ test('fresh mac: the Local Media panel installs the engine and a model', async (expect(calls.some((c) => c.cmd === 'mlx_image_install_model' && c.id === 'sd-turbo')).toBe(true)})+test('fresh mac: Create itself offers the setup, and it is the MLX one', async ({ page }) => {+ // The gap MAC-3 left open: the installer existed in Settings, but Create —+ // where the user actually is when they hit the wall — showed an empty stage+ // and a "one-time setup is needed" line with nothing to press. The card the+ // other platforms get was gated on ComfyUI being *down*, and on a Mac that+ // question is never asked, so it could not fire.+ const fresh: TauriMockOptions = {+ ...MAC_OPTS,+ mlx: { engineInstalled: false, videoEngineInstalled: false, installedImages: [], installedVideos: [] },+ }+ await bootLocalCreate(page, fresh)++ const card = page.getByText(/Local image generation needs a one-time setup/i)+ await expect(card).toBeVisible({ timeout: 20_000 })+ // Mac copy, not the ComfyUI bundle copy — no ComfyUI download is promised.+ await expect(page.getByText(/Apple MLX/i).first()).toBeVisible()+ await expect(page.getByText(/ComfyUI/i)).toHaveCount(0)++ await page.getByRole('button', { name: /Download & install/i }).click()++ // Engine first, then the SMALLEST model in the catalog — the setup path+ // must not pull the 4.4 GB one when a 2.6 GB one would do.+ await expect+ .poll(async () => (await mlxCalls(page)).map((c: any) => c.cmd), { timeout: 30_000 })+ .toContain('mlx_image_install_model')+ const calls = (await mlxCalls(page)) as any[]+ expect(calls.some((c) => c.cmd === 'install_mlx_diffusion')).toBe(true)+ expect(calls.find((c) => c.cmd === 'mlx_image_install_model').id).toBe('sd-turbo')++ // The hard rule: nothing in this flow reaches for ComfyUI.+ const comfy = await page.evaluate(+ () => (window as unknown as { __E2E_COMFY_CALLS__?: unknown[] }).__E2E_COMFY_CALLS__ ?? [],+ )+ expect(comfy).toHaveLength(0)+})+test('windows local is unchanged: ComfyUI lanes still offered', async ({ page }) => {// Guard against fixing the Mac by breaking everyone else.await bootLocalCreate(page, { ...MAC_OPTS, platform: 'windows' })diff --git a/e2e/support/tauri-mock.ts b/e2e/support/tauri-mock.tsindex cea94832..c8a53e70 100644--- a/e2e/support/tauri-mock.ts+++ b/e2e/support/tauri-mock.ts@@ -247,6 +247,7 @@ export function tauriMockInit(opts: TauriMockOptions) {return Promise.resolve(mlxImageCatalog.map((m) => ({ ...m, installed: mlx.images.has(m.id) })))case 'install_mlx_diffusion':slot.imageEngine = 0+ record('__E2E_MLX_CALLS__', { cmd })return Promise.resolve({ ok: true, status: 'installing' })case 'install_mlx_diffusion_status': {const s = installStatus('imageEngine')@@ -301,6 +302,7 @@ export function tauriMockInit(opts: TauriMockOptions) {return Promise.resolve(mlxVideoCatalog.map((m) => ({ ...m, installed: mlx.videos.has(m.id) })))case 'video_install_mlx':slot.videoEngine = 0+ record('__E2E_MLX_CALLS__', { cmd })return Promise.resolve({ ok: true, status: 'installing' })case 'video_install_mlx_status': {const s = installStatus('videoEngine')@@ -310,8 +312,10 @@ export function tauriMockInit(opts: TauriMockOptions) {case 'video_install_model':slot.video = 0pendingVideoId = m?.id ?? null- record('__E2E_MLX_CALLS__', { cmd, id: args?.id })- return Promise.resolve({ ok: true, status: 'installing', id: args?.id })+ // The payload is nested under `args` (invokeMedia) — reading args.id+ // here recorded undefined and let an id assertion pass on nothing.+ record('__E2E_MLX_CALLS__', { cmd, id: m?.id })+ return Promise.resolve({ ok: true, status: 'installing', id: m?.id })case 'video_install_model_status': {const s = installStatus('video')if (s.status === 'complete' && pendingVideoId) {diff --git a/package.json b/package.jsonindex a91f3d79..c28bca7f 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "locally-uncensored",- "version": "2.5.10",+ "version": "2.6.0","private": false,"description": "Generate anything — text, images, video. Locally. Uncensored.","license": "AGPL-3.0",diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lockindex 0f91316f..7de7165b 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -2543,7 +2543,7 @@ dependencies = [[[package]]name = "locally-uncensored"-version = "2.5.10"+version = "2.6.0"dependencies = ["axum","base64 0.22.1",diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex 1c96aacb..e066d107 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "locally-uncensored"-version = "2.5.10"+version = "2.6.0"description = "Private, local AI chat & image/video generation"authors = ["purpledoubled"]edition = "2021"diff --git a/src-tauri/src/commands/install.rs b/src-tauri/src/commands/install.rsindex 9a2a7aa4..6673e5ea 100644--- a/src-tauri/src/commands/install.rs+++ b/src-tauri/src/commands/install.rs@@ -465,6 +465,14 @@ pub fn install_comfyui(install_path: Option<String>,state: State<'_, AppState>,) -> Result<serde_json::Value, String> {+ // Never on macOS: local media there is MLX. Refusing before we touch the+ // install slot means a stray call cannot even leave the status machine in+ // "installing" — see start_comfyui for why the guard lives in Rust and not+ // only in the UI that hides these buttons.+ if !crate::commands::process::comfy_supported_here() {+ return Err(crate::commands::process::MACOS_COMFY_REFUSAL.to_string());+ }+let mut install = state.install_status.lock().unwrap();if install.status == "installing" {return Ok(serde_json::json!({"status": "already_installing"}));diff --git a/src-tauri/src/commands/process.rs b/src-tauri/src/commands/process.rsindex b4ffd6fa..6631722d 100644--- a/src-tauri/src/commands/process.rs+++ b/src-tauri/src/commands/process.rs@@ -11,6 +11,19 @@ use std::os::windows::process::CommandExt;use crate::state::AppState;+/// What every ComfyUI entry point answers on macOS. Local media there is Apple+/// MLX and nothing else, so the honest answer names the surface that does work+/// instead of failing with a bare error.+pub const MACOS_COMFY_REFUSAL: &str =+ "ComfyUI is not used on macOS. Local image and video run on Apple MLX — set it up in Settings → AI Backends → Local Media (Apple MLX).";++/// One definition of "may this machine run a local ComfyUI at all". Every entry+/// point asks this rather than testing the target itself, so the rule has a+/// single place to be read, tested, and changed.+pub fn comfy_supported_here() -> bool {+ !cfg!(target_os = "macos")+}+/// Windows: hide console windows for spawned processes#[cfg(target_os = "windows")]const CREATE_NO_WINDOW: u32 = 0x08000000;@@ -1104,6 +1117,17 @@ fn start_comfyui_blocking(state: &AppState) -> Result<serde_json::Value, String>}}+ // macOS is MLX-only for local media — a hard product rule, not a preference.+ // The frontend hides every ComfyUI surface there, but the frontend is not+ // the only caller: the remote/mobile control surface reaches these commands+ // directly, and any future caller would too. Refusing here is what actually+ // makes the rule true. The remote-host branch above still answers, so a Mac+ // pointed at someone else's ComfyUI keeps working — only spawning a local+ // one is refused.+ if !comfy_supported_here() {+ return Err(MACOS_COMFY_REFUSAL.to_string());+ }+let port = *state.comfy_port.lock().unwrap();if is_comfyui_running_on_port(port) {@@ -1939,6 +1963,22 @@ mod tests {// ── Bug J: needs_cpu_fallback platform short-circuit ─────────────────+ #[test]+ fn comfy_is_refused_on_macos_and_allowed_elsewhere() {+ // "Mac local media is MLX, never ComfyUI" is a product rule, and the+ // UI-side hiding of the buttons is not where a rule is kept — the+ // remote/mobile control surface calls these commands directly.+ if cfg!(target_os = "macos") {+ assert!(!comfy_supported_here(), "macOS must refuse a local ComfyUI");+ // The refusal has to say where the working surface is; a bare+ // "unsupported" leaves the user with nothing to do next.+ assert!(MACOS_COMFY_REFUSAL.contains("MLX"));+ assert!(MACOS_COMFY_REFUSAL.contains("Settings"));+ } else {+ assert!(comfy_supported_here(), "Windows/Linux keep ComfyUI");+ }+ }+#[test]fn needs_cpu_fallback_is_false_on_macos() {// On macOS, PyTorch uses MPS and never calls cuda APIs that crashdiff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 32c2e960..10d1744a 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -1,7 +1,7 @@{"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json","productName": "LU",- "version": "2.5.10",+ "version": "2.6.0","identifier": "com.purpledoubled.locally-uncensored","build": {"beforeBuildCommand": "npm run build",diff --git a/src/api/mlx-install.ts b/src/api/mlx-install.tsnew file mode 100644index 00000000..413a17dd--- /dev/null+++ b/src/api/mlx-install.ts@@ -0,0 +1,125 @@+// One-click local media setup on macOS — the Create-tab counterpart to the+// per-model panel in Settings → Local Media (Apple MLX).+//+// A fresh Mac has neither the MLX engine nor any model, and Create's local+// lanes are dead until both exist. Settings can already fix that, but only if+// the user knows to go there: the Create tab said "a one-time setup is needed"+// and offered no way to do it. This module is that way — engine first, then the+// smallest model of the requested kind, which is what "just make it work"+// means here.+//+// The install itself runs in Rust and survives this page, so `signal` stops us+// WATCHING, not the download. Callers say so in their copy rather than+// promising a cancel we cannot deliver (unlike the ComfyUI bundle path, whose+// downloader really is abortable).++import { waitOrAbort } from '../lib/bundle-install'+import {+ mlxStatus,+ listMlxImageModels,+ installMlxImageModel,+ getMlxImageInstallStatus,+ installMlxImageEngine,+ getMlxImageEngineStatus,+ type MlxInstallStatus,+} from './mlx-image'+import {+ getVideoStatus,+ listVideoModels,+ installMlxVideo,+ getMlxInstallStatus,+ installVideoModel,+ getModelInstallStatus,+ type InstallStatus,+} from './mlx-video'+import { formatBytes } from '../lib/formatters'++const POLL_MS = 1500++/** Byte progress, when the installer reports it (the video lane does). */+export function mlxProgressLine(s: MlxInstallStatus | InstallStatus): string | null {+ if (!('download_total' in s) || !s.download_total) return null+ const pct = Math.min(100, Math.round((s.download_progress / s.download_total) * 100))+ const speed = s.download_speed > 0 ? ` · ${formatBytes(s.download_speed)}/s` : ''+ return `${pct}% — ${formatBytes(s.download_progress)} of ${formatBytes(s.download_total)}${speed}`+}++/**+ * Poll one Rust install slot to completion.+ *+ * Terminal states are 'complete' and 'error'; anything else keeps polling. A+ * failed poll is transient (the slot is being written) and must not end the+ * wait, or a single hiccup would report a finished install as failed.+ */+async function awaitSlot(+ read: () => Promise<MlxInstallStatus | InstallStatus>,+ label: string,+ onProgress?: (msg: string) => void,+ signal?: AbortSignal,+): Promise<void> {+ for (;;) {+ await waitOrAbort(POLL_MS, signal)+ let s: MlxInstallStatus | InstallStatus+ try {+ s = await read()+ } catch {+ continue+ }+ const last = s.logs?.length ? String(s.logs[s.logs.length - 1]) : ''+ onProgress?.(mlxProgressLine(s) || last || label)+ if (s.status === 'error') throw new Error(s.error || `${label} failed.`)+ if (s.status === 'complete') return+ }+}++/** Smallest model wins: the setup path should not pull 14 GB to prove it works. */+function smallest<T extends { sizeGB: number; installed: boolean }>(models: T[]): T | null {+ const missing = models.filter((m) => !m.installed)+ if (missing.length === 0) return null+ return missing.reduce((a, b) => (b.sizeGB < a.sizeGB ? b : a))+}++/**+ * Bring local MLX media for `kind` from nothing to usable.+ *+ * Idempotent by design: each step checks the live state first, so a run that+ * died halfway (or a user who already installed the engine in Settings)+ * resumes instead of reinstalling.+ */+export async function installMlxStack(+ kind: 'image' | 'video',+ onProgress?: (msg: string) => void,+ signal?: AbortSignal,+): Promise<void> {+ if (kind === 'image') {+ const st = await mlxStatus().catch(() => null)+ if (!st?.installed) {+ onProgress?.('Setting up the image engine (about 3 GB, one time)…')+ await installMlxImageEngine()+ await awaitSlot(getMlxImageEngineStatus, 'Image engine install', onProgress, signal)+ }+ const pick = smallest(await listMlxImageModels())+ // Null means every catalog entry is already installed — the caller's empty+ // model list was a stale read, not a missing install. Nothing left to do.+ if (!pick) return+ onProgress?.(`Downloading ${pick.name} (${pick.sizeGB} GB)…`)+ await installMlxImageModel(pick.id)+ await awaitSlot(getMlxImageInstallStatus, `${pick.name} download`, onProgress, signal)+ return+ }++ const vs = await getVideoStatus().catch(() => null)+ if (vs && !vs.appleSilicon) {+ throw new Error('Local video generation needs Apple Silicon. Use LU Cloud for video on this Mac.')+ }+ if (!vs?.mlxInstalled) {+ onProgress?.('Setting up the video engine (one time)…')+ await installMlxVideo()+ await awaitSlot(getMlxInstallStatus, 'Video engine install', onProgress, signal)+ }+ const pick = smallest(await listVideoModels())+ if (!pick) return+ onProgress?.(`Downloading ${pick.name} (${pick.sizeGB} GB)…`)+ await installVideoModel(pick.id)+ await awaitSlot(getModelInstallStatus, `${pick.name} download`, onProgress, signal)+}diff --git a/src/components/create/experimental/CreateContext.tsx b/src/components/create/experimental/CreateContext.tsxindex 5b24daed..b5db2f4f 100644--- a/src/components/create/experimental/CreateContext.tsx+++ b/src/components/create/experimental/CreateContext.tsx@@ -7,6 +7,7 @@ import { getLoraModels, getVAEModels, checkComfyConnection, refreshComfyModels }import { getAllNodeInfo, clearNodeCache } from '../../../api/comfyui-nodes'import { installCustomNodes, getImageBundles, getVideoBundles, getAudioBundles, getLipsyncBundles, getMotionBundles, startModelDownload, getDownloadProgress } from '../../../api/discover'import { backendCall, isMacOS } from '../../../api/backend'+import { installMlxStack } from '../../../api/mlx-install'import { useDownloadStore } from '../../../stores/downloadStore'import { downloadBundleFiles, waitOrAbort } from '../../../lib/bundle-install'import { ensureLocalFilename } from './loadImage'@@ -64,6 +65,9 @@ interface CreateExpValue {connected: boolean | nullmodelsLoaded: booleanmodelLoadError: string | null+ /** macOS: which local lanes still have no MLX model. `null` off-Mac and until+ * the first probe answers, so the setup card never flashes during startup. */+ mlxMissing: { image: boolean; video: boolean } | null/** True while the ComfyUI that LU launched runs with --cpu (shd_scorpion,* RX 7900 XTX): surfaces the honest slow-mode warning instead of a silent* 20-minute timeout. */@@ -99,7 +103,7 @@ export function useCreateExp(): CreateExpValue {export function CreateExpProvider({ children }: { children: ReactNode }) {const {generate, cancel, samplerList, schedulerList,- connected, modelsLoaded, modelLoadError, checkConnection, fetchModels,+ connected, modelsLoaded, modelLoadError, mlxMissing, checkConnection, fetchModels,} = useCreate()const { cloudAvailable, quota, refreshQuota } = useCloudSession()const cloud = useCloudCreate({ onQuotaChange: refreshQuota })@@ -292,6 +296,20 @@ export function CreateExpProvider({ children }: { children: ReactNode }) {// a restart. Bundles that need a custom node pack (GGUF loader, pose// extractor) install + register it first — one click really means one click.const installModelBundle = useCallback(async (kind: 'image' | 'video' | 'audio' | 'lipsync' | 'motion', onProgress?: (msg: string) => void, signal?: AbortSignal) => {+ // macOS takes the MLX path — engine plus the smallest model of that kind.+ // Everything below this line is the ComfyUI bundle flow, which would start+ // by installing ComfyUI itself; on a Mac that is the one thing that must+ // never happen (Rust refuses it too — see process.rs::comfy_supported_here).+ // Only image and video exist locally there; the other lanes are cloud+ // teasers on a Mac and never render this card.+ if (isMacOS()) {+ if (kind !== 'image' && kind !== 'video') {+ throw new Error('This one runs in LU Cloud on a Mac — local generation covers images and video.')+ }+ await installMlxStack(kind, onProgress, signal)+ await fetchModels()+ return+ }await ensureComfyRunning(onProgress, signal)const bundle = (kind === 'image' ? getImageBundles()@@ -358,7 +376,7 @@ export function CreateExpProvider({ children }: { children: ReactNode }) {enhanceVideo: cloud.enhanceVideo,makeVoice: cloud.makeVoice,samplerList, schedulerList, loraList, vaeList,- connected, modelsLoaded, modelLoadError, comfyOnCpu, installCapability, installModelBundle,+ connected, modelsLoaded, modelLoadError, mlxMissing, comfyOnCpu, installCapability, installModelBundle,cloudAvailable, quota, refreshQuota,}return <Ctx.Provider value={value}>{children}</Ctx.Provider>diff --git a/src/components/create/experimental/Stage.tsx b/src/components/create/experimental/Stage.tsxindex 889aadae..ddef9482 100644--- a/src/components/create/experimental/Stage.tsx+++ b/src/components/create/experimental/Stage.tsx@@ -11,6 +11,7 @@ import { cn } from '../ui/cn'import { loadImageRef } from './loadImage'import { galleryItemUrl, fetchGalleryItemBlob, recoverGalleryUrl } from './galleryUrl'import { InstallCancelled } from '../../../lib/bundle-install'+import { isMlxImageHost } from '../../../api/mlx-image'interface Props {displayed?: GalleryItem@@ -37,7 +38,7 @@ export function Stage({ displayed, onOpenMaskEditor, onEditResult, onFullscreenconst audioModelList = useCreateStore((s) => s.audioModelList)const lipsyncModelList = useCreateStore((s) => s.lipsyncModelList)const motionModelList = useCreateStore((s) => s.motionModelList)- const { connected, modelsLoaded } = useCreateExp()+ const { connected, modelsLoaded, mlxMissing } = useCreateExp()// On the cloud backend the utility ops (background removal, …) run on// WaveSpeed's hosted endpoints — there's no local ComfyUI node to install,// so the capability is always ready. Only the local backend gates on the@@ -55,10 +56,19 @@ export function Stage({ displayed, onOpenMaskEditor, onEditResult, onFullscreenlipsync: lipsyncModelList,motion: motionModelList,}- const modelsMissing = backend === 'local' && !!meta.requiresModels && (+ // macOS answers this from MLX, not from ComfyUI: `connected` is deliberately+ // pinned to null there (there is nothing to connect to), so the rule below+ // would never fire and a Mac with no model installed got an empty stage and+ // no way to fix it — the setup lived in Settings, where nothing pointed.+ const macMissing =+ backend === 'local' && !!mlxMissing &&+ (meta.requiresModels === 'image' ? mlxMissing.image+ : meta.requiresModels === 'video' ? mlxMissing.video+ : false)+ const modelsMissing = macMissing || (mlxMissing === null && backend === 'local' && !!meta.requiresModels && (connected === false ||(connected === true && modelsLoaded && listForKind[meta.requiresModels].length === 0)- )+ ))// A result counts for the current source only if it was generated after the// source was loaded — otherwise an older gallery item would hijack the stage.@@ -329,9 +339,13 @@ function ChangeImageButton({ onChange }: { onChange: (r: Awaited<ReturnType<type// install on Motion Control, got a spinner, and had no way to stop or even see// a 10.5 GB transfer. Cancel here aborts the install loop and kills the running// download in Rust; the partial file stays, so a later run resumes.-function InstallCardBody({ run, installing, status, err, onDismiss, onCancel }: {+function InstallCardBody({ run, installing, status, err, onDismiss, onCancel, cancelTitle }: {run: () => void; installing: boolean; status: string; err: string | nullonDismiss: () => void; onCancel: () => void+ /** What Cancel actually does here. The MLX installer on macOS runs in Rust+ * and outlives this view, so its Cancel stops watching, not downloading —+ * claiming otherwise would be a lie the next screen exposes. */+ cancelTitle?: string}) {return (<div className="flex flex-col items-center gap-2.5 pt-1">@@ -343,7 +357,7 @@ function InstallCardBody({ run, installing, status, err, onDismiss, onCancel }:</div><buttononClick={onCancel}- title="Stops the setup. A download in flight is dropped, finished files stay."+ title={cancelTitle ?? 'Stops the setup. A download in flight is dropped, finished files stay.'}className="t-control text-gray-500 hover:text-gray-300 underline underline-offset-2 transition-colors">Cancel@@ -396,6 +410,9 @@ const BUSY_DESCRIPTION = {// A connection that DROPS is the opposite case: that partial survives and the// next try resumes from it, which is what the retry line promises.bundle: 'Follow it in the Downloads tray up top. You can cancel any time, which stops the download and drops what it had so far.',+ // The MLX installer runs inside Rust and keeps going without this view, so+ // this line must not promise the Downloads tray or a real cancel.+ macBundle: 'This runs in the background and survives leaving this tab. Settings → AI Backends → Local Media shows the same progress.',} as constfunction CapabilityCard({ cap }: { cap: 'rmbg' | 'inpaint-nodes' | 'dwpose' }) {@@ -442,6 +459,22 @@ function CapabilityCard({ cap }: { cap: 'rmbg' | 'inpaint-nodes' | 'dwpose' }) {)}+// macOS runs local media on Apple MLX, so the Mac card must not promise a+// ComfyUI download or quote VRAM figures — unified memory is the constraint+// there, and the sizes are the MLX catalog's, not ComfyUI's.+const MAC_BUNDLE_COPY = {+ image: {+ icon: ImageIcon,+ title: 'Local image generation needs a one-time setup',+ description: 'This sets up Apple MLX on this Mac and downloads the smallest image model to start with. More models — including unfiltered ones — are in Settings → AI Backends → Local Media.',+ },+ video: {+ icon: Film,+ title: 'Local video generation needs a one-time setup',+ description: 'This sets up Apple MLX video on this Mac and downloads the smallest video model. Video renders take minutes per clip, not seconds.',+ },+} as const+// ── Local model files missing → one-click starter bundle (fresh-PC path) ──const BUNDLE_COPY = {image: {@@ -477,7 +510,8 @@ function ModelInstallCard({ kind }: { kind: 'image' | 'video' | 'audio' | 'lipsyconst [status, setStatus] = useState('')const [err, setErr] = useState<string | null>(null)const abortRef = useRef<AbortController | null>(null)- const copy = BUNDLE_COPY[kind]+ const mac = isMlxImageHost()+ const copy = (mac && (kind === 'image' || kind === 'video')) ? MAC_BUNDLE_COPY[kind] : BUNDLE_COPY[kind]const run = async () => {const ac = new AbortController()@@ -501,12 +535,13 @@ function ModelInstallCard({ kind }: { kind: 'image' | 'video' | 'audio' | 'lipsyicon={copy.icon}tone="accent"title={installing ? 'Setting this up for you' : copy.title}- description={installing ? BUSY_DESCRIPTION.bundle : copy.description}+ description={installing ? (mac ? BUSY_DESCRIPTION.macBundle : BUSY_DESCRIPTION.bundle) : copy.description}><InstallCardBodyrun={run} installing={installing} status={status} err={err}onDismiss={() => setErr(null)}onCancel={() => abortRef.current?.abort()}+ cancelTitle={mac ? 'Stops showing progress here. The download itself keeps running — pick it up in Settings → AI Backends → Local Media.' : undefined}/></EmptyState>)diff --git a/src/hooks/useCreate.ts b/src/hooks/useCreate.tsindex 219e450c..f1508a71 100644--- a/src/hooks/useCreate.ts+++ b/src/hooks/useCreate.ts@@ -66,6 +66,12 @@ export function useCreate() {const [videoBackend, setVideoBackend] = useState<VideoBackend>('none')const [modelsLoaded, setModelsLoaded] = useState(false)const [modelLoadError, setModelLoadError] = useState<string | null>(null)+ // macOS only: which local media lanes have no MLX model installed yet.+ // `null` means "not probed" — Windows/Linux leave it there, and so does the+ // Mac until the first fetch answers, so no setup card can flash at startup.+ // `connected` cannot carry this: it tracks ComfyUI, which is not the local+ // media backend on a Mac.+ const [mlxMissing, setMlxMissing] = useState<{ image: boolean; video: boolean } | null>(null)const pollRef = useRef<ReturnType<typeof setInterval> | null>(null)const abortRef = useRef<AbortController | null>(null)// A local character-training run is a Rust child process, not a ComfyUI@@ -90,6 +96,14 @@ export function useCreate() {const runPreflight = useCallback(async () => {const state = useCreateStore.getState()+ // Preflight validates a model against ComfyUI's installed node graph. On a+ // Mac that question has no meaning — and asking it reaches out to port 8188,+ // where a ComfyUI the user runs for something else would answer about nodes+ // that have nothing to do with the MLX model being checked.+ if (isMlxImageHost()) {+ state.setPreflightStatus(null, [], [])+ return+ }const activeModel = state.mode === 'image' ? state.imageModel : state.videoModelif (!activeModel) {state.setPreflightStatus(null, [], [])@@ -131,6 +145,7 @@ export function useCreate() {try {mlxVideoModels = buildMlxVideoModels(await listVideoModels())} catch { /* mlx-video status unavailable yet — treat as no MLX video models */ }+ setMlxMissing({ image: mlxImageModels.length === 0, video: mlxVideoModels.length === 0 })}// Check connection first — if ComfyUI is down, don't waste time on model queries.@@ -1356,6 +1371,7 @@ export function useCreate() {videoBackend,modelsLoaded,modelLoadError,+ mlxMissing,checkConnection,fetchModels,runPreflight,