feat(settings): check sandbox launchers and configure protected paths

This commit is contained in:
Xubin Ren committed 2026-11-08 14:29:46 +08:00
1 parent f158779c60
commit 5b84b78cac
33 files changed
+1179 -20

No files matched your search

+6
View File
@@ -1595,6 +1595,12 @@ export async function updateRuntimeConfigSettings(
return mutation<SettingsPayload>(transport, "settings.runtime_config.update", { values });
}
export async function checkSandboxSettings(
transport: WebUIMutationTransport,
): Promise<{ sandbox: import("@/lib/types").SandboxCheck }> {
return mutation(transport, "settings.sandbox.check", {});
}
export function starPromptAction(
transport: WebUIMutationTransport,
action: "claim" | "dismiss",
+9
View File
@@ -720,6 +720,14 @@ export type ProviderOAuthCompletionResult = SettingsPayload | ProviderOAuthPendi
export type RuntimeConfigValue = string | number | boolean | string[] | null;
export interface SandboxCheck {
state: "disabled" | "off" | "unsupported" | "unchecked" | "unavailable" | "passed";
reason: string;
launcher: string | null;
revision: string;
supported_backend: "bwrap" | "seatbelt" | null;
}
export interface SettingsPayload {
runtime_config?: Record<string, RuntimeConfigValue>;
surface?: RuntimeSurface;
@@ -1014,6 +1022,7 @@ export interface SettingsPayload {
exec_enabled: boolean;
exec_max_runtime_limit?: number;
exec_sandbox?: string | null;
exec_sandbox_status?: SandboxCheck;
exec_path_prepend_set: boolean;
exec_path_append_set: boolean;
};