fix(webui): name the gateway sandbox launcher in setup guidance

This commit is contained in:
Xubin Ren committed 2026-11-08 14:29:46 +08:00
1 parent f5e5bd6ea0
commit 44d567e37c
31 files changed
+230 -86

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import type { SandboxCheck } from "./types";
/** Names come from the gateway's supported backend, never the browser's OS. */
export function sandboxLauncherDisplay(backend: SandboxCheck["supported_backend"] | undefined) {
if (backend === "bwrap") return { name: "Bubblewrap (bwrap)", executable: "bwrap" };
if (backend === "seatbelt") return { name: "macOS Seatbelt (sandbox-exec)", executable: "sandbox-exec" };
return null;
}