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): lift the Cloud-only wall — Mac is a full local+cloud app again

purplec88534ff2255
diff --git a/GOAL-mac-local.md b/GOAL-mac-local.md
new file mode 100644
index 00000000..9581f276
--- /dev/null
+++ b/GOAL-mac-local.md
@@ -0,0 +1,71 @@
+# GOAL — LU Mac Desktop App, Local-Modus fertig bauen
+
+Auftrag David 2026-07-22: Mac-App Local-Modus zu Ende bauen (Cloud ist fertig).
+Jede Chat/Agent/Coding-Funktion + jedes Tool einzeln testen, Langzeitläufe,
+5 licensed + 5 uncensored Bildmodelle und 5 licensed + 5 uncensored Videomodelle
+je einmal durchlaufen. Harte Regel: Media auf Mac = MLX only, NIEMALS ComfyUI.
+David-Entscheid: MLX-Media komplett neu bauen.
+
+Branch: `feat/mac-local-mode` (von `release/2.5.7-merged`). Commit pro Schritt, kein Push.
+Legende: [ ] offen · [~] in Arbeit · [x] grün (verifiziert) · [!] blockiert/ehrlicher Cap
+
+---
+
+## Phase 1 — Fundament (Un-wall + lauffähige Local-App)
+- [~] 1.1 Wall lösen: `isCloudOnly()`→false (14 Gates schaltbar); tote Äste sauber entfernen = offen (Cleanup-Commit)
+ - [x] Migration v14: Mac-Zwangs-`cloud` einmalig auf `local` zurückgesetzt (settingsStore)
+- [x] 1.2 tsc (`tsconfig.app.json`) Baseline-Diff = 0 neue Fehler (331 Baseline unverändert); vitest berührte Stores 108 grün
+- [ ] 1.3 e2e-Specs an neuen Zustand angepasst, grün
+- [~] 1.4 App startet lokal (`tauri:dev` läuft, v2.5.7); Local-Onboarding rendert (UI-Smoke :5173); Switch/Local live noch zu bestätigen
+- [ ] 1.5 Local-Onboarding: Starter-Modell (Qwen2.5-0.5B) lädt, Engine bootet 127.0.0.1:8127 (Ollama-Modelle lokal schon da)
+- [ ] 1.6 ComfyUI auf Mac überall aus (harte Regel), keine Crashes/Dead-Ends
+
+## Phase 2 — Local Chat
+- [ ] 2.1 Chat streamt Tokens über Builtin-Engine (Qwen)
+- [ ] 2.2 Think-Toggle wo unterstützt
+- [ ] 2.3 Modell-Swap (2. Modell)
+- [ ] 2.4 Discover-Download für Builtin-Engine gefixt (`detect_model_path`), 2. Chat-Modell lädt
+- [ ] 2.5 Langzeit: langer Multi-Turn-Chat stabil
+
+## Phase 3 — Agent-Modus: jedes Tool einzeln (29 Builtin + MCP)
+web (auto): [ ] web_search · [ ] web_fetch
+filesystem: [ ] file_read · [ ] file_write · [ ] file_list · [ ] file_search
+terminal: [ ] shell_execute · [ ] code_execute · [ ] shell_execute_background · [ ] shell_task_status · [ ] shell_task_kill · [ ] shell_task_list
+git: [ ] git_status · [ ] git_commit · [ ] git_push · [ ] git_log · [ ] git_diff
+dev: [ ] project_init · [ ] pr_resume · [ ] gh_pr_create · [ ] run_tests
+system: [ ] system_info · [ ] process_list · [ ] get_current_time
+desktop: [ ] screenshot (Rust Mac-Impl NEU, war Windows-only)
+workflow: [ ] run_workflow · [ ] delegate_task
+extern: [ ] MCP-Tool (mind. 1 externer Server)
+media-Tools (in Phase 6): [ ] image_generate · [ ] video_generate (via MLX)
+
+## Phase 4 — Coding (Codex) Modus
+- [ ] 4.1 Codex-Tools verfügbar (builtin minus desktop/workflow)
+- [ ] 4.2 Ganze Multi-Datei-Coding-Aufgabe live grün
+- [ ] 4.3 Review-Mode strippt mutierende Tools (verifiziert)
+
+## Phase 5 — Langzeitläufe / Stabilität
+- [ ] 5.1 Langer Agent-Run (viele Tool-Calls, mehrstufig)
+- [ ] 5.2 Langer Coding-Run
+- [ ] 5.3 Memory + RAG über lange Session persistent
+- [ ] 5.4 Kein Leak/Absturz, RAM sauber (offload wo nötig)
+
+## Phase 6 — MLX-Media Neubau (Mac, only MLX)
+- [ ] 6.1 MLX-Runtime: Bild+Video-Python-Env geklärt + installier-/bundle-bar
+- [ ] 6.2 Rust: `mlx_image_generate` + `mlx_video_generate` (ersetzt ComfyUI-Pfad auf Mac)
+- [ ] 6.3 Frontend: Mac-Local-Create → MLX, ComfyUI-Pfad Mac aus, Backend-Pin mlx
+- [ ] 6.4 Bild-Katalog: 5 licensed
+ - [ ] img-L1 · [ ] img-L2 · [ ] img-L3 · [ ] img-L4 · [ ] img-L5
+- [ ] 6.5 Bild-Katalog: 5 uncensored
+ - [ ] img-U1 · [ ] img-U2 · [ ] img-U3 · [ ] img-U4 · [ ] img-U5
+- [ ] 6.6 Video-Katalog: 5 licensed (ehrlicher Cap möglich)
+ - [ ] vid-L1 · [ ] vid-L2 · [ ] vid-L3 · [ ] vid-L4 · [ ] vid-L5
+- [ ] 6.7 Video-Katalog: 5 uncensored (ehrlicher Cap möglich)
+ - [ ] vid-U1 · [ ] vid-U2 · [ ] vid-U3 · [ ] vid-U4 · [ ] vid-U5
+- [ ] 6.8 Jedes Bildmodell 1x durchgelaufen (billigste Settings)
+- [ ] 6.9 Jedes Videomodell 1x durchgelaufen (billigste Settings)
+
+## Phase 7 — Abschluss
+- [ ] 7.1 tsc + vitest + e2e grün, Baseline-Diff sauber
+- [ ] 7.2 Live-Green-Log je Goal-Punkt festgehalten
+- [ ] 7.3 Commit pro Schritt, Zusammenfassung, kein Push (Davids Go)
diff --git a/src/api/backend.ts b/src/api/backend.ts
index bcf1f5c6..2b07e60a 100644
--- a/src/api/backend.ts
+++ b/src/api/backend.ts
@@ -33,15 +33,15 @@ export function isMacOS(): boolean {
}
/**
- * 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).
+ * Launch policy: the macOS desktop app is now a full local+cloud app like
+ * Windows/Linux (David 2026-07-22 — local mode built + tested). The former
+ * Cloud-ONLY mac wall is lifted; the Local/Cloud switch, local-hardware
+ * surfaces and local onboarding are available again. Kept as a function
+ * returning false so the (dead) call sites collapse to the normal switchable
+ * behaviour; call sites are being removed in a follow-up cleanup.
*/
export function isCloudOnly(): boolean {
- return isTauri() && isMacOS();
+ return false;
}
async function getInvoke() {
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.ts
index df1c6757..2852b46d 100644
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@ -35,7 +35,13 @@ import { DEFAULT_SETTINGS, BUILT_IN_PERSONAS } from '../lib/constants'
// fills the default while preserving every existing value; NVIDIA unaffected.
// v13 (2.5.7): added settings.cloudOnboardingSeen (one-time Cloud onboarding
// on the first successful switch flip, default false). Additive merge.
-const STORE_VERSION = 13
+// v14 (2026-07-22): the macOS Cloud-only wall is lifted — the Mac app is a full
+// local+cloud app again (local mode built + tested). Existing Mac installs were
+// force-pinned to appMode 'cloud' with no real choice, so reset them to the
+// local default ONCE so they land in the now-built local mode; the visible
+// switch lets them flip back to cloud anytime. Windows/Linux appMode reflects a
+// real user choice and is never touched.
+const STORE_VERSION = 14
interface SettingsState {
settings: Settings
@@ -116,6 +122,13 @@ export const useSettingsStore = create<SettingsState>()(
mergedSettings.preferredVideoT2VModel = ''
mergedSettings.preferredVideoI2VModel = ''
}
+ // v14: reset the force-pinned Mac cloud lock to the local default.
+ if (version < 14) {
+ const isMac = typeof navigator !== 'undefined' &&
+ (/Mac|iPhone|iPad|iPod/.test(navigator.platform || '') ||
+ /Mac OS X|Macintosh/.test(navigator.userAgent || ''))
+ if (isMac) mergedSettings.appMode = 'local'
+ }
return {
...persisted,
settings: mergedSettings,