Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(remote-ssh): keep host tests CI-portable
vastsa7e6fc9ae828e
diff --git a/apps/desktop/test/pairing-boot-add-remove.test.mjs b/apps/desktop/test/pairing-boot-add-remove.test.mjsindex 7ab8ee6d5..3740aa307 100644--- a/apps/desktop/test/pairing-boot-add-remove.test.mjs+++ b/apps/desktop/test/pairing-boot-add-remove.test.mjs@@ -227,13 +227,13 @@ test("list surface strips device tokens even when the record is on disk", asyncdeviceToken: "device-secret",});const listed = await boot.list();- // The summary shape has exactly these five fields: the four the pairing UX- // has always shown, plus the transport marker the SSH bootstrap added. A- // record with no metadata is a direct host, so the marker defaults there.+ // The summary contains routing/status fields only; the device credential+ // remains private. SSH metadata defaults to the direct transport.assert.deepEqual(Object.keys(listed[0]).sort(), ["connected","hostKey","label",+ "status","transport","url",]);diff --git a/apps/desktop/test/remote-host-supervisor.test.mjs b/apps/desktop/test/remote-host-supervisor.test.mjsindex bb41fc3fd..d0b4f1b2d 100644--- a/apps/desktop/test/remote-host-supervisor.test.mjs+++ b/apps/desktop/test/remote-host-supervisor.test.mjs@@ -4,6 +4,7 @@ import { register } from "node:module";import { dirname, join } from "node:path";import { fileURLToPath, pathToFileURL } from "node:url";import { mkdtemp, mkdir, writeFile, readFile, symlink, rm } from "node:fs/promises";+import { tmpdir } from "node:os";import { spawn } from "node:child_process";const here = dirname(fileURLToPath(import.meta.url));@@ -38,7 +39,7 @@ test("supervisor uses bounded stdin execution and refuses nonzero status", async});async function fixture(t, { legacy = false } = {}) {- const home = await mkdtemp(join(process.env.PI_SCRATCH_DIR, "supervisor-"));+ const home = await mkdtemp(join(tmpdir(), "supervisor-"));const base = join(home, ".pi-desktop/pi-host");const work = join(base, ".bootstrap");await mkdir(join(base, "current/bin"), { recursive: true });