YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(chat): classify expired certificate failures (#6737)
Ezra Ellettebc2d014170e9
diff --git a/apps/screenpipe-app-tauri/lib/chat/__tests__/provider-errors.test.ts b/apps/screenpipe-app-tauri/lib/chat/__tests__/provider-errors.test.tsindex 5798b1695..d43d8ecc9 100644--- a/apps/screenpipe-app-tauri/lib/chat/__tests__/provider-errors.test.ts+++ b/apps/screenpipe-app-tauri/lib/chat/__tests__/provider-errors.test.ts@@ -122,6 +122,18 @@ describe("provider error copy", () => {}});+ it("maps an expired TLS certificate to retryable cloud connectivity copy", () => {+ const presentation = buildProviderErrorPresentation(+ "Error: certificate has expired",+ { provider: "screenpipe-cloud", model: "auto" },+ );++ expect(presentation).toMatchObject({ kind: "provider", retryable: true });+ expect(presentation?.message).toContain("screenpipe cloud");+ expect(presentation?.message.toLowerCase()).toContain("try again");+ expect(presentation?.message).not.toContain("certificate has expired");+ });+it("maps the daily free-chat wall to tomorrow-or-BYOK copy", () => {const msg = buildProviderErrorMessage('{"error":"free_chat_limit_exceeded","limit":2}',diff --git a/apps/screenpipe-app-tauri/lib/chat/provider-errors.ts b/apps/screenpipe-app-tauri/lib/chat/provider-errors.tsindex a8090fb65..b2f1d0bf3 100644--- a/apps/screenpipe-app-tauri/lib/chat/provider-errors.ts+++ b/apps/screenpipe-app-tauri/lib/chat/provider-errors.ts@@ -100,6 +100,7 @@ function isConnectionLikeError(errorStr: string): boolean {// 2026-06-18 outage: reqwest "error sending request" / "tls handshake eof".normalized.includes("error sending request") ||normalized.includes("tls handshake") ||+ normalized === "error: certificate has expired" ||normalized.includes("unexpected eof") ||normalized.includes("unexpectedeof") ||normalized.includes("could not connect") ||