Skip to content

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.

Studio: show the Auto download reason only when it falls back to HTTPS (#14454)

Michael Han76a12cf3e421
diff --git a/studio/frontend/src/features/settings/components/download-transport-row.tsx b/studio/frontend/src/features/settings/components/download-transport-row.tsx
index 04d35f8e523..e10dd812134 100644
--- a/studio/frontend/src/features/settings/components/download-transport-row.tsx
+++ b/studio/frontend/src/features/settings/components/download-transport-row.tsx
@@ -98,9 +98,13 @@ export function DownloadTransportRow() {
: null;
// The health check's own words, on their own line: free-form English, so folding it into a
- // translated sentence produced half a sentence in each language. Auto is the only branch
- // with a reason to explain.
- const statusReason = mode === "auto" ? (settings?.autoReason ?? null) : null;
+ // translated sentence produced half a sentence in each language. Only a fallback to HTTPS has
+ // something to explain (stalls, low RAM, an env switch); on Xet the reason is bookkeeping
+ // like "Xet download succeeded" or "no cached verdict; defaulting to Xet".
+ const statusReason =
+ mode === "auto" && settings?.autoResolvesTo === "http"
+ ? (settings.autoReason ?? null)
+ : null;
return (
<SettingsRow
diff --git a/studio/frontend/tests/download-transport-setting.test.ts b/studio/frontend/tests/download-transport-setting.test.ts
index a4e71df9d3b..663ce3d3859 100644
--- a/studio/frontend/tests/download-transport-setting.test.ts
+++ b/studio/frontend/tests/download-transport-setting.test.ts
@@ -165,6 +165,15 @@ test("the untranslated health reason is not folded into a translated sentence",
assert.doesNotMatch(EN, /autoCurrentlyReason/);
});
+test("the health reason shows only when Auto falls back to HTTPS", () => {
+ // On Xet the reason is the health cache's bookkeeping ("Xet download succeeded"), which read
+ // as a stray status line under the toggle.
+ assert.match(
+ ROW,
+ /const statusReason =\s*mode === "auto" && settings\?\.autoResolvesTo === "http"/,
+ );
+});
+
test("a failed refresh keeps the install mode already loaded", () => {
// Falling back to null sent the next download to Auto even though the install's choice was
// still known here, so a blip on the settings route silently changed transport.