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
hotfix v2.4.5: 4 bug fixes for the v2.4.4 follow-up sweep
purpled4977ea9c817
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5710004b..e8ef4f6a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,31 @@ All notable changes to Locally Uncensored are documented here.## [Unreleased]+## [2.4.5] - 2026-05-17++Drop-in hotfix on top of v2.4.4. Four user-reported bugs and two carry-forward defensive fixes, collected from Discord, Reddit, and GitHub Discussions between v2.4.4-release (2026-05-11) and 2026-05-17.++### Fixed — image / video creation+- **Video output now actually produces `.mp4` files** (Bug A — miguelkodoatie Discord 14.05., Turbulent_Tomato7559 Reddit 10.05.). v2.4.4 added a warning when ComfyUI lacked `VHS_VideoCombine`, but the fallback to `SaveAnimatedWEBP` still produced an animated `.webp` "image" instead of a video. v2.4.5 turns the warning into a blocking modal with three options: install VHS now (one-click git clone + pip + ComfyUI restart, ~30 s), continue with `.webp`, or cancel. New entry `videohelpersuite` added to `CUSTOM_NODE_REGISTRY` in `src/api/discover.ts`, new `VhsInstallModal` component in `CreateView`, and a Promise-resolver bridge in `createStore.vhsInstallPrompt` so `useCreate.generate()` can await the user's choice. The install path re-builds the workflow after ComfyUI comes back, so the user gets a proper MP4 on the same Generate click instead of having to retry.++### Fixed — onboarding / startup+- **"ComfyUI loading..." now surfaces actionable UI after 60 s** (Bug B — dethlux GH #38). The previous indefinite spinner gave no diagnosis when ComfyUI's process was alive but its web server never responded (CUDA OOM, missing wheels, custom-node import crash). After a 60 s grace period, the banner now shows the elapsed time, an inline log viewer (last 30 lines of `comfyui_status.logs`), a "Kill process" button (calls existing `stop_comfyui` Tauri command), and the existing Restart button — so the user can either fix it from the logs or recover without restarting LU.++### Fixed — chat / Ollama+- **One-click repair for "unable to load model: …blobs/sha256-…" errors** (Bug C — Anson192 GH Discussion #39, RTX 4090). Ollama returns HTTP 500 with that error string when the model's manifest references a blob that isn't on disk (manual deletion, external drive offline at pull time, filesystem corruption). v2.4.5 adds a new `OllamaErrorKind = 'missing-blob'` classification in `src/lib/ollama-errors.ts` with a regex matching `unable to load model[:\s].*blobs[\\/]+sha256-[0-9a-f]+`. The error string carries only the blob hash, so `parseOllamaError` accepts an optional `fallbackModel` argument that `loadModel`, `OllamaProvider.chatStream`, and `OllamaProvider.chatWithTools` now pass through. `Header.tsx` treats missing-blob the same way as stale-manifest — the Lichtschalter's existing one-click "Refresh" button now also repairs missing-blob via `ollama pull <name>`.++### Fixed — Linux / AppImage+- **Arch / Wayland AppImage now actually paints content** (Bug D — emilmjt Discord 11.05.). The "empty window" symptom on Arch is Tauri 2 + webkit2gtk-4.1 silently failing on DMABUF buffer-sharing and DMA-compositing paths on certain Mesa versions (tauri-apps/tauri#9304). `src-tauri/src/main.rs` now sets `WEBKIT_DISABLE_DMABUF_RENDERER=1` and `WEBKIT_DISABLE_COMPOSITING_MODE=1` at startup on Linux, falling back to software composite — same workaround the GNOME and KDE maintainers recommend. Only set when the user hasn't already exported the vars themselves. `tauri.conf.json` also now declares explicit `bundle.linux.deb.depends` and `bundle.linux.rpm.depends` for `webkit2gtk-4.1`, `gtk3`, and `libayatana-appindicator3-1`, and enables `bundleMediaFramework` on AppImage so gstreamer plugins ship inside the AppImage instead of relying on the host distribution.++### Tests+- `vitest`: +7 new tests for `parseOllamaError` missing-blob coverage in `src/lib/__tests__/ollama-errors.test.ts` (Anson192 verbatim error, generic no-fallback-model, forward+back-slash tolerance, Rust-proxy wrapping, chat-style message wording with + without model).+- `cargo check --release`: clean (1 dead-code warning on unused `save_binary_file_dialog`, pre-existing).+- `tsc --noEmit`: clean.++### Verification+- Live E2E on Windows 10 + RTX 3060 Ti via Computer-Use: Bug A (modal triggers correctly when `VHS_VideoCombine` is removed, install path completes + restarts ComfyUI + produces MP4), Bug B (kill-after-60s flow stops a stuck ComfyUI cleanly), Bug C (missing-blob banner appears + `ollama pull` repairs).+- Bug D verification pending Arch VirtualBox VM (no Linux box on dev machine) — env-var workaround is the documented upstream-recommended fix for the symptom class.+## [2.4.4] - 2026-05-11Hotfix sweep covering the v2.4.3 follow-up reports collected on Discord, Reddit, and GitHub Discussions between 2026-05-04 and 2026-05-11. Eight fixes total — six tied to specific Discord/Reddit reporters, one Reddit issue, and one GitHub Discussion (vokurta — RTX 6000 Blackwell, posted the same morning this sweep landed).diff --git a/package.json b/package.jsonindex aa270d31..9bff5716 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "locally-uncensored",- "version": "2.4.4",+ "version": "2.4.5","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 8f407bfa..5e749cee 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -2508,7 +2508,7 @@ dependencies = [[[package]]name = "locally-uncensored"-version = "2.4.4"+version = "2.4.5"dependencies = ["axum","base64 0.22.1",diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex 2ea2dc41..73dc214b 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "locally-uncensored"-version = "2.4.4"+version = "2.4.5"description = "Private, local AI chat & image/video generation"authors = ["purpledoubled"]edition = "2021"diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rsindex f5f2082b..945bd0c5 100644--- a/src-tauri/src/main.rs+++ b/src-tauri/src/main.rs@@ -14,6 +14,26 @@ use tauri::{};fn main() {+ // Bug D (v2.4.5 — emilmjt Discord 2026-05-11): on Arch Linux + Wayland+ // and on a handful of Mesa versions, Tauri 2's webkit2gtk-4.1 webview+ // initialises with DMABUF buffer-sharing or DMA-compositing enabled+ // and the GPU path silently fails — the window opens but the page+ // never paints, so the user sees an empty rectangle. Disabling those+ // two paths forces webkit back onto the slower-but-reliable software+ // composite, which is the same workaround the GNOME, KDE, and Tauri+ // upstream maintainers recommend (tauri-apps/tauri#9304, GNOME+ // GitLab #1731). Only applied when the user hasn't already set the+ // vars themselves — power users with a working DMABUF setup keep it.+ #[cfg(target_os = "linux")]+ {+ if std::env::var_os("WEBKIT_DISABLE_DMABUF_RENDERER").is_none() {+ std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");+ }+ if std::env::var_os("WEBKIT_DISABLE_COMPOSITING_MODE").is_none() {+ std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");+ }+ }+let app_state = AppState::new();tauri::Builder::default()diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex d1bee5d8..7157cbd8 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.4.4",+ "version": "2.4.5","identifier": "com.purpledoubled.locally-uncensored","build": {"beforeBuildCommand": "npm run build",@@ -62,6 +62,25 @@"headerImage": "icons/nsis-header.bmp","sidebarImage": "icons/nsis-sidebar.bmp"}+ },+ "linux": {+ "appimage": {+ "bundleMediaFramework": true+ },+ "deb": {+ "depends": [+ "libwebkit2gtk-4.1-0",+ "libgtk-3-0",+ "libayatana-appindicator3-1"+ ]+ },+ "rpm": {+ "depends": [+ "webkit2gtk4.1",+ "gtk3",+ "libappindicator-gtk3"+ ]+ }}}}diff --git a/src/api/__tests__/comfyui-bundles.test.ts b/src/api/__tests__/comfyui-bundles.test.tsindex f8008787..f6247f30 100644--- a/src/api/__tests__/comfyui-bundles.test.ts+++ b/src/api/__tests__/comfyui-bundles.test.ts@@ -104,8 +104,18 @@ describe('Custom Node Registry', () => {expect(new Set(repos).size).toBe(repos.length)})- it('has 5 custom node entries', () => {- expect(Object.keys(CUSTOM_NODE_REGISTRY).length).toBe(5)+ it('has 6 custom node entries', () => {+ // v2.4.5 added 'videohelpersuite' for Bug A (MP4 video output) — when this+ // registry grows again, bump the number AND add a smoke test below for the+ // new entry so future drift is loud.+ expect(Object.keys(CUSTOM_NODE_REGISTRY).length).toBe(6)+ })++ it('videohelpersuite entry routes to Kosinkadink upstream', () => {+ const entry = CUSTOM_NODE_REGISTRY['videohelpersuite']+ expect(entry).toBeTruthy()+ expect(entry.repo).toBe('https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite')+ expect(entry.requiredNodes).toContain('VHS_VideoCombine')})})diff --git a/src/api/discover.ts b/src/api/discover.tsindex 0c0ff071..f87d95da 100644--- a/src/api/discover.ts+++ b/src/api/discover.ts@@ -1031,6 +1031,18 @@ export const CUSTOM_NODE_REGISTRY: Record<string, { repo: string; name: string;name: 'ComfyUI-Allegro',requiredNodes: ['AllegroModelLoader', 'AllegroTextEncode', 'AllegroSampler', 'AllegroDecoder'],},+ // VHS_VideoCombine — the ONLY ComfyUI node that produces actual .mp4 video+ // output. Without it, the workflow falls back to SaveAnimatedWEBP which+ // makes "video generation" emit an animated .webp file. Two reporters+ // (miguelkodoatie on Discord 2026-05-14, Turbulent_Tomato7559 on Reddit+ // 2026-05-10) hit this on v2.4.3/2.4.4: t2i works, t2v "succeeds" but the+ // output is a .webp that no video player will open. v2.4.4 added a+ // warning banner; v2.4.5 makes it a one-click install instead.+ 'videohelpersuite': {+ repo: 'https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite',+ name: 'ComfyUI-VideoHelperSuite',+ requiredNodes: ['VHS_VideoCombine', 'VHS_LoadVideo'],+ },}export interface ModelBundle {diff --git a/src/api/ollama.ts b/src/api/ollama.tsindex 4f729c16..588d6695 100644--- a/src/api/ollama.ts+++ b/src/api/ollama.ts@@ -275,7 +275,9 @@ export async function loadModel(name: string): Promise<void> {})if (!res.ok) {const { parseOllamaError, ModelLoadError } = await import("../lib/ollama-errors")- const parsed = await parseOllamaError(res, `HTTP ${res.status}`)+ // Pass the active name in as fallbackModel — Bug C missing-blob errors+ // only carry the on-disk blob hash, not the model name.+ const parsed = await parseOllamaError(res, `HTTP ${res.status}`, name)console.warn(`[ollama] failed to load model "${name}":`, res.status, parsed.message)throw new ModelLoadError(parsed, name)}diff --git a/src/api/providers/ollama-provider.ts b/src/api/providers/ollama-provider.tsindex 2662d1d7..e448424d 100644--- a/src/api/providers/ollama-provider.ts+++ b/src/api/providers/ollama-provider.ts@@ -109,7 +109,7 @@ export class OllamaProvider implements ProviderClient {if (!res.ok) {throw new ProviderError(- await this.extractError(res, 'Chat failed'),+ await this.extractError(res, 'Chat failed', model),'ollama', 'network', res.status,)}@@ -178,7 +178,7 @@ export class OllamaProvider implements ProviderClient {if (!res.ok) {throw new ProviderError(- await this.extractError(res, 'Tool calling failed'),+ await this.extractError(res, 'Tool calling failed', model),'ollama', 'network', res.status,)}@@ -244,13 +244,15 @@ export class OllamaProvider implements ProviderClient {// ── Helpers ────────────────────────────────────────────────- private async extractError(res: Response, fallback: string): Promise<string> {+ private async extractError(res: Response, fallback: string, model?: string): Promise<string> {try {// Share the detection logic with loadModel / unloadModel via ollama-errors.// The regex there matches chat, completion, AND generate (the Lichtschalter// path uses /api/generate with an empty prompt for preload — same error class).+ // Bug C: thread the request's `model` arg through so missing-blob errors,+ // which only carry the on-disk blob hash, can name the model in the UI.const { parseOllamaError, chatStyleMessage } = await import('../../lib/ollama-errors')- const parsed = await parseOllamaError(res, fallback)+ const parsed = await parseOllamaError(res, fallback, model)return chatStyleMessage(parsed)} catch {return fallbackdiff --git a/src/components/create/CreateView.tsx b/src/components/create/CreateView.tsxindex 31afae7d..540db49b 100644--- a/src/components/create/CreateView.tsx+++ b/src/components/create/CreateView.tsx@@ -1,16 +1,85 @@import { useEffect, useState, useCallback, useRef } from 'react'-import { Image, Video, WifiOff, Loader2, AlertTriangle, RefreshCw, Settings, FolderOpen, HardDriveDownload, CheckCircle2, XCircle, Download, Pause, Play, X as XIcon, Upload, ImagePlus, PackageOpen } from 'lucide-react'+import { Image, Video, WifiOff, Loader2, AlertTriangle, RefreshCw, Settings, FolderOpen, HardDriveDownload, CheckCircle2, XCircle, Download, Pause, Play, X as XIcon, Upload, ImagePlus, PackageOpen, FileVideo } from 'lucide-react'import { backendCall } from '../../api/backend'import { freeMemory, uploadImage, classifyModel } from '../../api/comfyui'import { startModelDownload, getDownloadProgress, pauseDownload, cancelDownload, resumeDownload } from '../../api/discover'import { useCreate } from '../../hooks/useCreate'import { useCreateStore } from '../../stores/createStore'import { useUIStore } from '../../stores/uiStore'+import { Modal } from '../ui/Modal'import { PromptInput } from './PromptInput'import { ParamPanel } from './ParamPanel'import { OutputDisplay } from './OutputDisplay'import { Gallery } from './Gallery'+/**+ * Bug A (v2.4.5): one-click install of VHS_VideoCombine so video generation+ * produces actual .mp4 files instead of animated .webp fallbacks. Pops when+ * useCreate detects webpOnly capability and sets vhsInstallPrompt in the+ * store; resolves with the user's choice and useCreate continues / cancels.+ */+function VhsInstallModal() {+ const vhsInstallPrompt = useCreateStore((s) => s.vhsInstallPrompt)+ const open = vhsInstallPrompt !== null++ const choose = (choice: 'install' | 'webp' | 'cancel') => {+ if (vhsInstallPrompt) vhsInstallPrompt(choice)+ }++ return (+ <Modal open={open} onClose={() => choose('cancel')} title="Install MP4 support?">+ <div className="space-y-4 text-sm text-gray-200">+ <div className="flex items-start gap-3 p-3 rounded-lg bg-yellow-500/5 border border-yellow-500/15">+ <FileVideo size={18} className="text-yellow-400 shrink-0 mt-0.5" />+ <div className="space-y-1.5">+ <p className="text-yellow-200 font-medium text-[13px]">+ Your ComfyUI doesn't have <code className="px-1 py-0.5 rounded bg-black/40 text-yellow-300 font-mono text-[11px]">VHS_VideoCombine</code>+ </p>+ <p className="text-[11px] text-yellow-100/80 leading-relaxed">+ Without it, video generation falls back to <code className="font-mono text-[10px] bg-black/40 px-1 rounded">SaveAnimatedWEBP</code> and produces an animated <code className="font-mono text-[10px] bg-black/40 px-1 rounded">.webp</code> file instead of a real <code className="font-mono text-[10px] bg-black/40 px-1 rounded">.mp4</code> video.+ </p>+ </div>+ </div>++ <div className="text-[11px] text-gray-400 leading-relaxed">+ The installer runs <code className="font-mono bg-white/5 px-1 rounded">git clone</code> on{' '}+ <a+ href="https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"+ target="_blank"+ rel="noreferrer"+ className="text-blue-400 hover:text-blue-300 underline"+ >+ Kosinkadink/ComfyUI-VideoHelperSuite+ </a>+ {' '}(~5 MB) into your <code className="font-mono bg-white/5 px-1 rounded">ComfyUI/custom_nodes/</code> folder, runs <code className="font-mono bg-white/5 px-1 rounded">pip install</code> for its requirements, and restarts ComfyUI. Takes about 30 seconds.+ </div>++ <div className="flex flex-col gap-2 pt-1">+ <button+ onClick={() => choose('install')}+ className="w-full px-4 py-2 rounded-lg bg-blue-500/20 hover:bg-blue-500/30 border border-blue-500/30 text-blue-200 text-sm font-medium transition-colors flex items-center justify-center gap-2"+ >+ <Download size={14} />+ Install VHS_VideoCombine + continue+ </button>+ <button+ onClick={() => choose('webp')}+ className="w-full px-4 py-2 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 text-gray-300 text-xs font-medium transition-colors"+ >+ Continue anyway with animated .webp+ </button>+ <button+ onClick={() => choose('cancel')}+ className="w-full px-4 py-1.5 rounded-lg hover:bg-white/5 text-gray-500 hover:text-gray-300 text-xs transition-colors"+ >+ Cancel generation+ </button>+ </div>+ </div>+ </Modal>+ )+}+/** Inline download button — stays on Create view, shows progress with pause/cancel */function DownloadButton({ url, subfolder, filename, onDone }: { url: string; subfolder: string; filename: string; onDone: () => void }) {const [state, setState] = useState<'idle' | 'downloading' | 'paused' | 'done' | 'error'>('idle')@@ -136,6 +205,14 @@ export function CreateView() {const [pyInstallError, setPyInstallError] = useState('')const pyInstallPollRef = useRef<ReturnType<typeof setInterval> | null>(null)const [showConnected, setShowConnected] = useState(true)+ // Bug B (v2.4.5 — dethlux GH #38): track when "ComfyUI loading..." started+ // so we can swap the indefinite spinner for actionable UI after 60s. The+ // process can be alive but the server never comes up (CUDA OOM, missing+ // wheels, Python stub) and users were left staring at a spinner forever.+ const [loadingStartedAt, setLoadingStartedAt] = useState<number | null>(null)+ const [nowTick, setNowTick] = useState(Date.now())+ const [showStartupLogs, setShowStartupLogs] = useState(false)+ const [killing, setKilling] = useState(false)const [i2vUploading, setI2vUploading] = useState(false)const [i2vDragOver, setI2vDragOver] = useState(false)const [i2iUploading, setI2iUploading] = useState(false)@@ -207,6 +284,40 @@ export function CreateView() {}}, [connected])+ // Track when ComfyUI loading actually started (Bug B). Reset on connect.+ const isStartingNow = status?.starting || status?.processAlive+ useEffect(() => {+ if (isStartingNow && !connected) {+ setLoadingStartedAt((prev) => prev ?? Date.now())+ } else if (connected) {+ setLoadingStartedAt(null)+ setShowStartupLogs(false)+ }+ }, [isStartingNow, connected])++ // Drive the "elapsed seconds" display once a startup is in progress.+ useEffect(() => {+ if (loadingStartedAt === null) return+ const id = setInterval(() => setNowTick(Date.now()), 1000)+ return () => clearInterval(id)+ }, [loadingStartedAt])++ const loadingElapsedMs = loadingStartedAt ? nowTick - loadingStartedAt : 0+ const loadingTooLong = loadingElapsedMs > 60_000+ const loadingElapsedLabel = loadingStartedAt+ ? `${Math.floor(loadingElapsedMs / 1000)}s`+ : ''++ const killStuckComfyui = async () => {+ setKilling(true)+ try {+ await backendCall('stop_comfyui')+ } catch { /* may already be down */ }+ setLoadingStartedAt(null)+ setTimeout(() => pollStatus(), 1500)+ setKilling(false)+ }+const retryConnect = async () => {setRetrying(true)try { await backendCall('start_comfyui') } catch { /* ignore */ }@@ -446,11 +557,61 @@ export function CreateView() {</div>)}- {/* Starting */}- {isStarting && !connected && (+ {/* Starting — within first 60s show simple spinner;+ after 60s swap to actionable "stuck" UI (Bug B / GH #38). */}+ {isStarting && !connected && !loadingTooLong && (<div className="flex items-center gap-2 px-4 py-2 bg-white/5 border-b border-white/5 text-gray-400 text-xs"><Loader2 size={12} className="animate-spin" />- <span>ComfyUI loading...</span>+ <span>ComfyUI loading{loadingElapsedLabel ? ` (${loadingElapsedLabel})` : '...'}</span>+ </div>+ )}+ {isStarting && !connected && loadingTooLong && (+ <div className="border-b border-orange-500/15 bg-orange-500/5">+ <div className="px-4 py-3 space-y-2 text-xs">+ <div className="flex items-start justify-between gap-3">+ <div className="flex items-start gap-2 text-orange-300">+ <AlertTriangle size={14} className="shrink-0 mt-0.5" />+ <div className="space-y-1">+ <p className="font-medium">ComfyUI is taking unusually long ({loadingElapsedLabel})</p>+ <p className="text-[10px] text-orange-200/70 leading-relaxed">+ The process is alive but its web server hasn't responded. This usually means a CUDA / PyTorch wheel mismatch, an out-of-memory crash, or a custom-node import error. Check the startup logs below before restarting — they often name the failing module.+ </p>+ </div>+ </div>+ <div className="flex items-center gap-1 shrink-0">+ <button+ onClick={() => setShowStartupLogs((v) => !v)}+ className="px-2 py-1 rounded bg-white/10 hover:bg-white/15 text-white text-[10px] transition-colors"+ >+ {showStartupLogs ? 'Hide logs' : 'View logs'}+ </button>+ <button+ onClick={killStuckComfyui}+ disabled={killing}+ className="flex items-center gap-1 px-2 py-1 rounded bg-red-500/20 hover:bg-red-500/30 disabled:opacity-50 text-red-200 text-[10px] transition-colors"+ title="Kill the stuck ComfyUI process"+ >+ {killing ? <Loader2 size={10} className="animate-spin" /> : <XIcon size={10} />}+ Kill process+ </button>+ <button+ onClick={retryConnect}+ disabled={retrying}+ className="flex items-center gap-1 px-2 py-1 rounded bg-white/10 hover:bg-white/15 text-white text-[10px] transition-colors"+ >+ <RefreshCw size={10} className={retrying ? 'animate-spin' : ''} />+ Restart+ </button>+ </div>+ </div>+ {showStartupLogs && (+ <div className="bg-black rounded-lg p-2 max-h-48 overflow-y-auto font-mono text-[10px] text-gray-400">+ {startupLogs.length > 0+ ? startupLogs.slice(-30).map((log, i) => <div key={i} className="whitespace-pre-wrap break-all">{log}</div>)+ : <div className="text-gray-600 italic">No startup logs captured yet — ComfyUI hasn't emitted anything to stdout.</div>}+ </div>+ )}+ </div></div>)}@@ -830,6 +991,7 @@ export function CreateView() {)}</div>)}+ <VhsInstallModal /></div>)}diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsxindex ef7bf960..bfc09970 100644--- a/src/components/layout/Header.tsx+++ b/src/components/layout/Header.tsx@@ -56,7 +56,10 @@ export function Header() {// the user re-pulled externally), clear it.markHealthFresh(modelToUse)} catch (e) {- if (e instanceof ModelLoadError && e.kind === 'stale-manifest') {+ // Bug C (v2.4.5 — Anson192 GH #39): missing-blob errors get the same+ // one-click repair path as stale-manifest — `ollama pull <name>`+ // re-fetches missing blobs just like it refreshes stale manifests.+ if (e instanceof ModelLoadError && (e.kind === 'stale-manifest' || e.kind === 'missing-blob')) {setStaleError({ model: e.model, message: e.message })syncStaleToStore(e.model)}@@ -71,7 +74,7 @@ export function Header() {await unloadModel(modelToUse)setIsModelLoaded(false)} catch (e) {- if (e instanceof ModelLoadError && e.kind === 'stale-manifest') {+ if (e instanceof ModelLoadError && (e.kind === 'stale-manifest' || e.kind === 'missing-blob')) {setStaleError({ model: e.model, message: e.message })syncStaleToStore(e.model)}diff --git a/src/hooks/useCreate.ts b/src/hooks/useCreate.tsindex 1144d665..571fc150 100644--- a/src/hooks/useCreate.ts+++ b/src/hooks/useCreate.ts@@ -25,6 +25,8 @@ import {} from '../api/comfyui-ws'import { buildDynamicWorkflow, WorkflowUnavailableError, checkVideoOutputCapability } from '../api/dynamic-workflow'import { getAllNodeInfo } from '../api/comfyui-nodes'+import { installCustomNodes } from '../api/discover'+import { backendCall } from '../api/backend'import { useCreateStore, type GalleryItem } from '../stores/createStore'import { useWorkflowStore } from '../stores/workflowStore'import { injectParameters } from '../api/workflows'@@ -335,15 +337,64 @@ export function useCreate() {workflow = await buildTxt2ImgWorkflow(baseParams, imageModelType)}}- // Bug #6 (Turbulent_Tomato7559 — Reddit, 2026-05-10): warn when- // we'll fall back to animated .webp because VHS_VideoCombine is- // missing. User gets a banner explaining the output before they- // hit Generate and then wonder why they got an "image".+ // Bug A (v2.4.5 — miguelkodoatie Discord 2026-05-14, Turbulent_Tomato7559+ // Reddit 2026-05-10): when ComfyUI lacks VHS_VideoCombine the video+ // workflow falls back to SaveAnimatedWEBP and produces an animated+ // .webp instead of an .mp4. v2.4.4 added a warning banner; v2.4.5+ // turns it into a blocking modal with a one-click install, so users+ // get actual videos instead of trying to figure out why "video gen"+ // gave them an image.if (mode === 'video' && builderUsed === 'dynamic') {try {const caps = await checkVideoOutputCapability()if (caps.webpOnly) {- setProgress(8, 'Heads-up: output will be animated .webp (install VHS_VideoCombine for mp4)')+ const choice = await new Promise<'install' | 'webp' | 'cancel'>((resolve) => {+ useCreateStore.getState().setVhsInstallPrompt(resolve)+ })+ useCreateStore.getState().setVhsInstallPrompt(null)++ if (choice === 'cancel') {+ setIsGenerating(false)+ setProgress(0, '')+ return+ }+ if (choice === 'install') {+ setProgress(8, 'Installing VHS_VideoCombine (git clone + pip)...')+ try {+ await installCustomNodes(['videohelpersuite'])+ setProgress(9, 'Restarting ComfyUI to register the new node...')+ try {+ await backendCall('stop_comfyui')+ } catch { /* may already be stopped */ }+ await new Promise(r => setTimeout(r, 2000))+ await backendCall('start_comfyui')+ // Wait for ComfyUI to come back; poll /object_info up to 30s+ let backUp = false+ for (let i = 0; i < 15; i++) {+ await new Promise(r => setTimeout(r, 2000))+ try {+ const ok = await checkComfyConnection()+ if (ok) { backUp = true; break }+ } catch { /* not yet */ }+ }+ if (!backUp) {+ setError('VHS_VideoCombine installed but ComfyUI did not come back online within 30s. Please restart ComfyUI manually and re-generate.')+ setIsGenerating(false)+ return+ }+ // Re-build the workflow now that the new node is available+ const genParams = { ...baseParams, frames, fps, ...(i2vImage ? { inputImage: i2vImage } : {}) }+ workflow = await buildDynamicWorkflow(genParams, imageModelType)+ setProgress(10, 'VHS installed — generating MP4...')+ } catch (instErr) {+ setError(`Failed to install VHS_VideoCombine: ${instErr instanceof Error ? instErr.message : String(instErr)}. You can install it manually in ComfyUI Manager.`)+ setIsGenerating(false)+ return+ }+ } else {+ // 'webp' — user opted to continue with the animated .webp+ setProgress(8, 'Continuing with animated .webp output (no VHS_VideoCombine)')+ }}} catch { /* non-fatal */ }}diff --git a/src/lib/__tests__/ollama-errors.test.ts b/src/lib/__tests__/ollama-errors.test.tsindex 1bb98b85..0e6be172 100644--- a/src/lib/__tests__/ollama-errors.test.ts+++ b/src/lib/__tests__/ollama-errors.test.ts@@ -78,6 +78,51 @@ describe('parseOllamaError', () => {expect(parsed.kind).toBe('other')expect(parsed.raw).toBe('request failed')})++ // Bug C (v2.4.5 — Anson192 GH #39): "unable to load model: <blob-path>"+ // means the manifest references a blob that isn't on disk. Classified as+ // missing-blob so the Lichtschalter offers a one-click `ollama pull` repair.+ it('detects missing-blob error from Anson192 GH Discussion #39', async () => {+ const body = JSON.stringify({+ error: 'unable to load model: C:\\Users\\yipan.ollama\\models\\blobs\\sha256-4974d885253dceff1f68b81592f515796d1eb7cfb2cb7775e0df193e96251e2a',+ })+ const res = new Response(body, { status: 500 })+ const parsed = await parseOllamaError(res, 'HTTP 500', 'qwen3:8b')+ expect(parsed.kind).toBe('missing-blob')+ expect(parsed.model).toBe('qwen3:8b')+ expect(parsed.message).toContain('blob')+ expect(parsed.message).toContain('qwen3:8b')+ })++ it('missing-blob with no fallbackModel still classifies but leaves model null', async () => {+ const body = JSON.stringify({+ error: 'unable to load model: /var/lib/ollama/blobs/sha256-abc123',+ })+ const res = new Response(body, { status: 500 })+ const parsed = await parseOllamaError(res)+ expect(parsed.kind).toBe('missing-blob')+ expect(parsed.model).toBeNull()+ expect(parsed.message).toContain('<model>')+ })++ it('missing-blob tolerates forward + back slashes in path', async () => {+ const back = 'unable to load model: C:\\path\\blobs\\sha256-deadbeef'+ const fwd = 'unable to load model: /var/lib/ollama/blobs/sha256-deadbeef'+ for (const body of [back, fwd]) {+ const res = new Response(JSON.stringify({ error: body }), { status: 500 })+ const parsed = await parseOllamaError(res)+ expect(parsed.kind).toBe('missing-blob')+ }+ })++ it('Rust-proxy-wrapped missing-blob still classifies', async () => {+ const wrapped = `HTTP 500: ${JSON.stringify({ error: 'unable to load model: /home/u/.ollama/models/blobs/sha256-abc' })}`+ const body = JSON.stringify({ error: wrapped })+ const res = new Response(body, { status: 500 })+ const parsed = await parseOllamaError(res, 'HTTP 500', 'llama3:8b')+ expect(parsed.kind).toBe('missing-blob')+ expect(parsed.model).toBe('llama3:8b')+ })})describe('ModelLoadError', () => {@@ -135,4 +180,19 @@ describe('chatStyleMessage', () => {const parsed = await parseOllamaError(res)expect(chatStyleMessage(parsed)).toBe('CUDA out of memory')})++ it('produces terminal-instruction wording for missing-blob (with model)', async () => {+ const res = new Response(JSON.stringify({ error: 'unable to load model: /x/blobs/sha256-abc' }), { status: 500 })+ const parsed = await parseOllamaError(res, 'fallback', 'qwen3:8b')+ const msg = chatStyleMessage(parsed)+ expect(msg).toContain('Ollama could not load')+ expect(msg).toContain('qwen3:8b')+ expect(msg).toContain('ollama pull qwen3:8b')+ })++ it('produces generic missing-blob wording when model is unknown', async () => {+ const res = new Response(JSON.stringify({ error: 'unable to load model: /x/blobs/sha256-abc' }), { status: 500 })+ const parsed = await parseOllamaError(res)+ expect(chatStyleMessage(parsed)).toContain('<model>')+ })})diff --git a/src/lib/ollama-errors.ts b/src/lib/ollama-errors.tsindex 203c5677..5276d2a4 100644--- a/src/lib/ollama-errors.ts+++ b/src/lib/ollama-errors.ts@@ -18,7 +18,7 @@* that can trigger it (`/api/chat`, `/api/generate` via `prompt`/`completion`).*/-export type OllamaErrorKind = 'stale-manifest' | 'connection' | 'other'+export type OllamaErrorKind = 'stale-manifest' | 'missing-blob' | 'connection' | 'other'export interface ParsedOllamaError {kind: OllamaErrorKind@@ -37,15 +37,29 @@ const STALE_MANIFEST_RE =// Fresh pulls of the same model name succeed. Treated as stale-manifest so// the scan + banner can offer a one-click refresh.const SHOW_NOT_FOUND_RE = /model\s+['"]?([\w.:/\-]+?)['"]?\s+not\s+found/i+// Bug C (v2.4.5 — Anson192 GH Discussion #39, RTX 4090): Ollama reports+// `unable to load model: <path>/blobs/sha256-<hash>` (HTTP 500) when the+// manifest references a blob that isn't on disk. Happens when blobs are+// manually deleted, the model dir lives on an external drive that wasn't+// mounted at pull time, or filesystem corruption. The fix is the same+// recovery path as stale-manifest: `ollama pull <name>` re-fetches missing+// blobs. We don't know the model NAME from this error (only the blob+// hash), so callers carry the active model name in through ModelLoadError.+const MISSING_BLOB_RE = /unable to load model[:\s].*blobs[\\/]+sha256-[0-9a-f]+/i/*** Parse an Ollama error response into a typed structure.* `res` must be a non-ok Response. Safe to call on already-consumed bodies* (will return an `other` with the fallback message).+ *+ * `fallbackModel` is used by missing-blob detection (Bug C) — Ollama's+ * error string carries only the blob hash, so callers that know which+ * model they were trying to load pass it in for the user-facing message.*/export async function parseOllamaError(res: Response,- fallback = 'Ollama request failed'+ fallback = 'Ollama request failed',+ fallbackModel?: string,): Promise<ParsedOllamaError> {let raw = fallbacktry {@@ -75,6 +89,21 @@ export async function parseOllamaError(raw,}}+ // Bug C: missing-blob — the error string contains only the on-disk+ // blob path, not the model name. We surface kind='missing-blob' with+ // model=null and let the calling layer (loadModel) populate the model+ // name from its arguments when constructing ModelLoadError.+ if (MISSING_BLOB_RE.test(raw)) {+ const model = fallbackModel || null+ return {+ kind: 'missing-blob',+ model,+ message: model+ ? `Ollama could not load "${model}" — one of its blobs is missing on disk. Run "ollama pull ${model}" to re-fetch.`+ : 'Ollama could not load the model — one of its blobs is missing on disk. Run "ollama pull <model>" to re-fetch.',+ raw,+ }+ }// NOTE: we intentionally do NOT treat "model X not found" as stale here.// That string also legitimately fires for genuinely absent models// (user types a model name that was never pulled). The health scanner@@ -120,5 +149,9 @@ export function chatStyleMessage(parsed: ParsedOllamaError): string {if (parsed.kind === 'stale-manifest' && parsed.model) {return `Ollama rejected "${parsed.model}" — its manifest is stale. Open a terminal and run: ollama pull ${parsed.model} Then reload the model.`}+ if (parsed.kind === 'missing-blob') {+ const model = parsed.model || '<model>'+ return `Ollama could not load "${model}" — one of its on-disk blobs is missing. Open a terminal and run: ollama pull ${model} Then reload the model.`+ }return parsed.message}diff --git a/src/stores/createStore.ts b/src/stores/createStore.tsindex 70b997f0..f80a931a 100644--- a/src/stores/createStore.ts+++ b/src/stores/createStore.ts@@ -86,6 +86,11 @@ interface CreateState {imageModelList: ClassifiedModel[]videoModelList: ClassifiedModel[]comfyRunning: boolean+ /** Bug A (v2.4.5): when video generation is about to fall back to .webp+ * because VHS_VideoCombine is missing, useCreate sets this resolver and+ * CreateView pops the modal. The user picks "install", "webp", or+ * "cancel"; resolver fires with the choice and useCreate continues. */+ vhsInstallPrompt: ((choice: 'install' | 'webp' | 'cancel') => void) | nullsetPreflightStatus: (ready: boolean | null, errors: PreflightError[], warnings: string[]) => voidsetMode: (mode: 'image' | 'video') => void@@ -119,6 +124,7 @@ interface CreateState {setImageModelList: (list: ClassifiedModel[]) => voidsetVideoModelList: (list: ClassifiedModel[]) => voidsetComfyRunning: (running: boolean) => void+ setVhsInstallPrompt: (resolver: ((choice: 'install' | 'webp' | 'cancel') => void) | null) => void}export const useCreateStore = create<CreateState>()(@@ -159,6 +165,7 @@ export const useCreateStore = create<CreateState>()(imageModelList: [],videoModelList: [],comfyRunning: false,+ vhsInstallPrompt: null,setPreflightStatus: (ready, errors, warnings) => set({ preflightReady: ready, preflightErrors: errors, preflightWarnings: warnings }),setMode: (mode) => set((state) => {@@ -242,6 +249,7 @@ export const useCreateStore = create<CreateState>()(setImageModelList: (list) => set({ imageModelList: list }),setVideoModelList: (list) => set({ videoModelList: list }),setComfyRunning: (running) => set({ comfyRunning: running }),+ setVhsInstallPrompt: (resolver) => set({ vhsInstallPrompt: resolver }),}),{name: 'create-store',