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(mac): hide dead ComfyUI settings surfaces on local Mac
purpleb894002cd6af
diff --git a/src/components/settings/HardwareSettings.tsx b/src/components/settings/HardwareSettings.tsxindex fd978039..585bf175 100644--- a/src/components/settings/HardwareSettings.tsx+++ b/src/components/settings/HardwareSettings.tsx@@ -6,6 +6,7 @@import { useEffect, useMemo, useState } from 'react'import { useSettingsStore } from '../../stores/settingsStore'import { backendCall, isTauri } from '../../api/backend'+import { isMlxImageHost } from '../../api/mlx-image'import { Cpu, RefreshCw, AlertTriangle } from 'lucide-react'interface DetectedGpu {@@ -187,6 +188,9 @@ export function HardwareSettings() {)}</div>+ {/* ComfyUI GPU selection is meaningless on the Mac — MLX runs on Metal and+ ComfyUI never launches there. */}+ {!isMlxImageHost() && (<div className="pt-2 border-t border-white/[0.06]"><div className="text-[0.7rem] text-gray-700 dark:text-gray-300 font-medium mb-1">ComfyUI GPU (image / video)</div><div className="grid grid-cols-1 gap-1">@@ -214,6 +218,7 @@ export function HardwareSettings() {AMD image / video needs a ComfyUI built for your card (ROCm or ZLUDA). LU installs an NVIDIA / CPU ComfyUI by default. Takes effect on next ComfyUI start.</div></div>+ )}{showRestartHint && (vendor !== 'auto' || indices.length > 0) && (<div className="text-[0.6rem] text-amber-300 italic">diff --git a/src/components/settings/PermissionSettings.tsx b/src/components/settings/PermissionSettings.tsxindex af594b32..f9477776 100644--- a/src/components/settings/PermissionSettings.tsx+++ b/src/components/settings/PermissionSettings.tsx@@ -22,7 +22,7 @@ const CATEGORIES: {{ key: 'web', label: 'Web Access', description: 'Search & fetch web pages', icon: Globe, risk: 'low' },{ key: 'system', label: 'System Info', description: 'OS info, process list', icon: Cpu, risk: 'low' },{ key: 'filesystem', label: 'Filesystem', description: 'Read, write, search files anywhere', icon: FolderOpen, risk: 'medium' },- { key: 'image', label: 'Image Generation', description: 'Generate images via ComfyUI', icon: Image, risk: 'medium' },+ { key: 'image', label: 'Image Generation', description: 'Generate images and video', icon: Image, risk: 'medium' },{ key: 'workflow', label: 'Workflows', description: 'Execute saved agent workflows', icon: GitBranch, risk: 'medium' },{ key: 'terminal', label: 'Terminal / Shell', description: 'Execute commands, run code', icon: Terminal, risk: 'high' },{ key: 'desktop', label: 'Desktop Control', description: 'Screenshots, screen interaction', icon: Monitor, risk: 'high' },diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsxindex 8eab9128..b0afba99 100644--- a/src/components/settings/SettingsPage.tsx+++ b/src/components/settings/SettingsPage.tsx@@ -54,6 +54,7 @@ import { WorkflowList } from '../agents/WorkflowList'import { WorkflowBuilder } from '../agents/WorkflowBuilder'import { useUpdateStore, isNewerVersion } from '../../stores/updateStore'import { backendCall, isCloudOnly } from '../../api/backend'+import { isMlxImageHost } from '../../api/mlx-image'import { ArrowUpCircle } from 'lucide-react'// ── User profile picture (Appearance) ───────────────────────────@@ -1049,8 +1050,9 @@ export function SettingsPage() {<ChatBackupSettings /></Section>- {/* ComfyUI-only knobs — cloud renders use server-side limits. */}- {settings.appMode !== 'cloud' && (+ {/* ComfyUI-only knobs — cloud renders use server-side limits, and the+ Mac's MLX pipeline has its own fixed timeout, so hide there too. */}+ {settings.appMode !== 'cloud' && !isMlxImageHost() && (<Section title="Image / Video Generation Timeouts"><div className="text-[0.6rem] text-gray-500 dark:text-gray-500 leading-relaxed pb-1.5">Maximum minutes a ComfyUI generation can run before LU aborts it. Bump these up if you run on iGPU or CPU only — a 1024px image on integrated graphics can take 30+ min.@@ -1160,14 +1162,18 @@ export function SettingsPage() {<HfDownloadPathSetting /></Section>- <Section title="ComfyUI (Image & Video)">- {settings.appMode === 'cloud' && (- <p className="text-[0.55rem] text-gray-500 leading-snug pb-1">- Local mode only — cloud renders run on lu-labs.ai and never use ComfyUI.- </p>- )}- <ComfyUISettings />- </Section>+ {/* ComfyUI never runs on the Mac (MLX-only local media) — hide the whole+ panel there so it isn't a dead Install/Start surface. */}+ {!isMlxImageHost() && (+ <Section title="ComfyUI (Image & Video)">+ {settings.appMode === 'cloud' && (+ <p className="text-[0.55rem] text-gray-500 leading-snug pb-1">+ Local mode only — cloud renders run on lu-labs.ai and never use ComfyUI.+ </p>+ )}+ <ComfyUISettings />+ </Section>+ )}</>)}{/* ── Agent tab ─────────────────────────────────── */}@@ -1610,10 +1616,12 @@ function TroubleshootSection() {<span className="text-[0.65rem] text-gray-300">Ollama</span><ProbeBadge probe={report.ollama} /></div>- <div className="flex items-center justify-between">- <span className="text-[0.65rem] text-gray-300">ComfyUI</span>- <ProbeBadge probe={report.comfyui} />- </div>+ {!isMlxImageHost() && (+ <div className="flex items-center justify-between">+ <span className="text-[0.65rem] text-gray-300">ComfyUI</span>+ <ProbeBadge probe={report.comfyui} />+ </div>+ )}<div className="flex items-center justify-between"><span className="text-[0.65rem] text-gray-300">LM Studio</span><ProbeBadge probe={report.lm_studio} />