Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Record a stopped repair update as canceled rather than failed (#7910)
Daniel Han39a206b1f2ab
diff --git a/studio/src-tauri/src/commands.rs b/studio/src-tauri/src/commands.rsindex 25a9eb29024..0c637312d91 100644--- a/studio/src-tauri/src/commands.rs+++ b/studio/src-tauri/src/commands.rs@@ -566,10 +566,12 @@ pub async fn start_managed_repair(// the app exits underneath it.if msg == update::UPDATE_STOPPED {info!("Managed repair update stopped; skipping installer fallback");+ // Only a user stop reaches this branch, and the support report prints+ // final_status verbatim. Matches record_pending_elevation_canceled.diagnostics::finish_repair_group(&diagnostics_state,&repair_group_id,- "failed",+ "canceled",Some(msg.clone()),);return Err(msg);diff --git a/tests/studio/test_desktop_reliability_frontend_contract.py b/tests/studio/test_desktop_reliability_frontend_contract.pyindex 034ada3940c..b5de4a37f4b 100644--- a/tests/studio/test_desktop_reliability_frontend_contract.py+++ b/tests/studio/test_desktop_reliability_frontend_contract.py@@ -24,6 +24,7 @@ TITLEBAR = FRONTEND / "components/tauri/window-titlebar.tsx"NATIVE_DIALOGS = REPO / "studio/src-tauri/src/native_file_dialogs.rs"NATIVE_CLIPBOARD = REPO / "studio/src-tauri/src/native_clipboard.rs"TAURI_MAIN = REPO / "studio/src-tauri/src/main.rs"+TAURI_COMMANDS = REPO / "studio/src-tauri/src/commands.rs"TAURI_UPDATE_CONTEXT = FRONTEND / "hooks/tauri-update-context.ts"TAURI_UPDATE_HOOK = FRONTEND / "hooks/use-tauri-update.ts"UPDATE_INSTRUCTIONS = FRONTEND / "features/settings/components/update-studio-instructions.tsx"@@ -523,3 +524,16 @@ def test_media_pages_clear_the_custom_titlebar():for page in (IMAGES_PAGE, VIDEO_PAGE):shell = page.read_text(encoding = "utf-8").split('"diffusion-surface', 1)[1].split(">", 1)[0]assert "pt-[var(--studio-content-top-inset,0px)]" in shell, page.name+++def test_a_stopped_repair_update_is_recorded_as_canceled_not_failed():+ """unslothai/unsloth#7793: the support report prints final_status verbatim, so a+ user quitting mid-update must not read as a failed repair."""+ source = TAURI_COMMANDS.read_text(encoding = "utf-8")+ stopped_arm = source.split("if msg == update::UPDATE_STOPPED", 1)[1].split(+ "return Err(msg);", 1+ )[0]+ # The status argument of the call, so the surrounding comment cannot satisfy this.+ call = stopped_arm.split("finish_repair_group(", 1)[1].split(");", 1)[0]+ assert '"canceled"' in call+ assert '"failed"' not in call