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
Studio: name the Windows update that adds MXC's built-in container (#13798)
Daniel Han2447d8389802
diff --git a/studio/backend/core/inference/sandbox_setup_plan.py b/studio/backend/core/inference/sandbox_setup_plan.pyindex 34d948f6868..03b005dbee8 100644--- a/studio/backend/core/inference/sandbox_setup_plan.py+++ b/studio/backend/core/inference/sandbox_setup_plan.py@@ -347,6 +347,36 @@ def windows_runtime_unsupported() -> str | None:return "build" if build < MXC_MIN_WINDOWS_BUILD else None+# First update revision (UBR) with Windows' built-in container (BaseContainer) per release, from MXC's+# docs/backends/process-container/os-version-support.md ("Process Isolation"). Older revisions fall back to+# AppContainer, which needs Unsloth's fallback sandbox and its administrator step.+BUILTIN_CONTAINER_MIN_UBR = {26100: 9278, 26200: 9278, 26300: 9550, 28000: 2804}+++def windows_builtin_container_update() -> tuple[str, str] | None:+ """(this PC's build, the first build with the built-in container) when a Windows update adds it, else None."""+ if sys.platform != "win32":+ return None+ try:+ import winreg++ version = sys.getwindowsversion()+ # The table is Windows 11 only: Server 2025 shares build 26100 but has no BaseContainer.+ if version.product_type != 1: # VER_NT_WORKSTATION+ return None+ build = version.build+ with winreg.OpenKey(+ winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion"+ ) as key:+ ubr = int(winreg.QueryValueEx(key, "UBR")[0])+ except (OSError, ValueError, TypeError, AttributeError): # unreadable: say nothing+ return None+ needed = BUILTIN_CONTAINER_MIN_UBR.get(build)+ if needed is None or ubr >= needed:+ return None+ return f"{build}.{ubr}", f"{build}.{needed}"++def windows_runtime_supported() -> bool:"""The MXC runtime Unsloth installs is built for x64 Windows 11 build 26100 or newer."""return windows_runtime_unsupported() is Nonediff --git a/studio/backend/routes/settings.py b/studio/backend/routes/settings.pyindex e151712e61d..7775238ff45 100644--- a/studio/backend/routes/settings.py+++ b/studio/backend/routes/settings.py@@ -5018,6 +5018,9 @@ class SandboxWindowsStatus(BaseModel):prepare_repeats_after_restart: bool = True# True: MXC runs in Windows' built-in container (BaseContainer); False: this Windows has none; None: unknown.builtin_container: Optional[bool] = None+ # Set only when a Windows update adds the built-in container: this PC's build and the first one with it.+ windows_build: Optional[str] = None+ builtin_container_build: Optional[str] = Noneclass SandboxSetupStatus(BaseModel):@@ -5153,6 +5156,7 @@ def _sandbox_windows_status() -> SandboxWindowsStatus:if installed:steps = mxc_runtime.probe_host_prep_steps(env = mxc_adapter._control_environment())missing = None if steps is None else list(steps)+ update = sandbox_setup_plan.windows_builtin_container_update()return SandboxWindowsStatus(runtime_installed = installed,runtime_unsupported = sandbox_setup_plan.windows_runtime_unsupported(),@@ -5165,6 +5169,8 @@ def _sandbox_windows_status() -> SandboxWindowsStatus:mxc_read_grants.PERSISTENT_GRANTS_ENV),host_prep_missing = missing,+ windows_build = update[0] if update else None,+ builtin_container_build = update[1] if update else None,)diff --git a/studio/backend/tests/test_sandbox_settings_route.py b/studio/backend/tests/test_sandbox_settings_route.pyindex 190a5ff4249..a629570190e 100644--- a/studio/backend/tests/test_sandbox_settings_route.py+++ b/studio/backend/tests/test_sandbox_settings_route.py@@ -489,3 +489,17 @@ def test_an_empty_windows_save_still_resets_every_cache(host, windows, memory):with _client(OWNER) as client:assert client.put("/sandbox", json = {}).status_code == 200assert calls["invalidate"] == 1 and calls["profile_reset"] == 1++[email protected]("update", [("26200.6584", "26200.9278"), None])+def test_windows_status_names_the_update_that_adds_the_builtin_container(+ windows, monkeypatch, update+):+ from core.inference import mxc_runtime, sandbox_setup_plan++ monkeypatch.setattr(mxc_runtime, "installation_identity", lambda: "identity")+ monkeypatch.setattr(mxc_runtime, "probe_host_prep_steps", lambda **_kw: [])+ monkeypatch.setattr(sandbox_setup_plan, "windows_runtime_unsupported", lambda: None)+ monkeypatch.setattr(sandbox_setup_plan, "windows_builtin_container_update", lambda: update)+ block = settings._sandbox_windows_status()+ assert (block.windows_build, block.builtin_container_build) == (update or (None, None))diff --git a/studio/backend/tests/test_sandbox_setup_plan.py b/studio/backend/tests/test_sandbox_setup_plan.pyindex 2cccac75eb9..172e00d6fb0 100644--- a/studio/backend/tests/test_sandbox_setup_plan.py+++ b/studio/backend/tests/test_sandbox_setup_plan.py@@ -485,3 +485,90 @@ def test_windows_commands_paste_into_windows_powershell():"& 'C:\\Users\\Jane Doe\\python.exe' 'C:\\Users\\Jane Doe\\studio\\install_mxc_prebuilt.py' ""'--install-dir' 'x'\n& 'C:\\it''s\\python.exe' '--prepare-host'")+++ "build,ubr,expected",+ [+ (26200, 6584, ("26200.6584", "26200.9278")), # 25H2 held back by a feature-update policy+ (26100, 9277, ("26100.9277", "26100.9278")),+ (26200, 9278, None),+ (26300, 9549, ("26300.9549", "26300.9550")),+ (26120, 1, None), # no published floor: say nothing rather than guess+ ],+)+def test_windows_names_the_update_that_adds_the_builtin_container(+ monkeypatch, build, ubr, expected+):+ import types++ class Key:+ def __enter__(self):+ return self++ def __exit__(self, *exc):+ return False++ winreg = types.SimpleNamespace(+ HKEY_LOCAL_MACHINE = object(),+ OpenKey = lambda *_a: Key(),+ QueryValueEx = lambda _key, _name: (ubr, 4),+ )+ monkeypatch.setattr(sys, "platform", "win32")+ monkeypatch.setattr(+ sys,+ "getwindowsversion",+ lambda: types.SimpleNamespace(build = build, product_type = 1),+ raising = False,+ )+ monkeypatch.setitem(sys.modules, "winreg", winreg)+ assert plan_mod.windows_builtin_container_update() == expected+++def test_windows_builtin_container_hint_is_silent_when_unreadable(monkeypatch):+ import types++ def refuse(*_a):+ raise OSError("access denied")++ monkeypatch.setattr(sys, "platform", "win32")+ monkeypatch.setattr(+ sys,+ "getwindowsversion",+ lambda: types.SimpleNamespace(build = 26200, product_type = 1),+ raising = False,+ )+ monkeypatch.setitem(+ sys.modules, "winreg", types.SimpleNamespace(HKEY_LOCAL_MACHINE = 0, OpenKey = refuse)+ )+ assert plan_mod.windows_builtin_container_update() is None+ monkeypatch.setattr(sys, "platform", "linux")+ assert plan_mod.windows_builtin_container_update() is None++[email protected](sys.platform != "win32", reason = "reads this PC's registry")+def test_windows_builtin_container_hint_reads_this_pc():+ update = plan_mod.windows_builtin_container_update()+ if update is not None:+ current, required = update+ assert current.split(".")[0] == required.split(".")[0]+ assert int(current.split(".")[1]) < int(required.split(".")[1])+++def test_windows_server_gets_no_builtin_container_hint(monkeypatch):+ import types++ def refuse(*_a):+ raise AssertionError("the registry is not read on Server")++ monkeypatch.setattr(sys, "platform", "win32")+ monkeypatch.setattr(+ sys,+ "getwindowsversion",+ lambda: types.SimpleNamespace(build = 26100, product_type = 3),+ raising = False,+ )+ monkeypatch.setitem(+ sys.modules, "winreg", types.SimpleNamespace(HKEY_LOCAL_MACHINE = 0, OpenKey = refuse)+ )+ assert plan_mod.windows_builtin_container_update() is Nonediff --git a/studio/frontend/scripts/check-bundle-budget.ts b/studio/frontend/scripts/check-bundle-budget.tsindex e2593446e57..4e5e028adda 100644--- a/studio/frontend/scripts/check-bundle-budget.ts+++ b/studio/frontend/scripts/check-bundle-budget.ts@@ -117,8 +117,11 @@ export const BUDGET = {// (6,764,579 -> 6,764,964 B raw, 2,033,464 -> 2,033,544 B transfer from 91f8457ab3 to 7b6b2a8e48, one machine// and build, Node 24, chunk count unchanged at 95), which put main 43 B raw over. Raised by that growth so// main's margin stays where it was.- transferBytes: 2_033_684,- rawBytes: 6_765_306,+ // Naming the Windows update that adds MXC's built-in container (#13798) adds 358 B raw / 93 B transfer, its+ // string in the eager English locale (6,765,003 -> 6,765,361 B raw against 3c0061e16, one machine and build,+ // Node 24, chunk count unchanged at 95), which put main 55 B raw over. Raised by that growth.+ transferBytes: 2_033_777,+ rawBytes: 6_765_664,};// The chunk count is reported but not budgeted. Splitting a page out of the entry raises it while lowering thediff --git a/studio/frontend/src/features/settings/api/sandbox-isolation.ts b/studio/frontend/src/features/settings/api/sandbox-isolation.tsindex ad17a0c7c34..fc9b2044bcd 100644--- a/studio/frontend/src/features/settings/api/sandbox-isolation.ts+++ b/studio/frontend/src/features/settings/api/sandbox-isolation.ts@@ -37,6 +37,9 @@ export type WindowsSandboxStatus = {prepareRepeatsAfterRestart: boolean;// true: MXC runs in Windows' built-in container; false: this Windows has none; null: unknown.builtinContainer: boolean | null;+ // Set only when a Windows update adds the built-in container: this PC's build and the first with it.+ windowsBuild: string | null;+ builtinContainerBuild: string | null;};export type SandboxSetupPlan = {@@ -136,6 +139,10 @@ type ApiWindowsStatus = {prepare_repeats_after_restart?: boolean;// biome-ignore lint/style/useNamingConvention: API schemabuiltin_container?: boolean | null;+ // biome-ignore lint/style/useNamingConvention: API schema+ windows_build?: string | null;+ // biome-ignore lint/style/useNamingConvention: API schema+ builtin_container_build?: string | null;};type ApiMemoryStatus = {@@ -231,6 +238,8 @@ function windowsFromApi(: windows.host_prep_missing,prepareRepeatsAfterRestart: windows.prepare_repeats_after_restart ?? true,builtinContainer: windows.builtin_container ?? null,+ windowsBuild: windows.windows_build ?? null,+ builtinContainerBuild: windows.builtin_container_build ?? null,};}diff --git a/studio/frontend/src/features/settings/tabs/sandbox-tab-state.ts b/studio/frontend/src/features/settings/tabs/sandbox-tab-state.tsindex 8109c4ad845..84208bd529c 100644--- a/studio/frontend/src/features/settings/tabs/sandbox-tab-state.ts+++ b/studio/frontend/src/features/settings/tabs/sandbox-tab-state.ts@@ -66,6 +66,8 @@ export type WindowsView = {prep: HostPrepStatus;showPrepareButton: boolean;prepareDisabled: boolean;+ /** A Windows update adds the built-in container, which needs no administrator step. */+ builtinUpdate: { current: string; required: string } | null;};export function hostPrepStatus(windows: WindowsSandboxStatus): HostPrepStatus {@@ -112,6 +114,15 @@ export function windowsView(prep === "needsPreparingAgain" ||prep === "unknown",prepareDisabled: running || saving,+ builtinUpdate:+ windows.builtinContainer !== true &&+ windows.windowsBuild &&+ windows.builtinContainerBuild+ ? {+ current: windows.windowsBuild,+ required: windows.builtinContainerBuild,+ }+ : null,};}diff --git a/studio/frontend/src/features/settings/tabs/sandbox-tab.tsx b/studio/frontend/src/features/settings/tabs/sandbox-tab.tsxindex 3ca88767201..92e266546f8 100644--- a/studio/frontend/src/features/settings/tabs/sandbox-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/sandbox-tab.tsx@@ -827,6 +827,11 @@ function OsSandboxSections() {</Badge></SettingsRow>) : null}+ {view.builtinUpdate ? (+ <p className="py-2 text-xs text-muted-foreground leading-relaxed">+ {t("settings.sandbox.builtinNeedsUpdate", view.builtinUpdate)}+ </p>+ ) : null}<SettingsRowlabel={t("settings.sandbox.optInLabel")}description={diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.tsindex c9e6e3785d9..d528e90ca85 100644--- a/studio/frontend/src/i18n/locales/ar.ts+++ b/studio/frontend/src/i18n/locales/ar.ts@@ -1362,6 +1362,8 @@ export const ar = {installRuntimeFailed: "فشل تثبيت بيئة التشغيل.",installRuntimeError: "تعذر بدء تثبيت بيئة التشغيل.",unsupportedArch: "يعمل وضع حماية Windows (MXC) على Windows x64 فقط، لذا فهو غير متاح على هذا الكمبيوتر.",+ builtinNeedsUpdate:+ "تحتاج الحاوية المدمجة في Windows إلى الإصدار {required} أو أحدث، بينما يعمل هذا الكمبيوتر بالإصدار {current}. ثبّت آخر تحديث لـ Windows لاستخدامها دون خطوة مسؤول، أو فعّل وضع الحماية الاحتياطي أدناه.",unsupportedBuild: "يتطلب وضع حماية Windows (MXC) إصدار Windows 11 24H2 (البنية 26100) أو أحدث، لذا فهو غير متاح على هذا الكمبيوتر.",permissionsIntro: "اختر متى تسأل الأدوات أولاً، وما إذا كان Python والطرفية يعملان أيضاً داخل وضع حماية نظام التشغيل.",permissionLabel: "أذونات الأدوات",diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.tsindex 6b9bc660a4e..235b90a233e 100644--- a/studio/frontend/src/i18n/locales/de.ts+++ b/studio/frontend/src/i18n/locales/de.ts@@ -1367,6 +1367,7 @@ export const de = {installRuntimeFailed: "Die Installation der Laufzeit ist fehlgeschlagen.",installRuntimeError: "Die Installation der Laufzeit konnte nicht gestartet werden.",unsupportedArch: "Die Windows-Sandbox (MXC) läuft nur unter x64-Windows und ist auf diesem PC daher nicht verfügbar.",+ builtinNeedsUpdate: "Der integrierte Windows-Container benötigt Build {required} oder neuer, auf diesem PC läuft {current}. Installiere das neueste Windows-Update, um ihn ohne Administratorschritt zu nutzen, oder aktiviere unten die Ausweich-Sandbox.",unsupportedBuild: "Die Windows-Sandbox (MXC) braucht Windows 11 24H2 (Build 26100) oder neuer und ist auf diesem PC daher nicht verfügbar.",permissionsIntro: "Lege fest, wann Tools zuerst fragen und ob Python und Terminal zusätzlich in der OS-Sandbox laufen.",permissionLabel: "Tool-Berechtigungen",diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex 7e315b65c6d..7fbb4a7605f 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -1420,6 +1420,7 @@ export const en = {installRuntimeFailed: "The runtime install failed.",installRuntimeError: "Could not start the runtime install.",unsupportedArch: "The Windows sandbox (MXC) only runs on x64 Windows, so it is not available on this PC.",+ builtinNeedsUpdate: "Windows' built-in container needs build {required} or newer, and this PC runs {current}. Install the latest Windows update to use it without an administrator step, or turn on the fallback below.",unsupportedBuild: "The Windows sandbox (MXC) needs Windows 11 24H2 (build 26100) or newer, so it is not available on this PC.",permissionsIntro: "Choose when tools ask first, and whether Python and Terminal also run inside the OS sandbox.",permissionLabel: "Tool permissions",diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.tsindex 65313d8ae9c..bd703d32a06 100644--- a/studio/frontend/src/i18n/locales/es.ts+++ b/studio/frontend/src/i18n/locales/es.ts@@ -1366,6 +1366,7 @@ export const es = {installRuntimeFailed: "No se pudo instalar el runtime.",installRuntimeError: "No se pudo iniciar la instalación del runtime.",unsupportedArch: "El sandbox de Windows (MXC) solo funciona en Windows x64, así que no está disponible en este PC.",+ builtinNeedsUpdate: "El contenedor integrado de Windows necesita la compilación {required} o posterior, y este PC usa {current}. Instala la última actualización de Windows para usarlo sin un paso de administrador, o activa el sandbox alternativo de abajo.",unsupportedBuild: "El sandbox de Windows (MXC) necesita Windows 11 24H2 (compilación 26100) o posterior, así que no está disponible en este PC.",permissionsIntro: "Elige cuándo preguntan primero las herramientas y si Python y Terminal también se ejecutan en el sandbox del sistema.",permissionLabel: "Permisos de herramientas",diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.tsindex c1ece382546..ae7729a3ec6 100644--- a/studio/frontend/src/i18n/locales/fr.ts+++ b/studio/frontend/src/i18n/locales/fr.ts@@ -1367,6 +1367,7 @@ export const fr = {installRuntimeFailed: "L'installation du runtime a échoué.",installRuntimeError: "Impossible de lancer l'installation du runtime.",unsupportedArch: "Le bac à sable Windows (MXC) ne fonctionne que sous Windows x64, il n'est donc pas disponible sur ce PC.",+ builtinNeedsUpdate: "Le conteneur intégré de Windows nécessite la build {required} ou plus récente, et ce PC exécute {current}. Installez la dernière mise à jour de Windows pour l'utiliser sans étape administrateur, ou activez le sandbox de secours ci-dessous.",unsupportedBuild: "Le bac à sable Windows (MXC) nécessite Windows 11 24H2 (build 26100) ou plus récent, il n'est donc pas disponible sur ce PC.",permissionsIntro: "Choisissez quand les outils demandent d'abord, et si Python et le Terminal s'exécutent aussi dans le bac à sable du système.",permissionLabel: "Autorisations des outils",diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.tsindex 7a3cca64ecc..c883dde522b 100644--- a/studio/frontend/src/i18n/locales/he.ts+++ b/studio/frontend/src/i18n/locales/he.ts@@ -1462,6 +1462,8 @@ export const he = {installRuntimeError: "לא ניתן להתחיל את התקנת סביבת זמן הריצה.",unsupportedArch:"ארגז החול של Windows (MXC) פועל רק ב-Windows x64, ולכן אינו זמין במחשב זה.",+ builtinNeedsUpdate:+ "המכל המובנה של Windows דורש גרסת build {required} ומעלה, והמחשב הזה מריץ {current}. התקינו את עדכון Windows האחרון כדי להשתמש בו בלי שלב מנהל, או הפעילו את ארגז החול החלופי שלמטה.",unsupportedBuild:"ארגז החול של Windows (MXC) דורש Windows 11 24H2 (build 26100) ומעלה, ולכן אינו זמין במחשב זה.",permissionsIntro:diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.tsindex 53906fac208..f471afa9e0d 100644--- a/studio/frontend/src/i18n/locales/hi.ts+++ b/studio/frontend/src/i18n/locales/hi.ts@@ -1366,6 +1366,8 @@ export const hi = {installRuntimeFailed: "रनटाइम इंस्टॉल नहीं हो सका।",installRuntimeError: "रनटाइम इंस्टॉल शुरू नहीं हो सका।",unsupportedArch: "Windows सैंडबॉक्स (MXC) केवल x64 Windows पर चलता है, इसलिए यह इस PC पर उपलब्ध नहीं है।",+ builtinNeedsUpdate:+ "Windows के बिल्ट-इन कंटेनर को बिल्ड {required} या नया चाहिए, और यह PC {current} चला रहा है। इसे बिना एडमिनिस्ट्रेटर चरण के उपयोग करने के लिए नवीनतम Windows अपडेट इंस्टॉल करें, या नीचे फ़ॉलबैक सैंडबॉक्स चालू करें।",unsupportedBuild: "Windows सैंडबॉक्स (MXC) के लिए Windows 11 24H2 (बिल्ड 26100) या नया चाहिए, इसलिए यह इस PC पर उपलब्ध नहीं है।",permissionsIntro: "चुनें कि टूल कब पहले पूछें, और क्या Python और टर्मिनल OS सैंडबॉक्स के अंदर भी चलें।",permissionLabel: "टूल अनुमतियाँ",diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.tsindex 42442c59bff..3119ca7f095 100644--- a/studio/frontend/src/i18n/locales/it.ts+++ b/studio/frontend/src/i18n/locales/it.ts@@ -1270,6 +1270,7 @@ export const it = {installRuntimeFailed: "Installazione del runtime non riuscita.",installRuntimeError: "Impossibile avviare l'installazione del runtime.",unsupportedArch: "La sandbox di Windows (MXC) funziona solo su Windows x64, quindi non è disponibile su questo PC.",+ builtinNeedsUpdate: "Il container integrato di Windows richiede la build {required} o successiva, e questo PC esegue {current}. Installa l'ultimo aggiornamento di Windows per usarlo senza un passaggio da amministratore, oppure attiva la sandbox di riserva qui sotto.",unsupportedBuild: "La sandbox di Windows (MXC) richiede Windows 11 24H2 (build 26100) o successivo, quindi non è disponibile su questo PC.",permissionsIntro: "Scegli quando gli strumenti chiedono prima e se Python e Terminale vengono eseguiti anche nella sandbox del sistema.",permissionLabel: "Autorizzazioni strumenti",diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.tsindex 3b117396f5a..340c4a99f40 100644--- a/studio/frontend/src/i18n/locales/ja.ts+++ b/studio/frontend/src/i18n/locales/ja.ts@@ -1364,6 +1364,8 @@ export const ja = {installRuntimeFailed: "ランタイムのインストールに失敗しました。",installRuntimeError: "ランタイムのインストールを開始できませんでした。",unsupportedArch: "Windows サンドボックス (MXC) は x64 版 Windows でのみ動作するため、この PC では使用できません。",+ builtinNeedsUpdate:+ "Windows の組み込みコンテナーにはビルド {required} 以降が必要ですが、この PC は {current} です。管理者の手順なしで使うには最新の Windows Update をインストールするか、下のフォールバック サンドボックスをオンにしてください。",unsupportedBuild: "Windows サンドボックス (MXC) には Windows 11 24H2 (ビルド 26100) 以降が必要なため、この PC では使用できません。",permissionsIntro: "ツールが先に確認するタイミングと、Python とターミナルを OS サンドボックス内でも実行するかを選びます。",permissionLabel: "ツールの権限",diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.tsindex fe16677cdd4..f2baf0c3bc3 100644--- a/studio/frontend/src/i18n/locales/ko.ts+++ b/studio/frontend/src/i18n/locales/ko.ts@@ -1362,6 +1362,8 @@ export const ko = {installRuntimeFailed: "런타임을 설치하지 못했습니다.",installRuntimeError: "런타임 설치를 시작하지 못했습니다.",unsupportedArch: "Windows 샌드박스(MXC)는 x64 Windows에서만 실행되므로 이 PC에서는 사용할 수 없습니다.",+ builtinNeedsUpdate:+ "Windows 기본 제공 컨테이너에는 빌드 {required} 이상이 필요하지만 이 PC는 {current}입니다. 관리자 단계 없이 사용하려면 최신 Windows 업데이트를 설치하거나 아래의 대체 샌드박스를 켜세요.",unsupportedBuild: "Windows 샌드박스(MXC)는 Windows 11 24H2(빌드 26100) 이상이 필요하므로 이 PC에서는 사용할 수 없습니다.",permissionsIntro: "도구가 먼저 묻는 시점과 Python 및 터미널을 OS 샌드박스 안에서도 실행할지 선택합니다.",permissionLabel: "도구 권한",diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.tsindex 417a67b39ea..f75b34fc161 100644--- a/studio/frontend/src/i18n/locales/pt-br.ts+++ b/studio/frontend/src/i18n/locales/pt-br.ts@@ -1365,6 +1365,7 @@ export const ptBR = {installRuntimeFailed: "A instalação do runtime falhou.",installRuntimeError: "Não foi possível iniciar a instalação do runtime.",unsupportedArch: "O sandbox do Windows (MXC) só funciona no Windows x64, então não está disponível neste PC.",+ builtinNeedsUpdate: "O contêiner integrado do Windows precisa da build {required} ou mais recente, e este PC usa {current}. Instale a atualização mais recente do Windows para usá-lo sem uma etapa de administrador, ou ative o sandbox alternativo abaixo.",unsupportedBuild: "O sandbox do Windows (MXC) precisa do Windows 11 24H2 (build 26100) ou mais recente, então não está disponível neste PC.",permissionsIntro: "Escolha quando as ferramentas perguntam antes e se Python e Terminal também rodam dentro do sandbox do sistema.",permissionLabel: "Permissões de ferramentas",diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.tsindex db40edc936b..c388a325b59 100644--- a/studio/frontend/src/i18n/locales/ru.ts+++ b/studio/frontend/src/i18n/locales/ru.ts@@ -1365,6 +1365,8 @@ export const ru = {installRuntimeFailed: "Не удалось установить среду.",installRuntimeError: "Не удалось начать установку среды.",unsupportedArch: "Песочница Windows (MXC) работает только на Windows x64, поэтому на этом ПК она недоступна.",+ builtinNeedsUpdate:+ "Встроенному контейнеру Windows нужна сборка {required} или новее, а на этом ПК установлена {current}. Установите последнее обновление Windows, чтобы использовать его без шага администратора, или включите резервную песочницу ниже.",unsupportedBuild: "Песочнице Windows (MXC) нужна Windows 11 24H2 (сборка 26100) или новее, поэтому на этом ПК она недоступна.",permissionsIntro: "Выберите, когда инструменты спрашивают заранее и запускаются ли Python и Терминал также в песочнице ОС.",permissionLabel: "Разрешения инструментов",diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.tsindex aa91d42016a..4f3cf813992 100644--- a/studio/frontend/src/i18n/locales/sv.ts+++ b/studio/frontend/src/i18n/locales/sv.ts@@ -1495,6 +1495,8 @@ export const sv = {"Det gick inte att starta installationen av körmiljön.",unsupportedArch:"Windows-sandlådan (MXC) körs bara på x64-Windows, så den är inte tillgänglig på den här datorn.",+ builtinNeedsUpdate:+ "Windows inbyggda container kräver version {required} eller senare, och den här datorn kör {current}. Installera den senaste Windows-uppdateringen för att använda den utan administratörssteg, eller slå på reservsandlådan nedan.",unsupportedBuild:"Windows-sandlådan (MXC) kräver Windows 11 24H2 (version 26100) eller senare, så den är inte tillgänglig på den här datorn.",permissionsIntro:diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.tsindex 247918e8b1c..cf91c609d87 100644--- a/studio/frontend/src/i18n/locales/zh-CN.ts+++ b/studio/frontend/src/i18n/locales/zh-CN.ts@@ -1360,6 +1360,8 @@ export const zhCN = {installRuntimeFailed: "运行时安装失败。",installRuntimeError: "无法开始安装运行时。",unsupportedArch: "Windows 沙箱 (MXC) 仅支持 x64 版 Windows,因此在此电脑上不可用。",+ builtinNeedsUpdate:+ "Windows 内置容器需要版本 {required} 或更高,而这台电脑运行的是 {current}。安装最新的 Windows 更新即可无需管理员步骤使用它,或在下方开启备用沙盒。",unsupportedBuild: "Windows 沙箱 (MXC) 需要 Windows 11 24H2(版本 26100)或更高版本,因此在此电脑上不可用。",permissionsIntro: "选择工具何时先询问,以及 Python 和终端是否也在操作系统沙盒中运行。",permissionLabel: "工具权限",diff --git a/studio/frontend/tests/sandbox-settings-api.test.ts b/studio/frontend/tests/sandbox-settings-api.test.tsindex 0b7df8d30e0..657a2eab163 100644--- a/studio/frontend/tests/sandbox-settings-api.test.ts+++ b/studio/frontend/tests/sandbox-settings-api.test.ts@@ -125,6 +125,8 @@ test("the status maps to camelCase and keeps the saved and effective values aparprepareRepeatsAfterRestart: true,// An older server does not say which MXC tier runs.builtinContainer: null,+ windowsBuild: null,+ builtinContainerBuild: null,},memory: null,setup: null,@@ -383,3 +385,23 @@ test("an unsupported Windows is passed through, anything unknown is dropped", as);}});++test("the build that adds the built-in container reaches the tab", async () => {+ const { api } = loadApi(() =>+ json({+ ...WINDOWS_STATUS,+ windows: {+ ...WINDOWS_STATUS.windows,+ windows_build: "26200.6584",+ builtin_container_build: "26200.9278",+ },+ }),+ );+ const status = await api.loadSandboxStatus(false, "fallback");+ const win = status.windows as {+ windowsBuild: string | null;+ builtinContainerBuild: string | null;+ };+ assert.equal(win.windowsBuild, "26200.6584");+ assert.equal(win.builtinContainerBuild, "26200.9278");+});diff --git a/studio/frontend/tests/sandbox-settings-state.test.ts b/studio/frontend/tests/sandbox-settings-state.test.tsindex c6d0a22324e..3355ca9c564 100644--- a/studio/frontend/tests/sandbox-settings-state.test.ts+++ b/studio/frontend/tests/sandbox-settings-state.test.ts@@ -33,6 +33,8 @@ const windows = (hostPrepMissing: [],prepareRepeatsAfterRestart: true,builtinContainer: null,+ windowsBuild: null,+ builtinContainerBuild: null,...overrides,});@@ -262,7 +264,11 @@ test("the setup job's first read is held to the same rule", () => {});test("a missing runtime offers the install unless this Windows cannot run MXC", () => {- const missing = windowsView(windows({ runtimeInstalled: false }), null, false);+ const missing = windowsView(+ windows({ runtimeInstalled: false }),+ null,+ false,+ );assert.equal(missing.runtimeMissing, true);assert.equal(missing.showInstallRuntime, true);assert.equal(missing.unsupported, null);@@ -294,7 +300,31 @@ test("the tool rows keep only their badge while a section below has the answer",toolRowsQuiet(false, view({ hostPrepMissing: ["prepare-null-device"] })),true,);- assert.equal(toolRowsQuiet(false, view({ runtimeUnsupported: "build" })), true);+ assert.equal(+ toolRowsQuiet(false, view({ runtimeUnsupported: "build" })),+ true,+ );// Prepared, yet a tool still fails: its own reason is the only clue left.assert.equal(toolRowsQuiet(false, view({})), false);});++test("a PC behind the Windows update that adds the built-in container is told which build", () => {+ // #13656: a feature-update policy held 25H2 below 26200.9278.+ const behind = {+ windowsBuild: "26200.6584",+ builtinContainerBuild: "26200.9278",+ };+ for (const builtinContainer of [false, null]) {+ assert.deepEqual(+ windowsView(windows({ ...behind, builtinContainer }), null, false)+ .builtinUpdate,+ { current: "26200.6584", required: "26200.9278" },+ );+ }+ assert.equal(+ windowsView(windows({ ...behind, builtinContainer: true }), null, false)+ .builtinUpdate,+ null,+ );+ assert.equal(windowsView(windows(), null, false).builtinUpdate, null);+});