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-Beginnerf2b31cba02dd
diff --git a/apps/desktop/test/computer-use-permission-ipc.test.mjs b/apps/desktop/test/computer-use-permission-ipc.test.mjs
index 41042b5b4..8e93c9760 100644
--- a/apps/desktop/test/computer-use-permission-ipc.test.mjs
+++ b/apps/desktop/test/computer-use-permission-ipc.test.mjs
@@ -35,6 +35,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);