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): the Model Manager shows MLX media instead of hiding the rails

purplec5bee72c6014
diff --git a/e2e/mac-create-mlx.spec.ts b/e2e/mac-create-mlx.spec.ts
index 7bd07254..ce86606b 100644
--- a/e2e/mac-create-mlx.spec.ts
+++ b/e2e/mac-create-mlx.spec.ts
@@ -174,6 +174,29 @@ test('fresh mac: Create itself offers the setup, and it is the MLX one', async (
expect(comfy).toHaveLength(0)
})
+test('mac: the Model Manager offers MLX media instead of hiding the rails', async ({ page }) => {
+ // The Image/Video rails used to be removed on macOS because the grid behind
+ // them is ComfyUI-driven and dead there. Removing them left a Mac user with
+ // no model surface for media at all — "where do I get models" had no answer
+ // in the place that is literally called Models.
+ await page.addInitScript(tauriMockInit, MAC_OPTS)
+ await seedOnboardingDone(page)
+ await routeCloud(page, { license: 'active', access: true, mediaLive: true })
+ await page.goto('/')
+ await expect(cloudSwitch(page)).toBeVisible({ timeout: 20_000 })
+
+ await page.getByRole('button', { name: /^Models$/ }).first().click()
+ await page.getByRole('button', { name: /^Image$/ }).first().click()
+
+ await expect(page.getByText(/Local media on this Mac runs on Apple MLX/i)).toBeVisible({ timeout: 15_000 })
+ await expect(page.getByText('SD Turbo', { exact: true })).toBeVisible()
+ // Video belongs under its own rail, not doubled up in the image one.
+ await expect(page.getByText('Wan 2.1 T2V 1.3B', { exact: true })).toHaveCount(0)
+
+ await page.getByRole('button', { name: /^Video$/ }).first().click()
+ await expect(page.getByText('Wan 2.1 T2V 1.3B', { exact: true })).toBeVisible({ timeout: 15_000 })
+})
+
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/src/components/models/ModelManager.tsx b/src/components/models/ModelManager.tsx
index 9c17d8a2..827787c6 100644
--- a/src/components/models/ModelManager.tsx
+++ b/src/components/models/ModelManager.tsx
@@ -15,6 +15,7 @@ import { GlowButton } from '../ui/GlowButton'
import { showModel } from '../../api/ollama'
import { checkComfyConnection, refreshComfyModels } from '../../api/comfyui'
import { isMlxImageHost } from '../../api/mlx-image'
+import { MlxMediaSettings } from '../settings/MlxMediaSettings'
import { backendCall } from '../../api/backend'
import type { ModelCategory, AIModel } from '../../types/models'
@@ -61,12 +62,16 @@ export function ModelManager() {
// with "ComfyUI path not set" and Installed shows a "Start ComfyUI" state that
// can never resolve. Pin the mode to text so a persisted image/video filter
// never lands on it, and drop the two rail items below.
- const macTextOnly = isMlxImageHost()
- const mode: Mode = macTextOnly
- ? 'text'
- : (categoryFilter === 'text' || categoryFilter === 'image' || categoryFilter === 'video')
+ // macOS: the ComfyUI-backed media grid below is dead there (Discover → Install
+ // rejects with "ComfyUI path not set"). It used to be hidden outright, which
+ // left a Mac user with no model surface for media at all. The rails are back —
+ // they render the MLX catalogue instead, the same one Settings drives.
+ const macMlxMedia = isMlxImageHost()
+ const mode: Mode =
+ (categoryFilter === 'text' || categoryFilter === 'image' || categoryFilter === 'video')
? categoryFilter
: 'text'
+ const showMlxPanel = macMlxMedia && (mode === 'image' || mode === 'video')
useEffect(() => {
fetchModels()
@@ -135,7 +140,7 @@ export function ModelManager() {
<div className="h-full flex overflow-hidden">
{/* Category rail — the big, labeled home of Chat / Image / Video */}
<aside className="shrink-0 w-12 lg:w-36 border-r border-gray-200 dark:border-white/[0.06] bg-gray-50/60 dark:bg-white/[0.015] flex flex-col py-3 px-1.5 lg:px-2 gap-1">
- {RAIL_ITEMS.filter((r) => !macTextOnly || r.key === 'text').map(({ key, label, icon: Icon }) => {
+ {RAIL_ITEMS.map(({ key, label, icon: Icon }) => {
const active = mode === key
const count = models.filter((m) => m.type === key).length
return (
@@ -181,8 +186,9 @@ export function ModelManager() {
</button>
<h1 className="text-[0.85rem] font-semibold text-gray-900 dark:text-white">Models</h1>
- {/* Discover / Installed segment */}
- <div className="ml-2 flex items-center p-0.5 rounded-lg bg-gray-100 dark:bg-white/[0.04] border border-gray-200 dark:border-white/[0.06]">
+ {/* Discover / Installed segment — the MLX panel is one list with
+ per-model Install/Remove, so the split would switch nothing. */}
+ <div className={`ml-2 flex items-center p-0.5 rounded-lg bg-gray-100 dark:bg-white/[0.04] border border-gray-200 dark:border-white/[0.06] ${showMlxPanel ? 'hidden' : ''}`}>
<button
onClick={() => setTab('discover')}
aria-pressed={tab === 'discover'}
@@ -251,7 +257,13 @@ export function ModelManager() {
</div>
{/* Views */}
- {tab === 'installed' && (
+ {showMlxPanel && (
+ <div className="pt-1">
+ <MlxMediaSettings only={mode === 'image' ? 'image' : 'video'} />
+ </div>
+ )}
+
+ {!showMlxPanel && tab === 'installed' && (
<>
{imageOrVideo && filteredModels.length === 0 && comfyReachable !== true ? (
// comfyReachable: null = still probing, false = confirmed down.
@@ -362,7 +374,7 @@ export function ModelManager() {
</>
)}
- {tab === 'discover' && (
+ {!showMlxPanel && tab === 'discover' && (
<DiscoverModels
category={mode}
search={searchQuery}
diff --git a/src/components/settings/MlxMediaSettings.tsx b/src/components/settings/MlxMediaSettings.tsx
index d66426f6..afa7ffc2 100644
--- a/src/components/settings/MlxMediaSettings.tsx
+++ b/src/components/settings/MlxMediaSettings.tsx
@@ -59,7 +59,11 @@ function progressLine(p: { download_progress: number; download_total: number; do
return `${pct}% — ${formatBytes(p.download_progress)} of ${formatBytes(p.download_total)}${speed}`
}
-export function MlxMediaSettings() {
+/** `only` lets the Model Manager show just one half under its Image / Video
+ * rail; Settings passes nothing and gets both. */
+export function MlxMediaSettings({ only }: { only?: 'image' | 'video' } = {}) {
+ const showImage = only !== 'video'
+ const showVideo = only !== 'image'
const [engine, setEngine] = useState<MlxStatus | null>(null)
const [images, setImages] = useState<MlxImageModel[]>([])
const [video, setVideo] = useState<VideoStatus | null>(null)
@@ -251,6 +255,7 @@ export function MlxMediaSettings() {
)}
{/* ── Image ─────────────────────────────────────────── */}
+ {showImage && (<>
<div className="flex items-center gap-1.5 pt-1">
<ImageIcon size={12} className="text-gray-500" />
<span className="text-[0.7rem] text-gray-700 dark:text-gray-300">Images</span>
@@ -274,8 +279,10 @@ export function MlxMediaSettings() {
</div>
{images.map((m) => modelRow('image', m, imageEngineReady))}
+ </>)}
{/* ── Video ─────────────────────────────────────────── */}
+ {showVideo && (<>
<div className="flex items-center gap-1.5 pt-1">
<Film size={12} className="text-gray-500" />
<span className="text-[0.7rem] text-gray-700 dark:text-gray-300">Video</span>
@@ -313,6 +320,7 @@ export function MlxMediaSettings() {
<div className="text-[0.6rem] text-gray-500 leading-relaxed">
Video models are large and generation is slow — minutes per clip, not seconds. Start with the smallest model.
</div>
+ </>)}
{/* ── Live install output ───────────────────────────── */}
{(anyBusy || log.length > 0) && (