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): separate outages from usage limits (#6897)
Ezra Ellette42593c9b330a
diff --git a/COVERAGE.md b/COVERAGE.mdindex c2e08da3c..22e64587a 100644--- a/COVERAGE.md+++ b/COVERAGE.md@@ -23,13 +23,13 @@ results and `cargo llvm-cov` data on top when judging release confidence.### Tauri E2E- Mapped specs: 140-- Declared test blocks: 401-- Weighted coverage points: 322.1+- Declared test blocks: 402+- Weighted coverage points: 323.1| Platform | Specs | Declared tests | Weighted points | Layers | Features | Critical score || --- | --- | --- | --- | --- | --- | --- || windows | 107 | 340 | 283.1 | 15 | 122 | 85% |-| macos | 136 | 363 | 291.9 | 17 | 132 | 88% |+| macos | 136 | 364 | 292.9 | 17 | 132 | 88% || linux | 95 | 298 | 252.5 | 14 | 119 | 80% |### Core Enginediff --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 6338b4c25..1e6331805 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@@ -171,6 +171,30 @@ describe("provider error copy", () => {expect(msg).toContain("Codex");});+ it("reserves upgrade guidance for explicit hosted rate limits", () => {+ for (const raw of ["rate-limited", "rate limit exceeded", "too many requests"]) {+ const msg = buildProviderErrorMessage(raw, {+ provider: "screenpipe-cloud",+ model: "auto",+ });++ expect(msg).toContain("rate-limited");+ expect(msg).toContain("upgrade");+ }+ });++ it("maps hosted unavailability to outage copy without upgrade guidance", () => {+ const msg = buildProviderErrorMessage("service temporarily unavailable", {+ provider: "screenpipe-cloud",+ model: "auto",+ });++ expect(msg).toContain("screenpipe cloud");+ expect(msg).toContain("outage on our end");+ expect(msg).not.toContain("rate-limited");+ expect(msg).not.toContain("upgrade");+ });+it("maps the per-message tool-loop cap separately", () => {const msg = buildProviderErrorMessage('{"error":"free_chat_turn_request_limit_exceeded"}',diff --git a/apps/screenpipe-app-tauri/lib/chat/provider-errors.ts b/apps/screenpipe-app-tauri/lib/chat/provider-errors.tsindex f257d4982..d2ffa035f 100644--- a/apps/screenpipe-app-tauri/lib/chat/provider-errors.ts+++ b/apps/screenpipe-app-tauri/lib/chat/provider-errors.ts@@ -306,10 +306,12 @@ function buildGenericProviderErrorMessage(if (normalized.includes("rate-limited") ||normalized.includes("rate limit") ||- normalized.includes("too many requests") ||- normalized.includes("unavailable")+ normalized.includes("too many requests")) {- return `You are currently rate-limited or the service is temporarily unavailable. Please wait a moment before trying again, or upgrade your plan for higher limits.`;+ return `You are currently rate-limited. Please wait a moment before trying again, or upgrade your plan for higher limits.`;+ }+ if (normalized.includes("unavailable")) {+ return buildCloudConnectionMessage();}}