Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
Merge remote-tracking branch 'origin/main' into fix/remote-file-manager
Seraph-x5853af38ed5b
diff --cc scripts/e2e/provider-client-certificate.tsindex 360a3a239,ecb4ec4df..78fc86bf1--- a/scripts/e2e/provider-client-certificate.ts+++ b/scripts/e2e/provider-client-certificate.ts@@@ -106,29 -99,33 +106,42 @@@ void app.whenReady().then(async () =>}assert.equal(requests, 0, "the original Electron 43 failure precedes HTTP");console.log(`baseline: Electron 43 net.fetch ${baselineOutcome.kind === "timeout" ? "stalled" : "failed"} before HTTP`);+ // Linux Electron may leave a second client-certificate handshake pending.+ // Reuse the observed failure so subsequent calls exercise the real metadata+ // fallback without issuing another Chromium request to the fixture.+ const primaryFailure = baselineOutcome.kind === "error"+ ? baselineOutcome.error+ : new Error("net::ERR_SSL_CLIENT_AUTH_CERT_NEEDED");+ const fixtureOrigin = new URL(baseUrl).origin;+ const electronFetch = globalThis.fetch;+ globalThis.fetch = async (input, init) => {+ const requestUrl = input instanceof Request ? input.url : String(input);+ if (new URL(requestUrl).origin === fixtureOrigin) throw primaryFailure;+ return electronFetch(input, init);+ };const options = { baseUrl, apiKey: "fixture", signal: AbortSignal.timeout(8_000) };+ console.log("client certificate probe: direct model list");assert.deepEqual((await probeModelList(options)).models, [{ modelId: "fixture-model", displayName: "fixture-model" }]);+ console.log("client certificate probe: direct endpoint");assert.equal((await probeProviderEndpoint(options)).status, 200);+ console.log("client certificate probe: unauthorized response");await assert.rejects(probeModelList({ ...options, apiKey: "wrong" }), { status: 401 });+ console.log("client certificate probe: configure authenticated proxy");await applyNetworkProxy({ mode: "custom", url: `http://fixture:[email protected]:${proxyAddress.port}`, bypass: "<-loopback>" });const before = tunnels;+ console.log("client certificate probe: authenticated proxy endpoint");assert.equal((await probeProviderEndpoint(options)).status, 200);assert.ok(tunnels > before, "the retry must use the configured authenticated proxy");+ console.log("client certificate probe: configure localhost bypass");await applyNetworkProxy({ mode: "custom", url: `http://fixture:[email protected]:${proxyAddress.port}` });const beforeBypass = tunnels;+ console.log("client certificate probe: localhost bypass endpoint");assert.equal((await probeProviderEndpoint(options)).status, 200);assert.equal(tunnels, beforeBypass, "localhost bypass must apply to both transports");+ console.log("client certificate probe: restore direct proxy mode");await applyNetworkProxy({ mode: "direct" });mode = "redirect";+ console.log("client certificate probe: cross-origin redirect refusal");await assert.rejects(probeModelList(options), /left the configured origin/);mode = "stall";const controller = new AbortController();