Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

test(computer-use): make the macOS IPC fixture platform explicit

new-Beginner066d723f4ad2
diff --git a/apps/desktop/test/computer-use-permission-ipc.test.mjs b/apps/desktop/test/computer-use-permission-ipc.test.mjs
index 86f8392b4..023651f76 100644
--- a/apps/desktop/test/computer-use-permission-ipc.test.mjs
+++ b/apps/desktop/test/computer-use-permission-ipc.test.mjs
@@ -29,6 +29,8 @@ export { registerComputerIpc } from "./apps/desktop/electron/main/ipc/computer-i
export { IPC } from "@pi-desktop/shared";
`, resolveDir: root },
outfile, bundle: true, platform: "node", format: "esm",
+ // Pair the macOS Host reply with the same capture platform on every runner.
+ define: { "process.platform": JSON.stringify("darwin") },
alias: { electron: stub, "@pi-desktop/shared": join(root, "packages/shared/src") },
});
const { registerComputerIpc, IPC } = await import(pathToFileURL(outfile).href);