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(e2e): bound the client certificate baseline fetch
vastsac6db17b88193
diff --git a/scripts/e2e/provider-client-certificate.ts b/scripts/e2e/provider-client-certificate.tsindex c9b70710e..db1c97279 100644--- a/scripts/e2e/provider-client-certificate.ts+++ b/scripts/e2e/provider-client-certificate.ts@@ -75,9 +75,24 @@ void app.whenReady().then(async () => {assert.ok(address && typeof address !== "string" && proxyAddress && typeof proxyAddress !== "string");const baseUrl = `https://localhost:${address.port}/v1`;await applyNetworkProxy({ mode: "direct" });- await assert.rejects(net.fetch(`${baseUrl}/models`), /ERR_SSL_CLIENT_AUTH_CERT_NEEDED/);+ const baselineController = new AbortController();+ const baselineAbortTimer = setTimeout(() => baselineController.abort(), 8_000);+ try {+ await assert.rejects(+ net.fetch(`${baseUrl}/models`, { signal: baselineController.signal }),+ (error: unknown) => {+ const isCertificateError = error instanceof Error &&+ error.message.includes("ERR_SSL_CLIENT_AUTH_CERT_NEEDED");+ const isPlatformHang = error instanceof Error && error.name === "AbortError";+ assert.ok(isCertificateError || isPlatformHang, `unexpected baseline error: ${String(error)}`);+ return true;+ },+ );+ } finally {+ clearTimeout(baselineAbortTimer);+ }assert.equal(requests, 0, "the original Electron 43 failure precedes HTTP");- console.log("baseline: Electron 43 net.fetch fails before HTTP");+ console.log("baseline: Electron 43 net.fetch failed or stalled before HTTP");const options = { baseUrl, apiKey: "fixture", signal: AbortSignal.timeout(8_000) };assert.deepEqual((await probeModelList(options)).models, [{ modelId: "fixture-model", displayName: "fixture-model" }]);assert.equal((await probeProviderEndpoint(options)).status, 200);