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: text model downloads + isInstalled + HF fallback path
PurpleDoubleD12089f7338c4
diff --git a/CLAUDE.md b/CLAUDE.mdindex d329971d..aef77c73 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -27,7 +27,7 @@ src-tauri/src/commands/ — Rust commands: install, process, download, prox## Current Work: v2.3.0 (branch: full-comfyui-fix)-### What's DONE (160 tests passing, committed c27d20c):+### What's DONE (601 tests passing):1. **7 new ModelTypes:** mochi, cosmos, cogvideo, svd, framepack, pyramidflow, allegro2. **7 new WorkflowStrategies** with complete node chains for each model3. **14 video bundles + 6 image bundles** in discover.ts with HuggingFace URLs@@ -46,10 +46,13 @@ src-tauri/src/commands/ — Rust commands: install, process, download, prox16. **Default view = chat homepage** (Startseite with LU logo), not Model Manager17. **6 uncensored video bundles** (Wan 2.1 x2, HunyuanVideo, CogVideoX x2, FramePack)18. **LTX bug fixed** — workflow was 'wan' instead of 'ltx'+19. **Text model download UX complete** — Ollama pull with streaming progress, HF GGUF with auto-fallback path, both tracked in unified DownloadBadge+20. **isInstalled prefix-match** — Ollama models without tag (hermes3) match installed variants (hermes3:8b)+21. **All 3 download flows Tauri-verified** — Ollama pull (events), HF GGUF (invoke), ComfyUI bundles (invoke) — all arg mappings, command registrations, progress polling confirmed### What's LEFT to finish v2.3.0:-1. **Text model download UX** — Ollama pull works, HF GGUF downloads need LM Studio or compatible provider path. Error message added but could be more user-friendly.-2. **E2E workflow test** — verify that downloaded models actually generate images/videos in ComfyUI (all files confirmed on disk in correct paths)+1. **E2E workflow test** — verify that downloaded models actually generate images/videos in ComfyUI (all files confirmed on disk in correct paths)+2. **Tauri build E2E test** — build .exe, run all 3 download flows (Ollama pull, HF GGUF, ComfyUI bundle), verify in production### What was FIXED (download overhaul):1. **install_custom_node camelCase bug** — Tauri 2 expects camelCase args (repoUrl/nodeName), was sending snake_case. Fixed in discover.ts + vite.config.ts@@ -62,8 +65,12 @@ src-tauri/src/commands/ — Rust commands: install, process, download, prox8. **Dev-mode endpoints added** — detect_model_path + download_model_to_path for HF GGUF downloads9. **All 38 ComfyUI URLs verified HTTP 200, all 24 HF GGUF URLs verified, all 29 Ollama models exist**10. **All 19 bundles tested in live app — 0 errors, all files confirmed on disk**+11. **setHfModels runtime error** — handleRefresh() called undefined setHfModels(). Fixed: HF refresh now clears search + re-detects model path+12. **Dev-mode detect-model-path fallback** — returned null without LM Studio. Now falls back to ~/locally-uncensored/models/ (parity with Rust)+13. **isInstalled prefix-match for Ollama** — `hermes3` now matches installed `hermes3:8b`. Was: exact match only, never showed INSTALLED badge+14. **pullModel fetchModels error isolation** — fetchModels() error after completePull() no longer swallows the entire success path-### Files modified in this branch (23 files, +3051 lines):+### Files modified in this branch (23+ files):- `src/api/comfyui.ts` — 7 new ModelTypes, COMPONENT_REGISTRY, uploadImage(), inputImage in VideoParams- `src/api/dynamic-workflow.ts` — 7 new strategies, 5 wrapper builders, inputImage support in SVD/FramePack- `src/api/comfyui-nodes.ts` — 30+ new nodes in categorization mappingdiff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsxindex 8fef23f1..1b1660fc 100644--- a/src/components/models/DiscoverModels.tsx+++ b/src/components/models/DiscoverModels.tsx@@ -317,7 +317,13 @@ export function DiscoverModels({ category }: Props) {: vramFilteredBundlesconst isInstalled = (name: string) => {- return installedModels.some((m) => m.name === name)+ // Exact match (e.g., "hermes3:8b" === "hermes3:8b")+ if (installedModels.some((m) => m.name === name)) return true+ // Prefix match for Ollama models without tag (e.g., "hermes3" matches "hermes3:8b" or "hermes3:latest")+ if (!name.includes(':')) {+ return installedModels.some((m) => m.name === name + ':latest' || m.name.startsWith(name + ':'))+ }+ return false}const handleDownload = async (model: DiscoverModel) => {@@ -440,15 +446,22 @@ export function DiscoverModels({ category }: Props) {const handleRefresh = () => {setLoading(true)- if (isOllama) fetchAbliteratedModels().then(m => { setTextModels(m); setLoading(false) })- else { setHfModels(getHuggingFaceModels()); setLoading(false) }+ if (isOllama) {+ fetchAbliteratedModels().then(m => { setTextModels(m); setLoading(false) })+ } else {+ // HF curated lists are static — just re-detect model path and clear search results+ setHfSearchResults([])+ const providerName = providers.openai?.name || 'LM Studio'+ detectProviderModelPath(providerName).then(path => setHfModelPath(path))+ setLoading(false)+ }}const handleHfDownload = async (model: DiscoverModel) => {if (!model.downloadUrl || !model.filename) return- const destDir = hfModelPath || (await detectProviderModelPath(providers.openai?.name || 'fallback'))+ const destDir = hfModelPath || (await detectProviderModelPath(providers.openai?.name || 'LM Studio'))if (!destDir) {- setInstallError('No model directory found. Install LM Studio or configure an OpenAI-compatible provider with a local model path first.')+ setInstallError('Could not determine model directory. Please check app permissions.')return}setHfModelPath(destDir)diff --git a/src/hooks/useModels.ts b/src/hooks/useModels.tsindex d49bbeb7..367dcb07 100644--- a/src/hooks/useModels.ts+++ b/src/hooks/useModels.ts@@ -92,7 +92,7 @@ export function useModels() {try {await promisecompletePull(name)- await fetchModels()+ try { await fetchModels() } catch { /* model list refresh failed — non-critical */ }// Auto-dismiss after 5ssetTimeout(() => dismissPull(name), 5000)} catch {diff --git a/vite.config.ts b/vite.config.tsindex 2e66b940..c4b70877 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -455,8 +455,12 @@ function comfyLauncher(): Plugin {res.writeHead(200, { 'Content-Type': 'application/json' })res.end(JSON.stringify(found))} else {+ // Fallback: create LU models directory (same as Rust backend)+ const { mkdirSync } = require('fs')+ const fallback = join(home, 'locally-uncensored', 'models')+ try { mkdirSync(fallback, { recursive: true }) } catch {}res.writeHead(200, { 'Content-Type': 'application/json' })- res.end(JSON.stringify(null))+ res.end(JSON.stringify(fallback))}} catch {res.writeHead(200, { 'Content-Type': 'application/json' })