Skip to content

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

fix(ci): identify stalled certificate probe phases on current main

Seraph-x29b6b636c58c
diff --cc docs/adr/README.md
index 67fcbaa72,bae232b03..32b69d612
--- a/docs/adr/README.md
+++ b/docs/adr/README.md
@@@ -20,8 -20,8 +20,9 @@@ Each ADR includes
| ID | Title | Status |
|---|---|---|
+| plugin-remote-workspace-reads | [Plugin reads in remote workspaces](plugin-remote-workspace-reads.md) | Implemented candidate |
| asktool-draft-survives-session-switch | [AskTool drafts survive a card remount](asktool-draft-survives-session-switch.md) | Accepted |
+ | tool-abort-abandons-host-call | [A user stop ends the turn even when the running tool cannot be cancelled](tool-abort-abandons-host-call.md) | Accepted for implementation |
| provider-metadata-client-certificate-retry | [Provider metadata recovery from optional client certificates](provider-metadata-client-certificate-retry.md) | Implemented candidate |
| device-local-project-lists-in-config-sync | [Device-local project lists in configuration sync](device-local-project-lists-in-config-sync.md) | Accepted |
| s3-only-configuration-backup-sync | [S3-only encrypted configuration backup and synchronization](s3-only-configuration-backup-sync.md) | Accepted; supersedes WebDAV decisions in 0300 / 0301 |
diff --cc scripts/e2e/provider-client-certificate.ts
index 9ae3eb0d6,9ae3eb0d6..1e1cc6fc3
--- a/scripts/e2e/provider-client-certificate.ts
+++ b/scripts/e2e/provider-client-certificate.ts
@@@ -100,29 -100,29 +100,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`);
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();
const started = new Promise<void>((resolve) => { requestStarted = resolve; });
++ console.log("client certificate probe: wait for cancellable request to reach HTTP");
const pending = probeModelList({ ...options, signal: controller.signal });
await started;
++ console.log("client certificate probe: cancel in-flight request");
controller.abort();
await assert.rejects(pending, { name: "AbortError" });
console.log("provider client certificate E2E passed");
++ console.log("client certificate probe: dispose proxy relay");
await disposeSystemProxyRelay();
++ console.log("client certificate probe: close fixture sockets and servers");
for (const socket of sockets) socket.destroy();
await Promise.all([new Promise<void>((resolve) => server.close(() => resolve())), new Promise<void>((resolve) => proxy.close(() => resolve()))]);
app.exit(0);