Skip to content

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

fix(ci): surface asynchronous certificate fixture assertions

Seraph-x632ff34431f7
diff --git a/scripts/e2e/provider-client-certificate.ts b/scripts/e2e/provider-client-certificate.ts
index 1e1cc6fc3..360a3a239 100644
--- a/scripts/e2e/provider-client-certificate.ts
+++ b/scripts/e2e/provider-client-certificate.ts
@@ -11,6 +11,13 @@ import { app, net, session } from "electron";
import { applyNetworkProxy, disposeSystemProxyRelay } from "../../apps/desktop/electron/main/network-proxy";
import { probeModelList, probeProviderEndpoint } from "../../apps/desktop/electron/main/model-discovery";
+// Assertions in server callbacks run outside the scenario's try/catch.
+// Report them instead of blocking CI in Electron's default error dialog.
+process.on("uncaughtException", (error) => {
+ console.error(error);
+ app.exit(1);
+});
+
app.setPath("userData", process.argv[2]);
app.commandLine.appendSwitch("ozone-platform", "headless");
app.disableHardwareAcceleration();