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
release: v2.3.4 — reliability hotfix (persistence + Ollama 0.21 + Codex loop guard)
PurpleDoubleDb68b3090c6a3
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b0cc35d2..d5ba5302 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,26 @@All notable changes to Locally Uncensored are documented here.+## [2.3.4] - 2026-04-20++### Fixed+- **Chat history now survives updates** — `isTauri()` was checking the v1 global `window.__TAURI__`, but Tauri 2 renamed it to `window.__TAURI_INTERNALS__`. Inside the packaged `.exe` every Tauri-only backend command (`backup_stores`, `restore_stores`, `set_onboarding_done`, ComfyUI manager, whisper, process control) silently fell through to the dev-mode fetch path and no-op'd. Fix: dual-global check + 100 ms × 50-tick polling loop that waits for the Tauri global to appear before arming the backup triad (required because `withGlobalTauri: true` sets the global asynchronously on slow cold-starts). Full destructive wipe+restore roundtrip live-verified on the release binary.+- **Backup cadence tightened** — safety-net interval 30 s → 5 s; added event-driven debounced backup on every chat mutation (1 s after the last message); added `beforeunload` sync flush for graceful quits. All three legs run unconditionally with a `__ts` marker so the snapshot is always non-empty.+- **Ollama 0.21 / 0.20.7 compatibility** — auto-upgraded Ollama rejects pre-existing models with `HTTP 404 model not found` on `/api/show` when the on-disk manifest lacks the `capabilities` field. New `modelHealthStore` + top-of-app `StaleModelsBanner` + Header Lichtschalter chip detect stale models and offer a one-click re-pull that verifies the fix before clearing the warning. Error parser tolerates 400/404/Rust-proxy-wrapped-500 forms.+- **Stale-chip state leak** — switching from a stale model to a fresh one now clears the red toggle and the inline chip immediately; switching between two different stale models re-pins correctly.+- **Codex infinite-loop guard** — small 3 B coder models (qwen2.5-coder:3b, llama3.2:1b) could loop forever repeating the same `file_write + shell_execute` batch when a test failed. Codex now tracks per-iteration batch signatures and halts after two consecutive identical batches with "same tool sequence repeated N× — try a larger model".+- **Stop button instant** — `abort.signal.aborted` checked at the top of the `for await` chat stream and the NDJSON reader loop; `reader.cancel()` on abort. No more 30–60 s of thinking-token leak after clicking Stop on a Gemma-4 response.+- **`isHtmlSnippet` export missing** — 19 failing CodeBlock tests fixed.+- **Create view crashed silently in browser bundle** — `comfyui.getKnownFileSizes` used CommonJS `require('../api/discover')` which Vite/Rolldown can't resolve. Replaced with dynamic `import()`.+- **flux2 CFG scale test regression** — test asserted 3.5 (Z-Image default); corrected to 1.0 (flux2 default).++### Changed+- Test suite 2105 → 2161 green (+56 regression tests covering backup triad, Codex loop detection, `__TAURI_INTERNALS__` detection, stale-manifest parsing).++### Notes+- No breaking changes. Existing chats and settings survive the upgrade via the now-working restore path.+- Existing `phi4:14b`, `dolphin3:8b`, and other pre-0.15 Ollama models will show in the stale banner. Click "Refresh all" to re-pull; manifests will be regenerated with the new `capabilities` field.+## [2.2.1] - 2026-04-04### Fixeddiff --git a/CLAUDE.md b/CLAUDE.mdindex 4f065b26..75a810b0 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -3,9 +3,9 @@## Project OverviewPlug and Play for the Mass Desktop AI app (Tauri + React + TypeScript) for local LLM chat, image and video generation via ComfyUI.- **Repo:** PurpleDoubleD/locally-uncensored (35+ stars)-- **Current public version:** v2.3.3 (merging to master 2026-04-16)-- **Branch:** `feature/agent-overhaul-v24` merged into master-- Test iterations 2.3.4–2.3.7 were intermediate, not shipped. **2.3.3 is the next public version.**+- **Current public version:** v2.3.4 (released 2026-04-20 — Bug #7 persistence fix + Ollama 0.21 compat + Codex loop guard)+- **Branch:** master (all recent work landed)+- v2.3.3 shipped 2026-04-16 as a feature release (Remote Access + Codex streaming + Agent Overhaul + ERNIE + Qwen 3.6). v2.3.4 is a reliability hotfix on top — same feature surface, critical bugs gone.## Tech Stack- **Frontend:** React 19, Zustand, Tailwind CSS 4, Framer Motion, Vite 8diff --git a/README.md b/README.mdindex 13b1ce73..0d30c581 100644--- a/README.md+++ b/README.md@@ -34,9 +34,19 @@ No cloud. No data collection. No API keys. Auto-detects 12 local backends. Your----## v2.3.3 — Current Release+## v2.3.4 — Current Release-**Remote Access, Codex Streaming, Qwen 3.6 Day-0, ERNIE-Image, 2105 Tests**+**Chat-history persistence fix, Ollama 0.21 compatibility, Codex loop guard, 2161 Tests**++### Critical Fixes (why you want this update)+- **Chat history now survives updates** — NSIS auto-update, crashes, and abrupt process kills no longer wipe your conversations. `isTauri()` detection was broken in the v1→v2 migration, causing every backup/restore call to silently no-op. Fixed with dual-global detection + async-init polling + 5 s backup interval + event-driven + graceful-quit flush. Fully live-verified: destructive wipe + restore roundtrip confirmed on the release binary.+- **Ollama 0.21 / 0.20.7 compatibility** — the auto-upgraded Ollama now rejects pre-existing models with `HTTP 404 model not found` on `/api/show` when their on-disk manifest lacks the new `capabilities` field. New top-of-app banner + Header Lichtschalter chip detect stale models and offer a one-click re-pull that verifies the fix before clearing the warning.+- **Codex infinite-loop guard** — small 3 B coder models could get stuck repeating the same `file_write + shell_execute` batch forever when a test failed. Codex now halts with a clear "same tool sequence repeated — try a larger model" message.+- **Stop button now instant** — abort signal checked between chunks in the for-await and NDJSON-reader loops. Thinking tokens no longer leak for 30–60 s after you click Stop on a Gemma-4 thinking response.+- **Stale-chip state-leak** — switching from a stale model to a fresh one now clears the red toggle and chip immediately.++### What's still in v2.3.4 from v2.3.3+This is a hotfix release — v2.3.3's feature surface is unchanged.### Remote Access + Mobile Web App- **Access your AI from your phone** — Dispatch via LAN or Cloudflare Tunnel (Internet)@@ -67,7 +77,7 @@ No cloud. No data collection. No API keys. Auto-detects 12 local backends. Your- **AE-style text header** — clean typography for better discoverability- **Plugins dropdown** — Caveman Mode + Personas in one menu- **Thinking mode** — tri-state, auto-retry, universal tag stripper-- **2105 tests** — comprehensive smoke tests covering the entire app+- **2161 tests** — comprehensive smoke tests covering the entire app---diff --git a/docs/index.html b/docs/index.htmlindex 8ca897d7..60e2e525 100644--- a/docs/index.html+++ b/docs/index.html@@ -34,7 +34,7 @@<link rel="icon" href="https://locallyuncensored.com/favicon.png"><link rel="apple-touch-icon" href="https://locallyuncensored.com/favicon.png"><script type="application/ld+json">-{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Locally Uncensored","alternateName":["LU","Locally Uncensored Desktop App"],"applicationCategory":"DeveloperApplication","applicationSubCategory":"Artificial Intelligence","operatingSystem":"Windows 10, Windows 11, Linux","description":"Desktop app for running Qwen 3.6, GPT-OSS, GLM-4.7, DeepSeek R1, Llama 4, Gemma 4, Mistral Small 3, Phi 4, FLUX 2, Juggernaut XL, Z-Image, Wan 2.1, HunyuanVideo, LTX 2.3, FramePack F1 and 70+ other AI models locally. Chat, code, images, video in one interface. Twelve backends auto-detected, no cloud required.","url":"https://locallyuncensored.com/","downloadUrl":"https://github.com/PurpleDoubleD/locally-uncensored/releases/latest","softwareVersion":"2.3.3","license":"https://www.gnu.org/licenses/agpl-3.0.html","author":{"@type":"Person","name":"PurpleDoubleD","url":"https://github.com/PurpleDoubleD"},"offers":{"@type":"Offer","price":"0","priceCurrency":"USD","availability":"https://schema.org/InStock"},"featureList":["Plug & Play Setup with 12 Local Backend Auto-Detection (Ollama, LM Studio, vLLM, KoboldCpp, Jan, llama.cpp, LocalAI, GPT4All, TabbyAPI, Aphrodite, SGLang, TGI)","20+ Provider Presets (local + cloud)","Qwen 3.6 Day-0 Support (35B MoE, Vision, Agentic Coding, 256K context)","GPT-OSS Compatible (120B, 20B via Ollama)","GLM-4.7 Flash Integration","DeepSeek R1 and DeepSeek V3 Support","Llama 4 and Llama 3.3 Ready","Gemma 4 E4B and 27B (Native Vision)","Mistral Small 3 and Phi 4 Support","Qwen 3 Coder and Qwen 2.5 Coder","Abliterated Model Variants","Codex Coding Agent with Live Streaming and Apply-Patch","Claude Code CLI Integration","Agent Mode with 14 Tools, Parallel Execution, MCP, Sub-Agent Delegation","Remote Access from Phone via LAN or Cloudflare Tunnel (6-digit Passcode, QR Setup)","Mobile Web App (Chat, Codex, Tools, Plugins)","Image Generation via ComfyUI (FLUX 2 Klein, FLUX.1, Juggernaut XL, Z-Image Turbo, ERNIE-Image, SDXL, SD 3.5)","Video Generation (Wan 2.1, Wan 2.2, HunyuanVideo 1.5, LTX 2.3, FramePack F1, AnimateDiff, CogVideoX)","Image-to-Image with Denoise Control","Image-to-Video (FramePack F1, CogVideoX, SVD)","Granular Permission System (7 Tool Categories)","File Upload with Vision Support","Thinking Mode with Universal Tag Stripping","A/B Model Compare","Local Benchmark","Memory System and Document RAG","Voice (STT / TTS)","Auto-Update over Signed NSIS Channel","75+ One-Click Model Downloads","Hardware-Aware Model Recommendations","100% Offline and Private (No Telemetry)","AGPL-3.0 Open Source"],"screenshot":"https://raw.githubusercontent.com/PurpleDoubleD/locally-uncensored/master/docs/social-preview.png","softwareRequirements":"Any OpenAI-compatible local backend (Ollama, LM Studio, vLLM, KoboldCpp, etc.) or cloud API key","memoryRequirements":"8 GB RAM minimum; 8-16 GB VRAM for image/video generation","storageRequirements":"6 GB for default model"}+{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Locally Uncensored","alternateName":["LU","Locally Uncensored Desktop App"],"applicationCategory":"DeveloperApplication","applicationSubCategory":"Artificial Intelligence","operatingSystem":"Windows 10, Windows 11, Linux","description":"Desktop app for running Qwen 3.6, GPT-OSS, GLM-4.7, DeepSeek R1, Llama 4, Gemma 4, Mistral Small 3, Phi 4, FLUX 2, Juggernaut XL, Z-Image, Wan 2.1, HunyuanVideo, LTX 2.3, FramePack F1 and 70+ other AI models locally. Chat, code, images, video in one interface. Twelve backends auto-detected, no cloud required.","url":"https://locallyuncensored.com/","downloadUrl":"https://github.com/PurpleDoubleD/locally-uncensored/releases/latest","softwareVersion":"2.3.4","license":"https://www.gnu.org/licenses/agpl-3.0.html","author":{"@type":"Person","name":"PurpleDoubleD","url":"https://github.com/PurpleDoubleD"},"offers":{"@type":"Offer","price":"0","priceCurrency":"USD","availability":"https://schema.org/InStock"},"featureList":["Plug & Play Setup with 12 Local Backend Auto-Detection (Ollama, LM Studio, vLLM, KoboldCpp, Jan, llama.cpp, LocalAI, GPT4All, TabbyAPI, Aphrodite, SGLang, TGI)","20+ Provider Presets (local + cloud)","Qwen 3.6 Day-0 Support (35B MoE, Vision, Agentic Coding, 256K context)","GPT-OSS Compatible (120B, 20B via Ollama)","GLM-4.7 Flash Integration","DeepSeek R1 and DeepSeek V3 Support","Llama 4 and Llama 3.3 Ready","Gemma 4 E4B and 27B (Native Vision)","Mistral Small 3 and Phi 4 Support","Qwen 3 Coder and Qwen 2.5 Coder","Abliterated Model Variants","Codex Coding Agent with Live Streaming and Apply-Patch","Claude Code CLI Integration","Agent Mode with 14 Tools, Parallel Execution, MCP, Sub-Agent Delegation","Remote Access from Phone via LAN or Cloudflare Tunnel (6-digit Passcode, QR Setup)","Mobile Web App (Chat, Codex, Tools, Plugins)","Image Generation via ComfyUI (FLUX 2 Klein, FLUX.1, Juggernaut XL, Z-Image Turbo, ERNIE-Image, SDXL, SD 3.5)","Video Generation (Wan 2.1, Wan 2.2, HunyuanVideo 1.5, LTX 2.3, FramePack F1, AnimateDiff, CogVideoX)","Image-to-Image with Denoise Control","Image-to-Video (FramePack F1, CogVideoX, SVD)","Granular Permission System (7 Tool Categories)","File Upload with Vision Support","Thinking Mode with Universal Tag Stripping","A/B Model Compare","Local Benchmark","Memory System and Document RAG","Voice (STT / TTS)","Auto-Update over Signed NSIS Channel","75+ One-Click Model Downloads","Hardware-Aware Model Recommendations","100% Offline and Private (No Telemetry)","AGPL-3.0 Open Source"],"screenshot":"https://raw.githubusercontent.com/PurpleDoubleD/locally-uncensored/master/docs/social-preview.png","softwareRequirements":"Any OpenAI-compatible local backend (Ollama, LM Studio, vLLM, KoboldCpp, etc.) or cloud API key","memoryRequirements":"8 GB RAM minimum; 8-16 GB VRAM for image/video generation","storageRequirements":"6 GB for default model"}</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","name":"PurpleDoubleD","url":"https://github.com/PurpleDoubleD","logo":"https://locallyuncensored.com/logos/LU-monogram-bw-transparent.png","sameAs":["https://github.com/PurpleDoubleD","https://github.com/PurpleDoubleD/locally-uncensored","https://reddit.com/user/GroundbreakingMall54","https://locallyuncensored.com"]}@@ -828,7 +828,7 @@ footer a:hover{color:var(--fg)}<!-- Top meta strip --><div class="mast-strip">- <span class="numero">v 2.3.3</span>+ <span class="numero">v 2.3.4</span><span class="sep">·</span><span>AGPL-3.0</span><span class="sep">·</span>@@ -868,7 +868,7 @@ footer a:hover{color:var(--fg)}<div class="container"><div class="dl-card"><div class="dl-info">- <h3>Locally Uncensored <em>— 2.3.3</em></h3>+ <h3>Locally Uncensored <em>— 2.3.4</em></h3><p>WINDOWS · ~152 MB · AGPL-3.0</p></div><a class="dl-btn" href="https://github.com/PurpleDoubleD/locally-uncensored/releases/latest">@@ -1152,7 +1152,7 @@ footer a:hover{color:var(--fg)}<div class="narrow"><div class="dl-card"><div class="dl-info">- <h3>Locally Uncensored <em>— 2.3.3</em></h3>+ <h3>Locally Uncensored <em>— 2.3.4</em></h3><p>WINDOWS · ~152 MB · AGPL-3.0</p></div><a class="dl-btn" href="https://github.com/PurpleDoubleD/locally-uncensored/releases/latest">diff --git a/package.json b/package.jsonindex 1e187611..a22fed70 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "locally-uncensored",- "version": "2.3.3",+ "version": "2.3.4","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 f0a3376d..13703b24 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -2508,7 +2508,7 @@ dependencies = [[[package]]name = "locally-uncensored"-version = "2.3.3"+version = "2.3.4"dependencies = ["axum","base64 0.22.1",diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex 4bece290..7e0e7c1c 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "locally-uncensored"-version = "2.3.3"+version = "2.3.4"description = "Private, local AI chat & image/video generation"authors = ["purpledoubled"]edition = "2021"diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 348a4d1a..e8a891d9 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": "Locally Uncensored",- "version": "2.3.3",+ "version": "2.3.4","identifier": "com.purpledoubled.locally-uncensored","build": {"beforeBuildCommand": "npm run build",