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.

docs: update CLAUDE.md with auto-update, NSIS fix, plugins dropdown

PurpleDoubleD1540ae1ccfcd
diff --git a/CLAUDE.md b/CLAUDE.md
index 191d8d62..a1eeafc8 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -91,11 +91,16 @@ src-tauri/src/commands/ — Rust commands: install, process, download, prox
54. **Comprehensive Test Suite** — 28 new test files, 837 new tests (607→1444 total, 0 failures). All 22 stores tested, API layer 82%, lib utilities 82%. Fixed 6 stale test assertions (tool-registry counts, ollama options, model-compatibility providers).
+55. **Auto-Update** — Tauri updater plugin (`tauri-plugin-updater`) with signed NSIS installers via GitHub Releases. `latest.json` endpoint auto-generated by CI. In-app download with progress bar in UpdateBadge. User-controlled restart (no auto-restart): "Restart Now" / "Later" buttons after download. Signing keypair generated, public key in `tauri.conf.json`, private key + password in GitHub Secrets. `exit_app` Rust command for clean shutdown during update install. CI workflow updated with `TAURI_SIGNING_PRIVATE_KEY` env vars.
+
+56. **NSIS Onboarding Fix** — Marker file `onboarding_done` in `%APPDATA%/Locally Uncensored/` (Roaming) survives NSIS updates that wipe `%LOCALAPPDATA%` WebView2 data. `is_onboarding_done` + `set_onboarding_done` Rust commands in system.rs. AppShell recovers `onboardingDone` from filesystem when localStorage is empty. Onboarding writes marker file on completion.
+
+57. **Plugins Dropdown Redesign** — Caveman Mode and Personas as separate collapsible dropdown sections with chevron indicators. Only one section open at a time. Current selection shown inline. Clean typography and spacing, dark + light theme support.
+
### What's LEFT to finish v2.3.0:
1. **Tauri proxy_localhost investigation** — reqwest in Tauri subprocess can't reach localhost. Direct fetch workaround in place but root cause unknown. Low priority since workaround works. Deferred to next release.
2. **LTX VAEDecode reference** — dynamic-workflow.ts line 263: vaeSourceId incorrectly points to UNETLoader output for LTX strategy. Fix when LTX model is installed for testing.
3. **Codex file tree auto-refresh** — File tree in Codex tab doesn't update when files are created during a session. Needs refresh button or fs watcher to auto-detect changes.
-4. **Remote Access upgrade** — Currently LAN-only. Needs Cloudflare Tunnel for internet access + simpler numeric passcodes for mobile.
### Files modified in this branch (30+ files):
- `src/api/comfyui.ts` — 8 new ModelTypes (incl. zimage), COMPONENT_REGISTRY, uploadImage(), inputImage/denoise in GenerateParams, findMatchingVAE/CLIP for zimage
@@ -106,7 +111,7 @@ src-tauri/src/commands/ — Rust commands: install, process, download, prox
- `src/api/preflight.ts` — extended needsUnet check for all new model types
- `src-tauri/src/commands/install.rs` — install_custom_node command (camelCase params)
- `src-tauri/src/commands/download.rs` — download_model with resume, progress, speed tracking (camelCase params), 50% threshold for check_model_sizes
-- `src-tauri/src/main.rs` — registered install_custom_node
+- `src-tauri/src/main.rs` — registered install_custom_node, tauri-plugin-updater, exit_app/is_onboarding_done/set_onboarding_done
- `src-tauri/capabilities/default.json` — added shell:allow-open for external links
- `src/components/create/CreateView.tsx` — I2V upload UI, I2I upload zone + denoise slider, Image/Video top-tabs only
- `src/components/create/WorkflowSearchModal.tsx` — openExternal for CivitAI link
@@ -117,14 +122,20 @@ src-tauri/src/commands/ — Rust commands: install, process, download, prox
- `src/components/onboarding/Onboarding.tsx` — comfyui step, drag region, accent dots, VRAM filtering, tool calling badges, re-scan, openExternal, GGUF downloads via startModelDownloadToPath instead of pullModel
- `src/components/settings/SettingsPage.tsx` — ComfyUISettings component
- `src/stores/providerStore.ts` — LM Studio default disabled (auto-detect only)
-- `src/stores/updateStore.ts` — openExternal for release page
+- `src/stores/updateStore.ts` — Tauri updater plugin: check() + download() + install() flow, dev mode GitHub API fallback
- `src/lib/constants.ts` — OnboardingModel: vramGB, uncensored, agent fields, qwen2.5-abliterate typo fix, HF GGUF downloadUrl/filename/sizeGB for all 17 onboarding models
- `src/hooks/useCreate.ts` — i2vImage + i2iImage pass-through, I2I validation, imageSubMode-based generate logic
- `src/lib/constants.ts` — OnboardingModel: vramGB, uncensored, agent fields + mainstream models
- `src/stores/createStore.ts` — i2vImage/i2iImage/denoise/imageSubMode state, persist migration for old 'i2i' mode
- `src/components/create/ParamPanel.tsx` — Z-Image badge, Text to Image / Image to Image sub-tabs, denoise slider
- `src-tauri/src/commands/process.rs` — Windows Job Object for ComfyUI process cleanup on app kill
-- `src-tauri/Cargo.toml` — windows-sys dependency for Job Object API
+- `src-tauri/Cargo.toml` — windows-sys dependency for Job Object API, tauri-plugin-updater
+- `src-tauri/src/commands/system.rs` — exit_app, is_onboarding_done, set_onboarding_done (NSIS update persistence)
+- `src-tauri/tauri.conf.json` — updater plugin config with pubkey + GitHub Releases endpoint, createUpdaterArtifacts
+- `src-tauri/capabilities/default.json` — updater:default permission
+- `src/components/layout/UpdateBadge.tsx` — 5-state update UI: available → downloading (progress) → downloaded (Restart/Later) → installing → error (Retry)
+- `src/components/layout/AppShell.tsx` — onboarding recovery from filesystem marker
+- `.github/workflows/release.yml` — TAURI_SIGNING_PRIVATE_KEY + PASSWORD env vars for signed updater artifacts
- `src/stores/downloadStore.ts` — NEW: unified ComfyUI download tracking (polling, bundle grouping)
- `src/stores/uiStore.ts` — default view changed to 'chat'
- `src/lib/model-compatibility.ts` — added isThinkingCompatible() + THINKING_COMPATIBLE list
@@ -187,5 +198,5 @@ src-tauri/src/commands/ — Rust commands: install, process, download, prox
- Downloads: Use `downloadStore` for all ComfyUI downloads (not component-local state)
-## Test Suite: 1444 tests, 0 failures (50 test files)
+## Test Suite: 1443 tests, 0 failures (50 test files)
All pre-existing test failures have been fixed. Run `npx vitest run` to verify.