Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(app): remove arbitrary shell commands from the webview

Manas Raghuwanshi20c78ff7a06f
diff --git a/apps/screenpipe-app-tauri/components/settings/ai-tools-card.tsx b/apps/screenpipe-app-tauri/components/settings/ai-tools-card.tsx
index 0214aab63..487f25a7f 100644
--- a/apps/screenpipe-app-tauri/components/settings/ai-tools-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/ai-tools-card.tsx
@@ -278,11 +278,11 @@ export function AiToolsCard({ onChanged }: { onChanged?: () => void }) {
}, [confirmingDisconnect, rows, connected, removeTool, refresh, onChanged]);
// Reveal the offending config next to the error so the fix is one click
- // away. macOS `open -R` selects the file in Finder (the shell "open" command
- // is already in the app's allowlist); other platforms fall back silently.
+ // away. macOS `open -R` selects the file in Finder (the "open-reveal" entry
+ // in the app's shell allowlist); other platforms fall back silently.
const revealPath = async (path: string) => {
try {
- if (platform() === "macos") await Command.create("open", ["-R", path]).execute();
+ if (platform() === "macos") await Command.create("open-reveal", ["-R", path]).execute();
} catch (e) {
console.warn("[ai-tools] reveal failed:", e);
}
diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
index 7d12b96a8..12b428f91 100644
--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
@@ -1053,7 +1053,7 @@ function SkillsSpotlight({
function PanelConfigError({ err }: { err: FriendlyToolError }) {
const revealPath = async (path: string) => {
try {
- if (platform() === "macos") await Command.create("open", ["-R", path]).execute();
+ if (platform() === "macos") await Command.create("open-reveal", ["-R", path]).execute();
} catch (e) {
console.warn("[connections] reveal failed:", e);
}
@@ -1143,9 +1143,7 @@ function ClaudePanel({
})
.catch(() => setClaudeAppInstalled(false));
} else if (os === "macos") {
- Command.create("exec-sh", ["-c", "ls /Applications/Claude.app"]).execute()
- .then(r => setClaudeAppInstalled(r.code === 0))
- .catch(() => setClaudeAppInstalled(false));
+ macAppExists("Claude").then(setClaudeAppInstalled);
} else {
setClaudeAppInstalled(false);
}
@@ -1179,7 +1177,7 @@ function ClaudePanel({
const openClaude = async () => {
try {
const os = platform();
- if (os === "macos") await Command.create("open", ["-a", "Claude"]).execute();
+ if (os === "macos") await Command.create("open-app", ["-a", "Claude"]).execute();
else if (os === "windows") {
// Try MSIX launch via Windows shell app launcher first
const msixOpened = await openWindowsShellTarget("shell:AppsFolder\\Claude_pzs8sxrjxfjjc!Claude")
@@ -1258,9 +1256,7 @@ function CursorPanel({ onConnected, onDisconnected }: { onConnected?: () => void
.then((exe) => setCursorAppInstalled(!!exe))
.catch(() => setCursorAppInstalled(false));
} else if (os === "macos") {
- Command.create("exec-sh", ["-c", "test -d '/Applications/Cursor.app' || test -d \"$HOME/Applications/Cursor.app\""]).execute()
- .then((r) => setCursorAppInstalled(r.code === 0))
- .catch(() => setCursorAppInstalled(false));
+ macAppExists("Cursor").then(setCursorAppInstalled);
} else {
setCursorAppInstalled(false);
}
@@ -1289,7 +1285,7 @@ function CursorPanel({ onConnected, onDisconnected }: { onConnected?: () => void
const openCursor = async () => {
try {
const os = platform();
- if (os === "macos") await Command.create("open", ["-a", "Cursor"]).execute();
+ if (os === "macos") await Command.create("open-app", ["-a", "Cursor"]).execute();
else if (os === "windows") {
const exe = await findCursorExeOnWindows();
if (exe) await openWindowsShellTarget(exe);
@@ -1372,7 +1368,7 @@ function CodexPanel({ onConnected, onDisconnected }: { onConnected?: () => void;
const openCodex = async () => {
try {
const os = platform();
- if (os === "macos") await Command.create("open", ["-a", "Codex"]).execute();
+ if (os === "macos") await Command.create("open-app", ["-a", "Codex"]).execute();
else await openUrl("https://chatgpt.com/codex");
} catch { await openUrl("https://chatgpt.com/codex"); }
};
diff --git a/apps/screenpipe-app-tauri/components/settings/provider-automations-panel.tsx b/apps/screenpipe-app-tauri/components/settings/provider-automations-panel.tsx
index e2b079684..4cc42619a 100644
--- a/apps/screenpipe-app-tauri/components/settings/provider-automations-panel.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/provider-automations-panel.tsx
@@ -222,7 +222,7 @@ const defaultProviderOpenDependencies: ProviderOpenDependencies = {
openUrl,
getPlatform: platform,
openMacUrl: async (url) => {
- const output = await Command.create("open", [
+ const output = await Command.create("open-codex-url", [
"-b",
"com.openai.codex",
url,
diff --git a/apps/screenpipe-app-tauri/components/settings/voice-memos-card.tsx b/apps/screenpipe-app-tauri/components/settings/voice-memos-card.tsx
index 04f4f679c..7cbb1c503 100644
--- a/apps/screenpipe-app-tauri/components/settings/voice-memos-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/voice-memos-card.tsx
@@ -16,7 +16,7 @@ export function VoiceMemosCard() {
const ui = useGT();
const openFullDiskAccess = async () => {
- await Command.create("open", [
+ await Command.create("open-full-disk-access", [
"x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles",
]).execute();
};
diff --git a/apps/screenpipe-app-tauri/e2e/COVERAGE.md b/apps/screenpipe-app-tauri/e2e/COVERAGE.md
index 18d266150..ed96af77f 100644
--- a/apps/screenpipe-app-tauri/e2e/COVERAGE.md
+++ b/apps/screenpipe-app-tauri/e2e/COVERAGE.md
@@ -10,9 +10,9 @@ and layer declared in the manifest, weighted by confidence and criticality.
- Manifest: `e2e/coverage-map.json`
- Specs directory: `e2e/specs`
-- Mapped specs: 141
-- Declared test blocks: 406
-- Weighted coverage points: 326.5
+- Mapped specs: 142
+- Declared test blocks: 410
+- Weighted coverage points: 330.5
Confidence weights: strong=1.0, partial=0.7, conditional=0.4, smoke=0.3.
Criticality weights: high=1.0, medium=0.7, low=0.4.
@@ -23,9 +23,9 @@ can execute more runtime cases than this number shows.
| Platform | Specs | Declared tests | Weighted points | Layers | Features | Critical score |
| --- | --- | --- | --- | --- | --- | --- |
-| windows | 107 | 343 | 286.1 | 15 | 122 | 85% |
-| macos | 137 | 368 | 296.3 | 17 | 132 | 88% |
-| linux | 95 | 301 | 255.5 | 14 | 119 | 80% |
+| windows | 108 | 347 | 290.1 | 15 | 123 | 85% |
+| macos | 138 | 372 | 300.3 | 17 | 133 | 88% |
+| linux | 96 | 305 | 259.5 | 14 | 120 | 80% |
## Runtime Results
@@ -46,13 +46,13 @@ pass/fail/skip counts.
| local-api | 29 specs / 121 tests / 102.0 pts | 40 specs / 119 tests / 101.9 pts | 24 specs / 89 tests / 80.2 pts |
| notifications | 4 specs / 26 tests / 17.3 pts | 3 specs / 5 tests / 3.4 pts | 2 specs / 4 tests / 3.1 pts |
| onboarding | 9 specs / 39 tests / 34.8 pts | 11 specs / 43 tests / 38.2 pts | 9 specs / 39 tests / 34.8 pts |
-| os-integration | 7 specs / 32 tests / 26.9 pts | 16 specs / 31 tests / 18.8 pts | 2 specs / 15 tests / 10.8 pts |
+| os-integration | 8 specs / 36 tests / 30.9 pts | 17 specs / 35 tests / 22.8 pts | 3 specs / 19 tests / 14.8 pts |
| performance | 3 specs / 45 tests / 45.0 pts | 5 specs / 36 tests / 31.8 pts | 2 specs / 30 tests / 30.0 pts |
| pipes | 6 specs / 20 tests / 20.0 pts | 8 specs / 26 tests / 26.0 pts | 6 specs / 20 tests / 20.0 pts |
| real-ui-e2e | 80 specs / 241 tests / 204.9 pts | 98 specs / 260 tests / 220.3 pts | 74 specs / 217 tests / 190.9 pts |
| settings | 15 specs / 42 tests / 39.0 pts | 17 specs / 36 tests / 31.7 pts | 14 specs / 33 tests / 30.0 pts |
| storage-privacy | 10 specs / 44 tests / 35.3 pts | 10 specs / 29 tests / 28.1 pts | 7 specs / 22 tests / 21.1 pts |
-| tauri-command | 23 specs / 64 tests / 50.9 pts | 35 specs / 87 tests / 69.3 pts | 22 specs / 65 tests / 51.8 pts |
+| tauri-command | 24 specs / 68 tests / 54.9 pts | 36 specs / 91 tests / 73.3 pts | 23 specs / 69 tests / 55.8 pts |
| window-lifecycle | 22 specs / 71 tests / 59.5 pts | 23 specs / 55 tests / 40.9 pts | 16 specs / 44 tests / 34.4 pts |
## Critical Feature Matrix
@@ -234,6 +234,7 @@ pass/fail/skip counts.
| tray-search.spec.ts | windows, macos, linux | window-lifecycle, tauri-command, real-ui-e2e | tray-search, home-search, window-lifecycle | high | partial | command | 2 | Invokes open_search_window and verifies focused floating Search. |
| updater-banner.spec.ts | windows, macos, linux | real-ui-e2e, settings | update-surfacing, settings-persistence | high | partial | mixed | 2 | Synthetic update-available event surfaces the restart-to-update banner. A real Auto-update toggle plus delayed store save verifies restart waits for preference persistence and survives settings-store re-hydration; an E2E-only handoff suppresses the destructive relaunch. Real check/download/install + rollback stay manual via e2e/mock-updates because the debug E2E build disables updater checks. |
| viewer-deeplink.spec.ts | windows, macos, linux | window-lifecycle, tauri-command | viewer-deeplink, window-lifecycle | medium | partial | command | 3 | Viewer window creation and per-path dedupe. |
+| webview-shell-scope.spec.ts | windows, macos, linux | tauri-command, os-integration | webview-shell-scope, ai-tools | high | strong | command | 4 | Calls the shell plugin from a real app webview. The removed exec-sh, sh, cmd and any-argument open entries are rejected by the capability scope, and the macOS Claude/Cursor install check still reaches fs exists. |
| window-activation.spec.ts | macos | window-lifecycle, tauri-command, real-ui-e2e | window-lifecycle, chat | medium | conditional | real-user-flow | 2 | macOS-only show_window_activated focus coverage. |
| window-lifecycle.spec.ts | windows, macos, linux | window-lifecycle, tauri-command, real-ui-e2e | window-lifecycle, onboarding, tray-search | high | strong | mixed | 3 | Home, Search, and onboarding window routing. |
| windows-core-recording.spec.ts | windows | capture-ocr, local-api, audio-device, notifications, storage-privacy, real-ui-e2e | capture-ocr, local-api-auth, local-api-search, audio-device-health, timeline, low-disk-recording-guard | high | conditional | mixed | 13 | Windows recording-enabled lane; low-disk coverage requires teardown of a real CaptureSession and continued API/search availability, while hosted runners can skip only frame-dependent OCR assertions. |
diff --git a/apps/screenpipe-app-tauri/e2e/coverage-map.json b/apps/screenpipe-app-tauri/e2e/coverage-map.json
index 073aff6ca..4af54e56e 100644
--- a/apps/screenpipe-app-tauri/e2e/coverage-map.json
+++ b/apps/screenpipe-app-tauri/e2e/coverage-map.json
@@ -2946,6 +2946,26 @@
"ux": "command",
"notes": "Viewer window creation and per-path dedupe."
},
+ {
+ "spec": "webview-shell-scope.spec.ts",
+ "platforms": [
+ "windows",
+ "macos",
+ "linux"
+ ],
+ "layers": [
+ "tauri-command",
+ "os-integration"
+ ],
+ "features": [
+ "webview-shell-scope",
+ "ai-tools"
+ ],
+ "criticality": "high",
+ "confidence": "strong",
+ "ux": "command",
+ "notes": "Calls the shell plugin from a real app webview. The removed exec-sh, sh, cmd and any-argument open entries are rejected by the capability scope, and the macOS Claude/Cursor install check still reaches fs exists."
+ },
{
"spec": "window-activation.spec.ts",
"platforms": [
diff --git a/apps/screenpipe-app-tauri/e2e/specs/webview-shell-scope.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/webview-shell-scope.spec.ts
new file mode 100644
index 000000000..07017bb73
--- /dev/null
+++ b/apps/screenpipe-app-tauri/e2e/specs/webview-shell-scope.spec.ts
@@ -0,0 +1,90 @@
+// screenpipe — AI that knows everything you've seen, said, or heard
+// https://screenpipe.com
+
+import { existsSync, rmSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { openHomeWindow, waitForAppReady } from "../helpers/test-utils.js";
+
+// Anything that renders untrusted content in the webview can call Tauri IPC
+// directly, bypassing the UI. The shell scope must reject arbitrary commands
+// at that boundary, not just at the call sites the UI happens to use.
+
+// `failure`, not `error`: tauri-plugin-webdriver reports a script result that
+// carries a string `error` field as a WebDriver error.
+type InvokeResult = { ok: boolean; value: unknown; failure: string };
+
+async function invoke(command: string, args: Record<string, unknown>): Promise<InvokeResult> {
+ return (await browser.executeAsync(
+ (cmd: string, payload: Record<string, unknown>, done: (result: InvokeResult) => void) => {
+ const internals = (window as unknown as {
+ __TAURI_INTERNALS__?: { invoke: (c: string, a: unknown) => Promise<unknown> };
+ }).__TAURI_INTERNALS__;
+ if (!internals) {
+ done({ ok: false, value: null, failure: "no tauri internals" });
+ return;
+ }
+ internals
+ .invoke(cmd, payload)
+ .then((value) => done({ ok: true, value, failure: "" }))
+ .catch((error) => done({ ok: false, value: null, failure: String(error) }));
+ },
+ command,
+ args,
+ )) as InvokeResult;
+}
+
+// `program` is the scope entry's `name`, not the binary: the shell plugin
+// looks the name up in the capability scope before it spawns anything.
+function execute(program: string, args: string[]): Promise<InvokeResult> {
+ return invoke("plugin:shell|execute", { program, args, options: {} });
+}
+
+function expectScopeRejection(result: InvokeResult): void {
+ expect(result.ok).toBe(false);
+ expect(result.failure).toMatch(/not allowed/);
+}
+
+describe("Webview shell scope", function () {
+ this.timeout(120_000);
+
+ const marker = join(tmpdir(), `screenpipe-e2e-shell-scope-${process.pid}`);
+
+ before(async () => {
+ rmSync(marker, { force: true });
+ await waitForAppReady();
+ await openHomeWindow();
+ });
+
+ after(() => {
+ rmSync(marker, { force: true });
+ });
+
+ it("rejects sh -c from the webview", async () => {
+ for (const name of ["exec-sh", "sh"]) {
+ expectScopeRejection(await execute(name, ["-c", `touch '${marker}'`]));
+ }
+ expect(existsSync(marker)).toBe(false);
+ });
+
+ it("rejects cmd from the webview", async () => {
+ expectScopeRejection(await execute("cmd", ["/c", `type nul > "${marker}"`]));
+ expect(existsSync(marker)).toBe(false);
+ });
+
+ it("rejects open with arbitrary arguments", async () => {
+ // `open -h` only prints usage, so a regression here has no side effect.
+ expectScopeRejection(await execute("open", ["-h"]));
+ expect((await execute("open-app", ["-a", "Terminal"])).ok).toBe(false);
+ expect((await execute("open-reveal", ["-R", "-a"])).ok).toBe(false);
+ });
+
+ it("can still check whether Claude and Cursor are installed on macOS", async function () {
+ if (process.platform !== "darwin") this.skip();
+ for (const path of ["/Applications/Claude.app", "/Applications/Cursor.app"]) {
+ const result = await invoke("plugin:fs|exists", { path });
+ expect(result.failure).toBe("");
+ expect(typeof result.value).toBe("boolean");
+ }
+ });
+});
diff --git a/apps/screenpipe-app-tauri/lib/__tests__/shell-capability-scope.test.ts b/apps/screenpipe-app-tauri/lib/__tests__/shell-capability-scope.test.ts
new file mode 100644
index 000000000..940c48dc2
--- /dev/null
+++ b/apps/screenpipe-app-tauri/lib/__tests__/shell-capability-scope.test.ts
@@ -0,0 +1,127 @@
+// screenpipe — AI that knows everything you've seen, said, or heard
+// https://screenpipe.com
+
+import { describe, expect, it } from "vitest";
+import { readFileSync, readdirSync } from "node:fs";
+import { resolve } from "node:path";
+
+// The webview is the least trusted part of the app: anything that renders
+// untrusted content there can call `plugin:shell|execute` or `|spawn`
+// directly. These tests pin the shell scope so those calls can only run the
+// exact launches the UI needs, never an arbitrary command.
+
+type ScopeArg = string | { validator: string; raw?: boolean };
+type ScopeEntry = { name: string; cmd: string; args: true | ScopeArg[]; sidecar: boolean };
+
+const capabilitiesDir = resolve(process.cwd(), "src-tauri/capabilities");
+const scopedShellPermissions = new Set(["shell:allow-execute", "shell:allow-spawn"]);
+
+function shellEntries(): ScopeEntry[] {
+ return readdirSync(capabilitiesDir)
+ .filter((file) => file.endsWith(".json"))
+ .flatMap((file) => {
+ const capability = JSON.parse(readFileSync(resolve(capabilitiesDir, file), "utf8"));
+ return (capability.permissions as unknown[]).flatMap((permission) =>
+ typeof permission === "object" &&
+ permission !== null &&
+ scopedShellPermissions.has((permission as { identifier?: string }).identifier ?? "")
+ ? ((permission as { allow: ScopeEntry[] }).allow ?? [])
+ : [],
+ );
+ });
+}
+
+function entry(name: string): ScopeEntry {
+ const found = shellEntries().find((e) => e.name === name);
+ if (!found) throw new Error(`no shell scope entry named ${name}`);
+ return found;
+}
+
+// Mirrors tauri-plugin-shell 2.x `Scope::prepare`: the caller must supply one
+// value per scoped arg, validators are anchored as `^{validator}$`, and fixed
+// args are always taken from the scope.
+function allows(name: string, args: string[]): boolean {
+ const scoped = entry(name).args;
+ if (scoped === true) return true;
+ return scoped.every((arg, i) => {
+ if (typeof arg === "string") return true;
+ const value = args[i];
+ if (value === undefined) return false;
+ const pattern = arg.raw ? arg.validator : `^${arg.validator}$`;
+ return new RegExp(pattern).test(value);
+ });
+}
+
+function frontendSourceFiles(directory: string): string[] {
+ return readdirSync(directory, { withFileTypes: true }).flatMap((dirent) => {
+ const path = resolve(directory, dirent.name);
+ if (dirent.isDirectory()) {
+ return dirent.name === "__tests__" || dirent.name === "node_modules"
+ ? []
+ : frontendSourceFiles(path);
+ }
+ if (!/\.(?:ts|tsx)$/.test(dirent.name)) return [];
+ if (/\.(?:spec|test)\./.test(dirent.name)) return [];
+ return [path];
+ });
+}
+
+describe("webview shell scope", () => {
+ it("grants no shell interpreter", () => {
+ const interpreters = ["sh", "bash", "zsh", "cmd", "powershell", "pwsh", "osascript"];
+ const granted = shellEntries().filter((e) => interpreters.includes(e.cmd));
+ expect(granted.map((e) => e.name)).toEqual([]);
+ });
+
+ it("grants no system command with unrestricted args", () => {
+ const unrestricted = shellEntries().filter((e) => !e.sidecar && e.args === true);
+ expect(unrestricted.map((e) => e.name)).toEqual([]);
+ });
+
+ it("has a scope entry for every Command.create call in the frontend", () => {
+ const names = new Set(shellEntries().map((e) => e.name));
+ const calls = ["app", "components", "lib"]
+ .flatMap((dir) => frontendSourceFiles(resolve(process.cwd(), dir)))
+ .flatMap((file) =>
+ [...readFileSync(file, "utf8").matchAll(/Command\.create\(\s*([^,)]+)/g)].map(
+ (match) => ({ file, name: match[1].trim() }),
+ ),
+ );
+
+ expect(calls.length).toBeGreaterThan(0);
+ for (const call of calls) {
+ // A dynamic name would bypass this check.
+ expect(call.name, call.file).toMatch(/^"[^"]+"$/);
+ expect(names.has(call.name.slice(1, -1)), `${call.file}: ${call.name}`).toBe(true);
+ }
+ });
+
+ it("reveals only absolute paths in Finder", () => {
+ expect(allows("open-reveal", ["-R", "/Users/me/.claude.json"])).toBe(true);
+ expect(allows("open-reveal", ["-R", "-a"])).toBe(false);
+ expect(allows("open-reveal", ["-R", "relative/path"])).toBe(false);
+ });
+
+ it("launches only the named AI apps", () => {
+ for (const app of ["Claude", "Cursor", "Codex"]) {
+ expect(allows("open-app", ["-a", app]), app).toBe(true);
+ }
+ expect(allows("open-app", ["-a", "Terminal"])).toBe(false);
+ // Guards the alternation against `^Claude|Cursor|Codex$` precedence.
+ expect(allows("open-app", ["-a", "ClaudeTerminal"])).toBe(false);
+ expect(allows("open-app", ["-a", "Terminal Codex"])).toBe(false);
+ });
+
+ it("opens only Codex automation deep links in Codex", () => {
+ expect(allows("open-codex-url", ["-b", "com.openai.codex", "codex://automations"])).toBe(true);
+ expect(allows("open-codex-url", ["-b", "com.openai.codex", "codex://automations?id=1"])).toBe(true);
+ expect(allows("open-codex-url", ["-b", "com.openai.codex", "codex://threads/new?prompt=x"])).toBe(false);
+ expect(allows("open-codex-url", ["-b", "com.openai.codex", "/tmp/payload"])).toBe(false);
+ });
+
+ it("opens the Full Disk Access pane with fixed args only", () => {
+ expect(entry("open-full-disk-access").args).toEqual([
+ "x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles",
+ ]);
+ });
+});
diff --git a/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json b/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
index 77837364d..82d449a14 100644
--- a/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
+++ b/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
@@ -329,18 +329,13 @@
]
},
{
- "identifier": "shell:allow-execute",
+ "identifier": "fs:allow-exists",
"allow": [
{
- "name": "exec-sh",
- "cmd": "sh",
- "args": [
- "-c",
- {
- "validator": "\\S[\\s\\S]*"
- }
- ],
- "sidecar": false
+ "path": "/Applications/Claude.app"
+ },
+ {
+ "path": "/Applications/Cursor.app"
}
]
},
@@ -598,20 +593,45 @@
"identifier": "shell:allow-execute",
"allow": [
{
- "name": "open",
+ "name": "open-reveal",
"cmd": "open",
- "args": true,
+ "args": [
+ "-R",
+ {
+ "validator": "/.+"
+ }
+ ],
"sidecar": false
- }
- ]
- },
- {
- "identifier": "shell:allow-execute",
- "allow": [
+ },
{
- "name": "cmd",
- "cmd": "cmd",
- "args": true,
+ "name": "open-app",
+ "cmd": "open",
+ "args": [
+ "-a",
+ {
+ "validator": "(?:Claude|Cursor|Codex)"
+ }
+ ],
+ "sidecar": false
+ },
+ {
+ "name": "open-codex-url",
+ "cmd": "open",
+ "args": [
+ "-b",
+ "com.openai.codex",
+ {
+ "validator": "codex://automations(?:\\?.*)?"
+ }
+ ],
+ "sidecar": false
+ },
+ {
+ "name": "open-full-disk-access",
+ "cmd": "open",
+ "args": [
+ "x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles"
+ ],
"sidecar": false
}
]
diff --git a/docs/COVERAGE.md b/docs/COVERAGE.md
index d6f7a8908..a68d352a8 100644
--- a/docs/COVERAGE.md
+++ b/docs/COVERAGE.md
@@ -24,15 +24,15 @@ results and `cargo llvm-cov` data on top when judging release confidence.
### Tauri E2E
-- Mapped specs: 141
-- Declared test blocks: 406
-- Weighted coverage points: 326.5
+- Mapped specs: 142
+- Declared test blocks: 410
+- Weighted coverage points: 330.5
| Platform | Specs | Declared tests | Weighted points | Layers | Features | Critical score |
| --- | --- | --- | --- | --- | --- | --- |
-| windows | 107 | 343 | 286.1 | 15 | 122 | 85% |
-| macos | 137 | 368 | 296.3 | 17 | 132 | 88% |
-| linux | 95 | 301 | 255.5 | 14 | 119 | 80% |
+| windows | 108 | 347 | 290.1 | 15 | 123 | 85% |
+| macos | 138 | 372 | 300.3 | 17 | 133 | 88% |
+| linux | 96 | 305 | 259.5 | 14 | 120 | 80% |
### Core Engine