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.

v2.5.0 Bug Z: leonsk29 Hermes 3 phantom-complete + manager retarget

purplec6cd0fe0de76
diff --git a/src-tauri/src/commands/proxy.rs b/src-tauri/src/commands/proxy.rs
index 4b7cc869..6128db5a 100644
--- a/src-tauri/src/commands/proxy.rs
+++ b/src-tauri/src/commands/proxy.rs
@@ -306,6 +306,19 @@ pub async fn pull_model_stream(app: tauri::AppHandle, state: tauri::State<'_, cr
let mut buffer = String::new();
let mut was_cancelled = false;
+ // Bug Z/a v2.5.0 — leonsk29 GH #48. We need to know whether the stream
+ // ever produced a terminal "success" line, OR whether it produced an
+ // `error` field. Ollama 0.4+ responds to a broken HF reference (e.g.
+ // bartowski/Hermes-3 GGUF on llama.cpp-incompatible builds) with HTTP
+ // 200 + a stream that ends after emitting `{"status":"pulling manifest"}`
+ // (no error field, no `success` line). Pre-v2.5.0 we treated that as
+ // success and the frontend flipped the badge to "Completed" despite no
+ // blob being written. Now we track the last status + watch for any
+ // `error` field, and surface a real error to the caller if neither
+ // success nor an explicit error came in.
+ let mut last_status: Option<String> = None;
+ let mut saw_success = false;
+ let mut error_msg: Option<String> = None;
loop {
tokio::select! {
@@ -321,6 +334,18 @@ pub async fn pull_model_stream(app: tauri::AppHandle, state: tauri::State<'_, cr
let line = buffer[..pos].trim().to_string();
buffer = buffer[pos + 1..].to_string();
if !line.is_empty() {
+ // Bug Z/a — inspect each line for status/error fields
+ if let Ok(parsed) = serde_json::from_str::<serde_json::Value>(&line) {
+ if let Some(err) = parsed.get("error").and_then(|v| v.as_str()) {
+ error_msg = Some(err.to_string());
+ }
+ if let Some(st) = parsed.get("status").and_then(|v| v.as_str()) {
+ last_status = Some(st.to_string());
+ if st == "success" {
+ saw_success = true;
+ }
+ }
+ }
// Emit with model name so frontend can route
let payload = format!(r#"{{"model":"{}","data":{}}}"#, name, line);
let _ = app.emit("pull-progress", &payload);
@@ -331,6 +356,7 @@ pub async fn pull_model_stream(app: tauri::AppHandle, state: tauri::State<'_, cr
let _ = app.emit("pull-progress", &format!(
r#"{{"model":"{}","data":{{"status":"Error: {}"}}}}"#, name, e
));
+ error_msg = Some(format!("network: {}", e));
break;
}
None => break, // Stream finished
@@ -343,6 +369,18 @@ pub async fn pull_model_stream(app: tauri::AppHandle, state: tauri::State<'_, cr
if !was_cancelled {
let remaining = buffer.trim().to_string();
if !remaining.is_empty() {
+ // Same status/error inspection for the flushed tail
+ if let Ok(parsed) = serde_json::from_str::<serde_json::Value>(&remaining) {
+ if let Some(err) = parsed.get("error").and_then(|v| v.as_str()) {
+ error_msg = Some(err.to_string());
+ }
+ if let Some(st) = parsed.get("status").and_then(|v| v.as_str()) {
+ last_status = Some(st.to_string());
+ if st == "success" {
+ saw_success = true;
+ }
+ }
+ }
let payload = format!(r#"{{"model":"{}","data":{}}}"#, name, remaining);
let _ = app.emit("pull-progress", &payload);
}
@@ -352,9 +390,22 @@ pub async fn pull_model_stream(app: tauri::AppHandle, state: tauri::State<'_, cr
state.pull_tokens.lock().unwrap().remove(&name);
if was_cancelled {
- Err("cancelled".to_string())
- } else {
+ return Err("cancelled".to_string());
+ }
+
+ // Bug Z/a v2.5.0 — only declare success if Ollama actually said so. If
+ // the stream ended without `{"status":"success"}` and without an
+ // explicit error field, surface the last status as the failure reason
+ // (e.g. "stream ended at: pulling manifest"). The frontend's catch
+ // will now show this to the user instead of silently flipping to
+ // "Completed".
+ if let Some(err) = error_msg {
+ Err(format!("ollama: {}", err))
+ } else if saw_success {
Ok(())
+ } else {
+ let tail = last_status.unwrap_or_else(|| "no status received".to_string());
+ Err(format!("pull did not complete: stream ended at \"{}\". Repo may be incompatible with llama.cpp (try a different GGUF mirror).", tail))
}
}
diff --git a/src/api/discover.ts b/src/api/discover.ts
index c945c887..b527c44c 100644
--- a/src/api/discover.ts
+++ b/src/api/discover.ts
@@ -367,9 +367,18 @@ function sortByRelease(models: DiscoverModel[]): DiscoverModel[] {
export function getUncensoredTextModels(): DiscoverModel[] {
return sortByRelease([
// ── HOT: Hermes 3 ──
- { name: 'Hermes 3 Llama 3.2 3B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. Runs on 8 GB RAM, CPU-only.', pulls: '500K+', tags: ['3B', 'Q4_K_M', '2 GB'], updated: 'Hot', agent: true, lightweight: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.2-3B-GGUF', 'Hermes-3-Llama-3.2-3B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.2-3B-Q4_K_M.gguf', sizeGB: 2 },
- { name: 'Hermes 3 Llama 3.1 8B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. THE agent model.', pulls: '500K+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.1-8B-GGUF', 'Hermes-3-Llama-3.1-8B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-8B-Q4_K_M.gguf', sizeGB: 5 },
- { name: 'Hermes 3 Llama 3.1 70B', description: 'NousResearch Hermes 3 70B — maximum intelligence, uncensored.', pulls: '500K+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Hot', agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.1-70B-GGUF', 'Hermes-3-Llama-3.1-70B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-70B-Q4_K_M.gguf', sizeGB: 42 },
+ // Bug Z/b v2.5.0 — leonsk29 GH #48. Pre-v2.5.0 these pointed at
+ // `bartowski/Hermes-3-Llama-*-GGUF`. leon's 2026-05-26 CLI repro
+ // `ollama pull hf.co/bartowski/Hermes-3-Llama-3.1-8B-GGUF:Q4_K_M`
+ // returned HTTP 400 "Repository is not GGUF or is not compatible with
+ // llama.cpp" on current Ollama. Switched to `mradermacher/...-GGUF`
+ // mirrors which produce llama.cpp-compatible quants (verified all
+ // three repos host Q4_K_M files of the expected size). Note the
+ // filename convention: mradermacher uses `.` between model name and
+ // quant (e.g. `Hermes-3-Llama-3.1-8B.Q4_K_M.gguf`), bartowski uses `-`.
+ { name: 'Hermes 3 Llama 3.2 3B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. Runs on 8 GB RAM, CPU-only.', pulls: '500K+', tags: ['3B', 'Q4_K_M', '2 GB'], updated: 'Hot', agent: true, lightweight: true, released: '2024-08', downloadUrl: HF('mradermacher/Hermes-3-Llama-3.2-3B-GGUF', 'Hermes-3-Llama-3.2-3B.Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.2-3B.Q4_K_M.gguf', sizeGB: 2 },
+ { name: 'Hermes 3 Llama 3.1 8B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. THE agent model.', pulls: '500K+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', agent: true, released: '2024-08', downloadUrl: HF('mradermacher/Hermes-3-Llama-3.1-8B-GGUF', 'Hermes-3-Llama-3.1-8B.Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-8B.Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'Hermes 3 Llama 3.1 70B', description: 'NousResearch Hermes 3 70B — maximum intelligence, uncensored.', pulls: '500K+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Hot', agent: true, released: '2024-08', downloadUrl: HF('mradermacher/Hermes-3-Llama-3.1-70B-GGUF', 'Hermes-3-Llama-3.1-70B.Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-70B.Q4_K_M.gguf', sizeGB: 42 },
// ── HOT: Dolphin 3 ──
{ name: 'Dolphin 3 Llama 3.1 8B', description: 'Dolphin 3 — uncensored from training. Coding, math, general purpose.', pulls: '3.7M', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', released: '2024-12', downloadUrl: HF('bartowski/dolphin-2.9.4-llama3.1-8b-GGUF', 'dolphin-2.9.4-llama3.1-8b-Q4_K_M.gguf'), filename: 'dolphin-2.9.4-llama3.1-8b-Q4_K_M.gguf', sizeGB: 5 },
// ── HOT: Qwen 3.5 Abliterated ──
diff --git a/src/hooks/useModels.ts b/src/hooks/useModels.ts
index eec101c6..edc334ae 100644
--- a/src/hooks/useModels.ts
+++ b/src/hooks/useModels.ts
@@ -124,8 +124,19 @@ export function useModels() {
try { await fetchModels() } catch { /* model list refresh failed — non-critical */ }
// Auto-dismiss after 5s
setTimeout(() => dismissPull(name), 5000)
- } catch {
- // Stream disconnected (pause or error) — card stays visible
+ } catch (err) {
+ // Bug Z/a v2.5.0 — leonsk29 GH #48. Pre-v2.5.0 this catch was
+ // silent ("card stays visible"), which combined with the Rust-
+ // side Ok(()) on stream-ended-without-success made LU flip the
+ // badge to "Completed" even when Ollama returned a 400 or the
+ // stream cut off after just the manifest. Now we surface the
+ // real error string as the card's last status, so the user can
+ // see *why* the pull failed (e.g. "Repo not GGUF compatible").
+ // The cancellation case is still distinguished from real errors.
+ const msg = (err as Error)?.message || String(err)
+ if (!/cancelled/i.test(msg) && controller.signal.aborted !== true) {
+ updatePullProgress(name, { status: `Failed: ${msg}` })
+ }
}
return
}