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: show when Windows MXC already runs in the built-in container (#12938)
Daniel Han7004cfd91c19
diff --git a/studio/backend/core/inference/mxc_probe.py b/studio/backend/core/inference/mxc_probe.pyindex fffd003eb6e..7f05817d85b 100644--- a/studio/backend/core/inference/mxc_probe.py+++ b/studio/backend/core/inference/mxc_probe.py@@ -28,6 +28,9 @@ MSYS_NAMESPACE_REASON = ("Git Bash (MSYS2) cannot start in the MXC container, which denies the global named-object ""directory it creates (microsoft/mxc#1061).")+NO_BUILTIN_CONTAINER_REASON = (+ "This Windows has no built-in container (BaseContainer), and the fallback sandbox is off."+)_host_prep_cache: dict[str, tuple[float, str | None]] = {}@@ -306,6 +309,8 @@ def _probe(selected_executable, execution_kind, output):return False, MSYS_NAMESPACE_REASON+ if "BaseContainer is unavailable" in (output or ""):+ return False, NO_BUILTIN_CONTAINER_REASONreturn False, "the live MXC probe did not complete cleanly"if execution_kind == "terminal":captured = workdir / "outside-read.txt"diff --git a/studio/backend/core/inference/sandbox_windows_mxc.py b/studio/backend/core/inference/sandbox_windows_mxc.pyindex 8b3e1a845eb..f7bf4644bfa 100644--- a/studio/backend/core/inference/sandbox_windows_mxc.py+++ b/studio/backend/core/inference/sandbox_windows_mxc.py@@ -118,7 +118,7 @@ def capability_snapshot(else:remediation = ("Install the pinned Microsoft WXC runtime and enable BaseContainer/PSEC. On Windows "- "builds without it, turn on Settings > Sandbox > Turn on the Windows sandbox (or "+ "builds without it, turn on Settings > Sandbox > Use the fallback sandbox (or "f"set {mxc_policy.DACL_FALLBACK_ENV}=1) to use the AppContainer ""tier: it adds temporary permission entries to the granted host folders, removed ""on exit, and needs a one-time administrator host preparation plus one per reboot. "diff --git a/studio/backend/routes/settings.py b/studio/backend/routes/settings.pyindex 5763712b54d..daf8548f854 100644--- a/studio/backend/routes/settings.py+++ b/studio/backend/routes/settings.py@@ -4662,6 +4662,8 @@ class SandboxWindowsStatus(BaseModel):# None: MXC could not tell; [] prepared; otherwise the wxc-host-prep verbs still missing.host_prep_missing: Optional[list[str]] = Noneprepare_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] = Noneclass SandboxSetupStatus(BaseModel):@@ -4795,6 +4797,21 @@ def _sandbox_windows_status() -> SandboxWindowsStatus:)+def _sandbox_windows_block(python, dacl_at_probe: bool) -> SandboxWindowsStatus:+ """wxc-exec does not name its tier, but with the fallback off it runs only in BaseContainer."""+ from core.inference import mxc_probe++ windows = _sandbox_windows_status()+ builtin = None+ # A save between the probe and this read would pair one setting's verdict with the other.+ if windows.runtime_installed and not (windows.allow_dacl_fallback or dacl_at_probe):+ if python.available and python.backend == "mxc-processcontainer":+ builtin = True+ elif python.reason == mxc_probe.NO_BUILTIN_CONTAINER_REASON:+ builtin = False+ return windows.model_copy(update = {"builtin_container": builtin})++def _build_sandbox_status(force: bool) -> SandboxStatusResponse:"""Blocking (live probes); run off the event loop. Never elevates: probes only."""import sys@@ -4811,6 +4828,10 @@ def _build_sandbox_status(force: bool) -> SandboxStatusResponse:tools.reset_terminal_profile_cache()# After the resets above: they raise the floor an earlier generation is dropped under.generation = os_sandbox.tool_isolation_generation()+ dacl_at_probe = False+ if sys.platform == "win32":+ from core.inference import mxc_policy+ dacl_at_probe = mxc_policy.dacl_fallback_enabled()python = os_sandbox.capability_snapshot(force = force, execution_kind = "python", selected_executable = sys.executable)@@ -4834,7 +4855,7 @@ def _build_sandbox_status(force: bool) -> SandboxStatusResponse:python = _sandbox_tool_status(python),terminal = _sandbox_tool_status(terminal),terminal_shell = shell,- windows = _sandbox_windows_status() if sys.platform == "win32" else None,+ windows = _sandbox_windows_block(python, dacl_at_probe) if sys.platform == "win32" else None,setup = _sandbox_setup_status(python.available and terminal.available),checked_at = time.time(),)diff --git a/studio/backend/tests/test_mxc_git_bash_namespace.py b/studio/backend/tests/test_mxc_git_bash_namespace.pyindex a7845de547f..00bee31131e 100644--- a/studio/backend/tests/test_mxc_git_bash_namespace.py+++ b/studio/backend/tests/test_mxc_git_bash_namespace.py@@ -93,6 +93,25 @@ def test_other_failures_keep_the_generic_reason(assert reason == "the live MXC probe did not complete cleanly"+# wxc-exec's last line with the fallback off on Windows Server 2025 (windows-latest), which has no BaseContainer.+NO_BASECONTAINER = (+ "error: BaseContainer is unavailable on this system and DACL fallback is disabled "+ "(fallback.allowDaclMutation=false). Run on a system with the BaseContainer API or bfscfg.exe, "+ "or set fallback.allowDaclMutation=true in your config.\n"+)++[email protected]("cleanup", ["complete", "uncertain"])[email protected]("executable, kind", [("python.exe", "python"), ("cmd.exe", "terminal")])+def test_a_missing_builtin_container_is_named(monkeypatch, tmp_path, executable, kind, cleanup):+ """It refuses before any container exists, so the cleanup state cannot hide it."""+ available, reason = _run_probe(+ monkeypatch, tmp_path, executable, kind, NO_BASECONTAINER, 1, cleanup+ )+ assert available is False+ assert reason == mxc_probe.NO_BUILTIN_CONTAINER_REASON++def _count_live_probes(monkeypatch, reason):clock = [1000.0]calls = []diff --git a/studio/backend/tests/test_sandbox_settings_route.py b/studio/backend/tests/test_sandbox_settings_route.pyindex 0b44a0933d3..cc2d1223053 100644--- a/studio/backend/tests/test_sandbox_settings_route.py+++ b/studio/backend/tests/test_sandbox_settings_route.py@@ -193,6 +193,67 @@ def test_windows_status_carries_the_opt_in_block(host, windows):assert body["windows"]["prepare_repeats_after_restart"] is True+ "dacl, capability, expected",+ [+ # With the fallback off wxc-exec runs only in BaseContainer, so a working MXC is that tier.+ (False, _cap(backend = "mxc-processcontainer"), True),+ (+ False,+ os_sandbox.SandboxCapability(+ backend = "mxc-processcontainer",+ available = False,+ reason = mxc_probe.NO_BUILTIN_CONTAINER_REASON,+ ),+ False,+ ),+ (False, _cap(available = False, backend = "mxc-processcontainer"), None),+ # With the fallback on, wxc-exec may have used either tier.+ (True, _cap(backend = "mxc-processcontainer"), None),+ ],+)+def test_windows_status_names_the_builtin_container(+ host, windows, monkeypatch, dacl, capability, expected+):+ _calls, saved = host+ saved["dacl"] = dacl+ monkeypatch.setattr(os_sandbox, "capability_snapshot", lambda **_kw: capability)+ with _client(OWNER) as client:+ body = client.get("/sandbox").json()+ assert body["windows"]["builtin_container"] is expected++[email protected]("dacl_before, dacl_after", [(True, False), (False, True)])+def test_a_save_during_the_probe_leaves_the_builtin_container_unknown(+ host, windows, monkeypatch, dacl_before, dacl_after+):+ """A verdict measured under one fallback setting says nothing about the tier under the other."""+ _calls, saved = host+ saved["dacl"] = dacl_before++ def snapshot(**_kw):+ saved["dacl"] = dacl_after # the owner saved the switch while the probe ran+ return _cap(backend = "mxc-processcontainer")++ monkeypatch.setattr(os_sandbox, "capability_snapshot", snapshot)+ with _client(OWNER) as client:+ body = client.get("/sandbox").json()+ assert body["windows"]["allow_dacl_fallback"] is dacl_after+ assert body["windows"]["builtin_container"] is None+++def test_without_the_runtime_the_builtin_container_is_unknown(host, windows, monkeypatch):+ block = _windows_block({"dacl": False, "grants": True}).model_copy(+ update = {"runtime_installed": False}+ )+ monkeypatch.setattr(settings, "_sandbox_windows_status", lambda: block)+ monkeypatch.setattr(+ os_sandbox, "capability_snapshot", lambda **_kw: _cap(backend = "mxc-processcontainer")+ )+ with _client(OWNER) as client:+ assert client.get("/sandbox").json()["windows"]["builtin_container"] is None++def test_managed_account_is_refused(host, windows):with _client(ALICE) as client:assert client.get("/sandbox").status_code == 403diff --git a/studio/frontend/src/features/settings/api/sandbox-isolation.ts b/studio/frontend/src/features/settings/api/sandbox-isolation.tsindex 01ce513265b..d723a7972ea 100644--- a/studio/frontend/src/features/settings/api/sandbox-isolation.ts+++ b/studio/frontend/src/features/settings/api/sandbox-isolation.ts@@ -35,6 +35,8 @@ export type WindowsSandboxStatus = {// null: MXC could not tell which host preparation steps are missing.hostPrepMissing: string[] | null;prepareRepeatsAfterRestart: boolean;+ // true: MXC runs in Windows' built-in container; false: this Windows has none; null: unknown.+ builtinContainer: boolean | null;};export type SandboxSetupPlan = {@@ -119,6 +121,8 @@ type ApiWindowsStatus = {host_prep_missing?: string[] | null;// biome-ignore lint/style/useNamingConvention: API schemaprepare_repeats_after_restart?: boolean;+ // biome-ignore lint/style/useNamingConvention: API schema+ builtin_container?: boolean | null;};type ApiSandboxStatus = {@@ -197,6 +201,7 @@ function windowsFromApi(? null: windows.host_prep_missing,prepareRepeatsAfterRestart: windows.prepare_repeats_after_restart ?? true,+ builtinContainer: windows.builtin_container ?? 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 bef7564c4e0..8109c4ad845 100644--- a/studio/frontend/src/features/settings/tabs/sandbox-tab-state.ts+++ b/studio/frontend/src/features/settings/tabs/sandbox-tab-state.ts@@ -55,6 +55,7 @@ export type WindowsView = {unsupported: RuntimeUnsupported | null;runtimeMissing: boolean;showInstallRuntime: boolean;+ builtinInUse: boolean;optInChecked: boolean;optInDisabled: boolean;optInLocked: boolean;@@ -92,6 +93,9 @@ export function windowsView(unsupported,runtimeMissing,showInstallRuntime: runtimeMissing && unsupported === null,+ builtinInUse:+ windows.builtinContainer === true &&+ !(runtimeMissing || windows.allowDaclFallback),optInChecked: windows.allowDaclFallback,optInDisabled:runtimeMissing || windows.daclLockedByEnvironment || saving || running,diff --git a/studio/frontend/src/features/settings/tabs/sandbox-tab.tsx b/studio/frontend/src/features/settings/tabs/sandbox-tab.tsxindex 10b3f63221d..54ba599f2a1 100644--- a/studio/frontend/src/features/settings/tabs/sandbox-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/sandbox-tab.tsx@@ -685,9 +685,27 @@ function OsSandboxSections() {</div>) : (<>+ {view.builtinInUse ? (+ <SettingsRow+ label={t("settings.sandbox.builtinLabel")}+ description={t("settings.sandbox.builtinDescription")}+ >+ <Badge+ variant="outline"+ className="h-8 gap-1.5 border-transparent bg-muted px-3 text-sm text-foreground [&>svg]:size-3.5!"+ >+ <HugeiconsIcon icon={ShieldIcon} strokeWidth={1.75} />+ {t("settings.sandbox.builtinInUse")}+ </Badge>+ </SettingsRow>+ ) : null}<SettingsRowlabel={t("settings.sandbox.optInLabel")}- description={t("settings.sandbox.optInDescription")}+ description={+ view.builtinInUse+ ? t("settings.sandbox.optInNotNeeded")+ : t("settings.sandbox.optInDescription")+ }><div className="flex flex-col items-end gap-1"><Switchdiff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.tsindex 33b54d981c6..1ac5892d365 100644--- a/studio/frontend/src/i18n/locales/ar.ts+++ b/studio/frontend/src/i18n/locales/ar.ts@@ -1173,10 +1173,14 @@ export const ar = {prepareError: "تعذّر تجهيز هذا الكمبيوتر",unsupported: "لا يُبلغ خادم Unsloth هذا عن حالة وضع الحماية بعد. حدّث Unsloth لإدارتها هنا.",windowsSection: "وضع حماية Windows (معاينة)",- windowsDescription: "وضع حماية MXC من Microsoft، لإصدارات Windows التي لا تتضمن وضع حماية مدمجًا.",- optInLabel: "تشغيل وضع حماية Windows",- optInDescription: "بعدها لا يمكن لـ Python والطرفية تغيير الملفات إلا في مجلد المحادثة.",- disclosure: "يتطلب خطوة مسؤول لمرة واحدة، تجهيز هذا الكمبيوتر، ويجب تكرارها بعد كل إعادة تشغيل. أثناء تشغيل أداة، يمنحها Unsloth وصولًا مؤقتًا إلى المجلدات التي تحتاجها. لا يزال MXC معاينة، وليس حدًا أمنيًا.",+ windowsDescription: "وضع حماية MXC من Microsoft. يستخدم الحاوية المدمجة في Windows، أو وضع حماية بديلًا في إصدارات Windows التي لا تتضمنها.",+ builtinLabel: "الحاوية المدمجة",+ builtinDescription: "يعمل وضع حماية Windows داخل حاوية Windows المدمجة، دون أي خطوة مسؤول.",+ builtinInUse: "قيد الاستخدام",+ optInLabel: "استخدام وضع الحماية البديل",+ optInDescription: "لإصدارات Windows التي لا تتضمن الحاوية المدمجة. بعدها لا يمكن لـ Python والطرفية تغيير الملفات إلا في مجلد المحادثة.",+ optInNotNeeded: "غير مطلوب على هذا الكمبيوتر، لأن الحاوية المدمجة تعمل.",+ disclosure: "يتطلب وضع الحماية البديل خطوة مسؤول لمرة واحدة، تجهيز هذا الكمبيوتر، ويجب تكرارها بعد كل إعادة تشغيل. أثناء تشغيل أداة، يمنحها Unsloth وصولًا مؤقتًا إلى المجلدات التي تحتاجها. لا يزال MXC معاينة، وليس حدًا أمنيًا.",lockedDacl: "مضبوط بواسطة UNSLOTH_MXC_ALLOW_DACL_FALLBACK",grantsLabel: "بدء أسرع للأدوات",grantsDescription: "يحتفظ بوصول للقراءة فقط إلى مجلدات بيئة التشغيل الخاصة بـ Unsloth بين الاستدعاءات. عند إيقافه، يبدأ كل استدعاء أبطأ ببضع ثوانٍ.",diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.tsindex cc08ef6cf52..4200b143b84 100644--- a/studio/frontend/src/i18n/locales/de.ts+++ b/studio/frontend/src/i18n/locales/de.ts@@ -1177,10 +1177,14 @@ export const de = {prepareError: "Dieser PC konnte nicht vorbereitet werden",unsupported: "Dieser Unsloth-Server meldet noch keinen Sandbox-Status. Aktualisiere Unsloth, um ihn hier zu verwalten.",windowsSection: "Windows-Sandbox (Vorschau)",- windowsDescription: "Die MXC-Sandbox von Microsoft, für Windows-Versionen ohne eingebaute Sandbox.",- optInLabel: "Windows-Sandbox aktivieren",- optInDescription: "Python und Terminal können dann nur Dateien im Ordner des Chats ändern.",- disclosure: "Erfordert einen einmaligen Administratorschritt, Diesen PC vorbereiten, der nach jedem Neustart wiederholt werden muss. Während ein Tool läuft, gibt Unsloth ihm vorübergehend Zugriff auf die benötigten Ordner. MXC ist noch eine Vorschau, keine Sicherheitsgrenze.",+ windowsDescription: "Die MXC-Sandbox von Microsoft. Sie nutzt den in Windows eingebauten Container oder, auf Windows-Versionen ohne ihn, einen Fallback.",+ builtinLabel: "Eingebauter Container",+ builtinDescription: "Die Windows-Sandbox läuft im eingebauten Container von Windows, ohne Administratorschritt.",+ builtinInUse: "Aktiv",+ optInLabel: "Fallback-Sandbox verwenden",+ optInDescription: "Für Windows-Versionen ohne eingebauten Container. Python und Terminal können dann nur Dateien im Ordner des Chats ändern.",+ optInNotNeeded: "Auf diesem PC nicht nötig, da der eingebaute Container funktioniert.",+ disclosure: "Der Fallback erfordert einen einmaligen Administratorschritt, Diesen PC vorbereiten, der nach jedem Neustart wiederholt werden muss. Während ein Tool läuft, gibt Unsloth ihm vorübergehend Zugriff auf die benötigten Ordner. MXC ist noch eine Vorschau, keine Sicherheitsgrenze.",lockedDacl: "Festgelegt durch UNSLOTH_MXC_ALLOW_DACL_FALLBACK",grantsLabel: "Schnellerer Tool-Start",grantsDescription: "Behält zwischen Aufrufen den Nur-Lese-Zugriff auf die eigenen Laufzeitordner von Unsloth. Wenn aus, startet jeder Aufruf einige Sekunden langsamer.",diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex d5aeec4e71e..2ff36f3cac0 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -1219,10 +1219,14 @@ export const en = {prepareError: "Failed to prepare this PC",unsupported: "This Unsloth server does not report sandbox status yet. Update Unsloth to manage it here.",windowsSection: "Windows sandbox (preview)",- windowsDescription: "Microsoft's MXC sandbox, for Windows versions without a built-in one.",- optInLabel: "Turn on the Windows sandbox",- optInDescription: "Python and Terminal can then only change files in the chat's folder.",- disclosure: "Needs a one-time administrator step, Prepare this PC, which has to be repeated after each restart. While a tool runs, Unsloth gives it temporary access to the folders it needs. MXC is still a preview, not a security boundary.",+ windowsDescription: "Microsoft's MXC sandbox. It uses the container built into Windows, or a fallback on Windows versions without one.",+ builtinLabel: "Built-in container",+ builtinDescription: "The Windows sandbox runs in Windows' built-in container, with no administrator step.",+ builtinInUse: "In use",+ optInLabel: "Use the fallback sandbox",+ optInDescription: "For Windows versions without the built-in container. Python and Terminal can then only change files in the chat's folder.",+ optInNotNeeded: "Not needed on this PC, since the built-in container works.",+ disclosure: "The fallback needs a one-time administrator step, Prepare this PC, which has to be repeated after each restart. While a tool runs, Unsloth gives it temporary access to the folders it needs. MXC is still a preview, not a security boundary.",lockedDacl: "Set by UNSLOTH_MXC_ALLOW_DACL_FALLBACK",grantsLabel: "Faster tool starts",grantsDescription: "Keeps read-only access to Unsloth's own runtime folders between calls. When off, each call starts a few seconds slower.",diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.tsindex 74f4d02692c..5d773514f7c 100644--- a/studio/frontend/src/i18n/locales/es.ts+++ b/studio/frontend/src/i18n/locales/es.ts@@ -1176,10 +1176,14 @@ export const es = {prepareError: "No se pudo preparar este PC",unsupported: "Este servidor de Unsloth aún no informa del estado de la sandbox. Actualiza Unsloth para gestionarlo aquí.",windowsSection: "Sandbox de Windows (versión preliminar)",- windowsDescription: "El sandbox MXC de Microsoft, para versiones de Windows sin uno integrado.",- optInLabel: "Activar el sandbox de Windows",- optInDescription: "Así, Python y Terminal solo pueden modificar archivos en la carpeta del chat.",- disclosure: "Requiere un paso único de administrador, Preparar este PC, que hay que repetir después de cada reinicio. Mientras se ejecuta una herramienta, Unsloth le da acceso temporal a las carpetas que necesita. MXC todavía es una versión preliminar, no una barrera de seguridad.",+ windowsDescription: "El sandbox MXC de Microsoft. Usa el contenedor integrado en Windows o, en versiones de Windows sin él, una alternativa.",+ builtinLabel: "Contenedor integrado",+ builtinDescription: "El sandbox de Windows se ejecuta en el contenedor integrado de Windows, sin ningún paso de administrador.",+ builtinInUse: "En uso",+ optInLabel: "Usar el sandbox alternativo",+ optInDescription: "Para versiones de Windows sin el contenedor integrado. Así, Python y Terminal solo pueden modificar archivos en la carpeta del chat.",+ optInNotNeeded: "No hace falta en este PC, porque el contenedor integrado funciona.",+ disclosure: "La alternativa requiere un paso único de administrador, Preparar este PC, que hay que repetir después de cada reinicio. Mientras se ejecuta una herramienta, Unsloth le da acceso temporal a las carpetas que necesita. MXC todavía es una versión preliminar, no una barrera de seguridad.",lockedDacl: "Definido por UNSLOTH_MXC_ALLOW_DACL_FALLBACK",grantsLabel: "Inicio más rápido de herramientas",grantsDescription: "Mantiene el acceso de solo lectura a las carpetas de runtime propias de Unsloth entre llamadas. Si está desactivado, cada llamada tarda unos segundos más en iniciarse.",diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.tsindex 14f2cfaa643..77f0bf602f7 100644--- a/studio/frontend/src/i18n/locales/fr.ts+++ b/studio/frontend/src/i18n/locales/fr.ts@@ -1177,10 +1177,14 @@ export const fr = {prepareError: "Impossible de préparer ce PC",unsupported: "Ce serveur Unsloth n'indique pas encore l'état de la sandbox. Mettez Unsloth à jour pour le gérer ici.",windowsSection: "Bac à sable Windows (aperçu)",- windowsDescription: "Le bac à sable MXC de Microsoft, pour les versions de Windows qui n'en intègrent pas.",- optInLabel: "Activer le bac à sable Windows",- optInDescription: "Python et Terminal ne peuvent alors modifier que les fichiers du dossier de la conversation.",- disclosure: "Nécessite une étape administrateur ponctuelle, Préparer ce PC, à répéter après chaque redémarrage. Pendant l'exécution d'un outil, Unsloth lui donne un accès temporaire aux dossiers dont il a besoin. MXC est encore un aperçu, pas une frontière de sécurité.",+ windowsDescription: "Le bac à sable MXC de Microsoft. Il utilise le conteneur intégré à Windows ou, sur les versions de Windows qui n'en ont pas, une solution de repli.",+ builtinLabel: "Conteneur intégré",+ builtinDescription: "Le bac à sable Windows s'exécute dans le conteneur intégré de Windows, sans étape administrateur.",+ builtinInUse: "Utilisé",+ optInLabel: "Utiliser le bac à sable de repli",+ optInDescription: "Pour les versions de Windows sans conteneur intégré. Python et Terminal ne peuvent alors modifier que les fichiers du dossier de la conversation.",+ optInNotNeeded: "Inutile sur ce PC, car le conteneur intégré fonctionne.",+ disclosure: "La solution de repli nécessite une étape administrateur ponctuelle, Préparer ce PC, à répéter après chaque redémarrage. Pendant l'exécution d'un outil, Unsloth lui donne un accès temporaire aux dossiers dont il a besoin. MXC est encore un aperçu, pas une frontière de sécurité.",lockedDacl: "Défini par UNSLOTH_MXC_ALLOW_DACL_FALLBACK",grantsLabel: "Démarrage plus rapide des outils",grantsDescription: "Conserve l'accès en lecture seule aux dossiers d'exécution propres à Unsloth entre les appels. Désactivé, chaque appel démarre quelques secondes plus lentement.",diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.tsindex c1df5051732..803799fc8a2 100644--- a/studio/frontend/src/i18n/locales/he.ts+++ b/studio/frontend/src/i18n/locales/he.ts@@ -1259,12 +1259,17 @@ export const he = {"שרת Unsloth זה עדיין אינו מדווח על מצב ארגז החול. עדכן את Unsloth כדי לנהל אותו כאן.",windowsSection: "ארגז החול של Windows (תצוגה מקדימה)",windowsDescription:- "ארגז החול MXC של Microsoft, לגרסאות Windows ללא ארגז חול מובנה.",- optInLabel: "הפעל את ארגז החול של Windows",+ "ארגז החול MXC של Microsoft. הוא משתמש בקונטיינר המובנה ב-Windows, ובגרסאות Windows בלעדיו, בארגז חול חלופי.",+ builtinLabel: "קונטיינר מובנה",+ builtinDescription:+ "ארגז החול של Windows רץ בקונטיינר המובנה של Windows, ללא שלב של מנהל מערכת.",+ builtinInUse: "בשימוש",+ optInLabel: "השתמש בארגז החול החלופי",optInDescription:- "Python ו-Terminal יוכלו אז לשנות קבצים רק בתיקיית הצ'אט.",+ "לגרסאות Windows ללא הקונטיינר המובנה. Python ו-Terminal יוכלו אז לשנות קבצים רק בתיקיית הצ'אט.",+ optInNotNeeded: "לא נדרש במחשב זה, כי הקונטיינר המובנה עובד.",disclosure:- "נדרש שלב חד-פעמי של מנהל מערכת, 'הכן מחשב זה', שיש לחזור עליו אחרי כל הפעלה מחדש. בזמן שכלי רץ, Unsloth מעניק לו גישה זמנית לתיקיות שהוא צריך. MXC עדיין בתצוגה מקדימה, ואינו גבול אבטחה.",+ "ארגז החול החלופי דורש שלב חד-פעמי של מנהל מערכת, 'הכן מחשב זה', שיש לחזור עליו אחרי כל הפעלה מחדש. בזמן שכלי רץ, Unsloth מעניק לו גישה זמנית לתיקיות שהוא צריך. MXC עדיין בתצוגה מקדימה, ואינו גבול אבטחה.",lockedDacl: "הוגדר על ידי UNSLOTH_MXC_ALLOW_DACL_FALLBACK",grantsLabel: "הפעלה מהירה יותר של כלים",grantsDescription:diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.tsindex 3d7e2450688..a2d5864e861 100644--- a/studio/frontend/src/i18n/locales/hi.ts+++ b/studio/frontend/src/i18n/locales/hi.ts@@ -1176,10 +1176,14 @@ export const hi = {prepareError: "यह PC तैयार नहीं किया जा सका",unsupported: "यह Unsloth सर्वर अभी सैंडबॉक्स की स्थिति नहीं बताता। इसे यहाँ प्रबंधित करने के लिए Unsloth अपडेट करें।",windowsSection: "Windows सैंडबॉक्स (पूर्वावलोकन)",- windowsDescription: "Microsoft का MXC सैंडबॉक्स, उन Windows संस्करणों के लिए जिनमें अपना सैंडबॉक्स नहीं है।",- optInLabel: "Windows सैंडबॉक्स चालू करें",- optInDescription: "तब Python और टर्मिनल केवल चैट के फ़ोल्डर में फ़ाइलें बदल सकते हैं।",- disclosure: "एक बार का व्यवस्थापक चरण, यह PC तैयार करें, ज़रूरी है, जिसे हर रीस्टार्ट के बाद दोहराना पड़ता है। जब कोई टूल चलता है, तो Unsloth उसे ज़रूरी फ़ोल्डरों तक अस्थायी पहुँच देता है। MXC अभी पूर्वावलोकन है, सुरक्षा सीमा नहीं।",+ windowsDescription: "Microsoft का MXC सैंडबॉक्स। यह Windows में बने कंटेनर का उपयोग करता है, और जिन Windows संस्करणों में वह नहीं है, उनमें एक वैकल्पिक सैंडबॉक्स का।",+ builtinLabel: "बिल्ट-इन कंटेनर",+ builtinDescription: "Windows सैंडबॉक्स Windows के बिल्ट-इन कंटेनर में चलता है, बिना किसी व्यवस्थापक चरण के।",+ builtinInUse: "उपयोग में",+ optInLabel: "वैकल्पिक सैंडबॉक्स का उपयोग करें",+ optInDescription: "उन Windows संस्करणों के लिए जिनमें बिल्ट-इन कंटेनर नहीं है। तब Python और टर्मिनल केवल चैट के फ़ोल्डर में फ़ाइलें बदल सकते हैं।",+ optInNotNeeded: "इस PC पर ज़रूरी नहीं, क्योंकि बिल्ट-इन कंटेनर काम करता है।",+ disclosure: "वैकल्पिक सैंडबॉक्स के लिए एक बार का व्यवस्थापक चरण, यह PC तैयार करें, ज़रूरी है, जिसे हर रीस्टार्ट के बाद दोहराना पड़ता है। जब कोई टूल चलता है, तो Unsloth उसे ज़रूरी फ़ोल्डरों तक अस्थायी पहुँच देता है। MXC अभी पूर्वावलोकन है, सुरक्षा सीमा नहीं।",lockedDacl: "UNSLOTH_MXC_ALLOW_DACL_FALLBACK द्वारा सेट",grantsLabel: "टूल तेज़ी से शुरू करें",grantsDescription: "कॉल के बीच Unsloth के अपने रनटाइम फ़ोल्डरों पर केवल-पढ़ने की पहुँच बनाए रखता है। बंद होने पर हर कॉल कुछ सेकंड धीमी शुरू होती है।",diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.tsindex 6564e99654f..4d34ec2ae8e 100644--- a/studio/frontend/src/i18n/locales/it.ts+++ b/studio/frontend/src/i18n/locales/it.ts@@ -1133,10 +1133,14 @@ export const it = {prepareError: "Impossibile preparare questo PC",unsupported: "Questo server Unsloth non segnala ancora lo stato della sandbox. Aggiorna Unsloth per gestirlo qui.",windowsSection: "Sandbox di Windows (anteprima)",- windowsDescription: "La sandbox MXC di Microsoft, per le versioni di Windows che non ne hanno una integrata.",- optInLabel: "Attiva la sandbox di Windows",- optInDescription: "Python e Terminale potranno modificare solo i file nella cartella della chat.",- disclosure: "Richiede un passaggio di amministratore una tantum, Prepara questo PC, da ripetere dopo ogni riavvio. Mentre uno strumento è in esecuzione, Unsloth gli dà accesso temporaneo alle cartelle di cui ha bisogno. MXC è ancora un'anteprima, non un confine di sicurezza.",+ windowsDescription: "La sandbox MXC di Microsoft. Usa il container integrato in Windows o, nelle versioni di Windows che non lo hanno, un'alternativa.",+ builtinLabel: "Container integrato",+ builtinDescription: "La sandbox di Windows viene eseguita nel container integrato di Windows, senza passaggi di amministratore.",+ builtinInUse: "In uso",+ optInLabel: "Usa la sandbox alternativa",+ optInDescription: "Per le versioni di Windows senza il container integrato. Python e Terminale potranno modificare solo i file nella cartella della chat.",+ optInNotNeeded: "Non serve su questo PC, perché il container integrato funziona.",+ disclosure: "L'alternativa richiede un passaggio di amministratore una tantum, Prepara questo PC, da ripetere dopo ogni riavvio. Mentre uno strumento è in esecuzione, Unsloth gli dà accesso temporaneo alle cartelle di cui ha bisogno. MXC è ancora un'anteprima, non un confine di sicurezza.",lockedDacl: "Impostato da UNSLOTH_MXC_ALLOW_DACL_FALLBACK",grantsLabel: "Avvio più rapido degli strumenti",grantsDescription: "Mantiene l'accesso in sola lettura alle cartelle di runtime di Unsloth tra una chiamata e l'altra. Se disattivato, ogni chiamata si avvia qualche secondo più lentamente.",diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.tsindex be69db5263e..3cc2e028d7c 100644--- a/studio/frontend/src/i18n/locales/ja.ts+++ b/studio/frontend/src/i18n/locales/ja.ts@@ -1175,10 +1175,14 @@ export const ja = {prepareError: "この PC を準備できませんでした",unsupported: "この Unsloth サーバーはまだサンドボックスの状態を報告しません。ここで管理するには Unsloth を更新してください。",windowsSection: "Windows サンドボックス (プレビュー)",- windowsDescription: "Microsoft の MXC サンドボックス。サンドボックスが組み込まれていない Windows バージョン向けです。",- optInLabel: "Windows サンドボックスを有効にする",- optInDescription: "Python とターミナルは、チャットのフォルダー内のファイルだけを変更できるようになります。",- disclosure: "1 回限りの管理者手順「この PC を準備」が必要で、再起動のたびに繰り返す必要があります。ツールの実行中、Unsloth は必要なフォルダーへの一時的なアクセスを与えます。MXC はまだプレビューであり、セキュリティ境界ではありません。",+ windowsDescription: "Microsoft の MXC サンドボックス。Windows に組み込まれたコンテナーを使い、それがない Windows バージョンではフォールバックを使います。",+ builtinLabel: "組み込みコンテナー",+ builtinDescription: "Windows サンドボックスは Windows の組み込みコンテナーで実行され、管理者手順は不要です。",+ builtinInUse: "使用中",+ optInLabel: "フォールバックのサンドボックスを使う",+ optInDescription: "組み込みコンテナーがない Windows バージョン向けです。Python とターミナルは、チャットのフォルダー内のファイルだけを変更できるようになります。",+ optInNotNeeded: "組み込みコンテナーが動作するため、この PC では不要です。",+ disclosure: "フォールバックには 1 回限りの管理者手順「この PC を準備」が必要で、再起動のたびに繰り返す必要があります。ツールの実行中、Unsloth は必要なフォルダーへの一時的なアクセスを与えます。MXC はまだプレビューであり、セキュリティ境界ではありません。",lockedDacl: "UNSLOTH_MXC_ALLOW_DACL_FALLBACK で設定されています",grantsLabel: "ツールの起動を高速化",grantsDescription: "Unsloth 自身のランタイムフォルダーへの読み取り専用アクセスを呼び出し間で保持します。オフにすると、各呼び出しの起動が数秒遅くなります。",diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.tsindex 9fd4a17637b..7c7965dc2d7 100644--- a/studio/frontend/src/i18n/locales/ko.ts+++ b/studio/frontend/src/i18n/locales/ko.ts@@ -1173,10 +1173,14 @@ export const ko = {prepareError: "이 PC를 준비하지 못했습니다",unsupported: "이 Unsloth 서버는 아직 샌드박스 상태를 보고하지 않습니다. 여기서 관리하려면 Unsloth를 업데이트하세요.",windowsSection: "Windows 샌드박스 (미리 보기)",- windowsDescription: "기본 제공 샌드박스가 없는 Windows 버전을 위한 Microsoft의 MXC 샌드박스입니다.",- optInLabel: "Windows 샌드박스 켜기",- optInDescription: "그러면 Python과 터미널은 채팅 폴더의 파일만 변경할 수 있습니다.",- disclosure: "한 번만 하는 관리자 단계인 이 PC 준비가 필요하며, 다시 시작할 때마다 반복해야 합니다. 도구가 실행되는 동안 Unsloth는 필요한 폴더에 대한 임시 액세스 권한을 부여합니다. MXC는 아직 미리 보기이며 보안 경계가 아닙니다.",+ windowsDescription: "Microsoft의 MXC 샌드박스입니다. Windows에 기본 제공되는 컨테이너를 사용하며, 이 컨테이너가 없는 Windows 버전에서는 대체 샌드박스를 사용합니다.",+ builtinLabel: "기본 제공 컨테이너",+ builtinDescription: "Windows 샌드박스가 Windows의 기본 제공 컨테이너에서 실행되며, 관리자 단계가 필요 없습니다.",+ builtinInUse: "사용 중",+ optInLabel: "대체 샌드박스 사용",+ optInDescription: "기본 제공 컨테이너가 없는 Windows 버전용입니다. 그러면 Python과 터미널은 채팅 폴더의 파일만 변경할 수 있습니다.",+ optInNotNeeded: "기본 제공 컨테이너가 작동하므로 이 PC에서는 필요하지 않습니다.",+ disclosure: "대체 샌드박스에는 한 번만 하는 관리자 단계인 이 PC 준비가 필요하며, 다시 시작할 때마다 반복해야 합니다. 도구가 실행되는 동안 Unsloth는 필요한 폴더에 대한 임시 액세스 권한을 부여합니다. MXC는 아직 미리 보기이며 보안 경계가 아닙니다.",lockedDacl: "UNSLOTH_MXC_ALLOW_DACL_FALLBACK으로 설정됨",grantsLabel: "더 빠른 도구 시작",grantsDescription: "호출 사이에 Unsloth 자체 런타임 폴더에 대한 읽기 전용 액세스를 유지합니다. 끄면 각 호출이 몇 초 더 느리게 시작됩니다.",diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.tsindex 5ebe79c5e0d..1e4c591feb5 100644--- a/studio/frontend/src/i18n/locales/pt-br.ts+++ b/studio/frontend/src/i18n/locales/pt-br.ts@@ -1175,10 +1175,14 @@ export const ptBR = {prepareError: "Falha ao preparar este PC",unsupported: "Este servidor do Unsloth ainda não informa o status da sandbox. Atualize o Unsloth para gerenciá-lo aqui.",windowsSection: "Sandbox do Windows (prévia)",- windowsDescription: "O sandbox MXC da Microsoft, para versões do Windows sem um integrado.",- optInLabel: "Ativar o sandbox do Windows",- optInDescription: "Assim, Python e Terminal só podem alterar arquivos na pasta do chat.",- disclosure: "Exige uma etapa única de administrador, Preparar este PC, que precisa ser repetida após cada reinício. Enquanto uma ferramenta roda, o Unsloth dá a ela acesso temporário às pastas de que precisa. O MXC ainda é uma prévia, não uma barreira de segurança.",+ windowsDescription: "O sandbox MXC da Microsoft. Ele usa o contêiner integrado ao Windows ou, em versões do Windows sem ele, uma alternativa.",+ builtinLabel: "Contêiner integrado",+ builtinDescription: "O sandbox do Windows roda no contêiner integrado do Windows, sem nenhuma etapa de administrador.",+ builtinInUse: "Em uso",+ optInLabel: "Usar o sandbox alternativo",+ optInDescription: "Para versões do Windows sem o contêiner integrado. Assim, Python e Terminal só podem alterar arquivos na pasta do chat.",+ optInNotNeeded: "Não é necessário neste PC, porque o contêiner integrado funciona.",+ disclosure: "A alternativa exige uma etapa única de administrador, Preparar este PC, que precisa ser repetida após cada reinício. Enquanto uma ferramenta roda, o Unsloth dá a ela acesso temporário às pastas de que precisa. O MXC ainda é uma prévia, não uma barreira de segurança.",lockedDacl: "Definido por UNSLOTH_MXC_ALLOW_DACL_FALLBACK",grantsLabel: "Início mais rápido das ferramentas",grantsDescription: "Mantém o acesso somente leitura às pastas de runtime do próprio Unsloth entre as chamadas. Quando desativado, cada chamada inicia alguns segundos mais devagar.",diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.tsindex bff7c0ceac6..2e07f42a3ce 100644--- a/studio/frontend/src/i18n/locales/ru.ts+++ b/studio/frontend/src/i18n/locales/ru.ts@@ -1175,10 +1175,14 @@ export const ru = {prepareError: "Не удалось подготовить этот ПК",unsupported: "Этот сервер Unsloth пока не сообщает состояние песочницы. Обновите Unsloth, чтобы управлять им здесь.",windowsSection: "Песочница Windows (предварительная версия)",- windowsDescription: "Песочница MXC от Microsoft для версий Windows без встроенной песочницы.",- optInLabel: "Включить песочницу Windows",- optInDescription: "Тогда Python и терминал смогут изменять файлы только в папке чата.",- disclosure: "Требуется разовый шаг администратора, «Подготовить этот ПК», который нужно повторять после каждой перезагрузки. Пока инструмент работает, Unsloth даёт ему временный доступ к нужным папкам. MXC пока предварительная версия, а не граница безопасности.",+ windowsDescription: "Песочница MXC от Microsoft. Она использует встроенный в Windows контейнер, а в версиях Windows без него использует запасной вариант.",+ builtinLabel: "Встроенный контейнер",+ builtinDescription: "Песочница Windows работает во встроенном контейнере Windows, без шага администратора.",+ builtinInUse: "Используется",+ optInLabel: "Использовать запасную песочницу",+ optInDescription: "Для версий Windows без встроенного контейнера. Тогда Python и терминал смогут изменять файлы только в папке чата.",+ optInNotNeeded: "На этом ПК не нужна, так как встроенный контейнер работает.",+ disclosure: "Запасной песочнице нужен разовый шаг администратора, «Подготовить этот ПК», который нужно повторять после каждой перезагрузки. Пока инструмент работает, Unsloth даёт ему временный доступ к нужным папкам. MXC пока предварительная версия, а не граница безопасности.",lockedDacl: "Задано через UNSLOTH_MXC_ALLOW_DACL_FALLBACK",grantsLabel: "Более быстрый запуск инструментов",grantsDescription: "Сохраняет доступ только для чтения к собственным папкам среды Unsloth между вызовами. Если выключено, каждый вызов запускается на несколько секунд дольше.",diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.tsindex 6377807e162..f7812b48324 100644--- a/studio/frontend/src/i18n/locales/sv.ts+++ b/studio/frontend/src/i18n/locales/sv.ts@@ -1287,12 +1287,18 @@ export const sv = {"Den här Unsloth-servern rapporterar ännu inte sandlådans status. Uppdatera Unsloth för att hantera den här.",windowsSection: "Windows-sandlåda (förhandsversion)",windowsDescription:- "Microsofts MXC-sandlåda, för Windows-versioner utan inbyggd sandlåda.",- optInLabel: "Aktivera Windows-sandlådan",+ "Microsofts MXC-sandlåda. Den använder containern som är inbyggd i Windows, eller en reservsandlåda på Windows-versioner utan den.",+ builtinLabel: "Inbyggd container",+ builtinDescription:+ "Windows-sandlådan körs i Windows inbyggda container, utan något administratörssteg.",+ builtinInUse: "Används",+ optInLabel: "Använd reservsandlådan",optInDescription:- "Python och Terminal kan då bara ändra filer i chattens mapp.",+ "För Windows-versioner utan den inbyggda containern. Python och Terminal kan då bara ändra filer i chattens mapp.",+ optInNotNeeded:+ "Behövs inte på den här datorn, eftersom den inbyggda containern fungerar.",disclosure:- "Kräver ett engångssteg som administratör, Förbered den här datorn, som måste upprepas efter varje omstart. Medan ett verktyg körs ger Unsloth det tillfällig åtkomst till de mappar det behöver. MXC är fortfarande en förhandsversion, inte en säkerhetsgräns.",+ "Reservsandlådan kräver ett engångssteg som administratör, Förbered den här datorn, som måste upprepas efter varje omstart. Medan ett verktyg körs ger Unsloth det tillfällig åtkomst till de mappar det behöver. MXC är fortfarande en förhandsversion, inte en säkerhetsgräns.",lockedDacl: "Inställt av UNSLOTH_MXC_ALLOW_DACL_FALLBACK",grantsLabel: "Snabbare verktygsstarter",grantsDescription:diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.tsindex 962cd9e39c6..9e616aef448 100644--- a/studio/frontend/src/i18n/locales/zh-CN.ts+++ b/studio/frontend/src/i18n/locales/zh-CN.ts@@ -1171,10 +1171,14 @@ export const zhCN = {prepareError: "无法准备此电脑",unsupported: "此 Unsloth 服务器尚未报告沙盒状态。请更新 Unsloth 以便在此管理。",windowsSection: "Windows 沙箱(预览)",- windowsDescription: "Microsoft 的 MXC 沙箱,适用于没有内置沙箱的 Windows 版本。",- optInLabel: "开启 Windows 沙箱",- optInDescription: "开启后,Python 和终端只能更改聊天文件夹中的文件。",- disclosure: "需要一次性的管理员步骤“准备此电脑”,每次重启后都要重新执行。工具运行时,Unsloth 会临时授予它所需文件夹的访问权限。MXC 仍是预览版,不是安全边界。",+ windowsDescription: "Microsoft 的 MXC 沙箱。它使用 Windows 内置的容器;在没有该容器的 Windows 版本上,则使用备用沙箱。",+ builtinLabel: "内置容器",+ builtinDescription: "Windows 沙箱在 Windows 内置的容器中运行,无需管理员步骤。",+ builtinInUse: "使用中",+ optInLabel: "使用备用沙箱",+ optInDescription: "适用于没有内置容器的 Windows 版本。开启后,Python 和终端只能更改聊天文件夹中的文件。",+ optInNotNeeded: "此电脑无需开启,因为内置容器可以正常工作。",+ disclosure: "备用沙箱需要一次性的管理员步骤“准备此电脑”,每次重启后都要重新执行。工具运行时,Unsloth 会临时授予它所需文件夹的访问权限。MXC 仍是预览版,不是安全边界。",lockedDacl: "由 UNSLOTH_MXC_ALLOW_DACL_FALLBACK 设置",grantsLabel: "更快启动工具",grantsDescription: "在调用之间保留对 Unsloth 自身运行时文件夹的只读访问。关闭后,每次调用的启动会慢几秒。",diff --git a/studio/frontend/tests/sandbox-settings-api.test.ts b/studio/frontend/tests/sandbox-settings-api.test.tsindex 09037109195..1a3cc10f918 100644--- a/studio/frontend/tests/sandbox-settings-api.test.ts+++ b/studio/frontend/tests/sandbox-settings-api.test.ts@@ -123,12 +123,30 @@ test("the status maps to camelCase and keeps the saved and effective values apargrantsLockedByEnvironment: false,hostPrepMissing: ["prepare-null-device"],prepareRepeatsAfterRestart: true,+ // An older server does not say which MXC tier runs.+ builtinContainer: null,},setup: null,checkedAt: 12,});});+test("the built-in container verdict reaches the tab", async () => {+ for (const builtin of [true, false, null]) {+ const { api } = loadApi(() =>+ json({+ ...WINDOWS_STATUS,+ windows: { ...WINDOWS_STATUS.windows, builtin_container: builtin },+ }),+ );+ const status = await api.loadSandboxStatus(false, "fallback");+ assert.equal(+ (status.windows as { builtinContainer: boolean | null }).builtinContainer,+ builtin,+ );+ }+});+test("the setup plan and per-tool remediation reach the tab", async () => {const { api } = loadApi(() =>json({diff --git a/studio/frontend/tests/sandbox-settings-state.test.ts b/studio/frontend/tests/sandbox-settings-state.test.tsindex d6d1832bca9..c6d0a22324e 100644--- a/studio/frontend/tests/sandbox-settings-state.test.ts+++ b/studio/frontend/tests/sandbox-settings-state.test.ts@@ -32,6 +32,7 @@ const windows = (grantsLockedByEnvironment: false,hostPrepMissing: [],prepareRepeatsAfterRestart: true,+ builtinContainer: null,...overrides,});@@ -188,6 +189,34 @@ test("the grants switch appears only with the opt-in on and a runtime installed"assert.equal(missing.optInDisabled, true);});+test("the built-in container row shows only when MXC runs in it", () => {+ const builtin = (overrides: Partial<WindowsSandboxStatus>) =>+ windowsView(+ windows({ allowDaclFallback: false, ...overrides }),+ null,+ false,+ ).builtinInUse;+ assert.equal(builtin({ builtinContainer: true }), true);+ assert.equal(builtin({ builtinContainer: false }), false);+ assert.equal(builtin({ builtinContainer: null }), false);+ assert.equal(+ builtin({ builtinContainer: true, allowDaclFallback: true }),+ false,+ );+ assert.equal(+ builtin({ builtinContainer: true, runtimeInstalled: false }),+ false,+ );+ const view = windowsView(+ windows({ allowDaclFallback: false, builtinContainer: true }),+ null,+ false,+ );+ assert.equal(view.optInChecked, false);+ assert.equal(view.optInDisabled, false);+ assert.equal(view.showPrepareButton, false);+});+test("a save in flight disables both switches", () => {const saving = windowsView(windows(), null, true);assert.equal(saving.optInDisabled, true);