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(ci): unbreak the Linux/Windows e2e build, then fix the brain-overview fixtures (#6208)
Louis Beaumont69b0d7758941
diff --git a/COVERAGE.md b/COVERAGE.mdindex 157b73cca..b841fa224 100644--- a/COVERAGE.md+++ b/COVERAGE.md@@ -18,15 +18,15 @@ results and `cargo llvm-cov` data on top when judging release confidence.### Tauri E2E-- Mapped specs: 111-- Declared test blocks: 316-- Weighted coverage points: 248.0+- Mapped specs: 112+- Declared test blocks: 318+- Weighted coverage points: 250.0| Platform | Specs | Declared tests | Weighted points | Layers | Features | Critical score || --- | --- | --- | --- | --- | --- | --- |-| windows | 85 | 274 | 224.6 | 15 | 90 | 92% |-| macos | 107 | 279 | 218.8 | 17 | 93 | 90% |-| linux | 74 | 231 | 193.2 | 14 | 85 | 88% |+| windows | 86 | 276 | 226.6 | 15 | 90 | 92% |+| macos | 108 | 281 | 220.8 | 17 | 93 | 90% |+| linux | 75 | 233 | 195.2 | 14 | 85 | 88% |### Core Enginediff --git a/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.tsindex 4116be4ec..8ceba3089 100644--- a/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.ts+++ b/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.ts@@ -700,24 +700,29 @@ describe("Brain Live Views", function () {await piConversation.waitForRequestCount(1, "Template model preflight");await piConversation.clearCaptures();piConversation.setResponseDelay(350);- piConversation.setTextResponse(- JSON.stringify({- title: "Recovered template view",- timeRange: "today",- timeRangeBehavior: "selectable",- blocks: [- {- id: "recovered-summary",- title: "Recovered summary",- component: "markdown.v1",- width: 12,- intent: "Summarize source-backed work for the selected outcome.",- pipeName: null,- },- ],- note: "The generated dashboard is ready for review.",- }),- );+ // The builder reads the schema-validated screenpipe_live_view_propose tool+ // arguments, not assistant text, so the model has to actually call the tool.+ piConversation.setToolCallSequence([+ {+ name: "screenpipe_live_view_propose",+ arguments: {+ title: "Recovered template view",+ timeRange: "today",+ timeRangeBehavior: "selectable",+ blocks: [+ {+ id: "recovered-summary",+ title: "Recovered summary",+ component: "markdown.v1",+ width: 12,+ intent: "Summarize source-backed work for the selected outcome.",+ pipeName: null,+ },+ ],+ note: "The generated dashboard is ready for review.",+ },+ },+ ]);try {const existingViews =@@ -946,12 +951,15 @@ describe("Brain Live Views", function () {await piConversation.waitForRequestCount(1, "Empty Canvas model preflight");await piConversation.clearCaptures();piConversation.setResponseDelay(350);- piConversation.setTextResponse(- JSON.stringify({- operations: proposedBlocks.map((block) => ({ op: "add", block })),- note: "Four Blocks are ready for review.",- }),- );+ piConversation.setToolCallSequence([+ {+ name: "screenpipe_live_view_propose",+ arguments: {+ operations: proposedBlocks.map((block) => ({ op: "add", block })),+ note: "Four Blocks are ready for review.",+ },+ },+ ]);try {const existingViews =@@ -1104,48 +1112,51 @@ describe("Brain Live Views", function () {await piConversation.waitForRequestCount(1, "Canvas model preflight");await piConversation.clearCaptures();piConversation.setResponseDelay(500);- piConversation.setTextResponse(- JSON.stringify({- operations: [- {- op: "add",- block: {- id: "ownership-lane",- title: "Ownership lane",- component: "list.v1",- width: 12,- intent:- "Show each accountable owner and the next source-backed handoff.",- pipeName: null,+ piConversation.setToolCallSequence([+ {+ name: "screenpipe_live_view_propose",+ arguments: {+ operations: [+ {+ op: "add",+ block: {+ id: "ownership-lane",+ title: "Ownership lane",+ component: "list.v1",+ width: 12,+ intent:+ "Show each accountable owner and the next source-backed handoff.",+ pipeName: null,+ },},- },- {- op: "update",- blockId: "trigger-and-outcome",- block: {- title: "Trigger, owner, and outcome",- component: "table.v1",- width: 6,- intent:- "Show the workflow trigger, accountable owner, and verified outcome.",- pipeName: null,+ {+ op: "update",+ blockId: "trigger-and-outcome",+ block: {+ title: "Trigger, owner, and outcome",+ component: "table.v1",+ width: 6,+ intent:+ "Show the workflow trigger, accountable owner, and verified outcome.",+ pipeName: null,+ },},- },- {- op: "update",- blockId: "safe-improvement-path",- block: {- title: "Risky automation path",- component: "markdown.v1",- width: 6,- intent: "Describe a risky automation path.",- pipeName: null,+ {+ op: "update",+ blockId: "safe-improvement-path",+ block: {+ title: "Risky automation path",+ component: "markdown.v1",+ width: 6,+ intent: "Describe a risky automation path.",+ pipeName: null,+ },},- },- ],- note: "Three Block changes are ready for review.",- }),- );+ ],+ note: "Three Block changes are ready for review.",+ },+ },+ ]);try {const existingViews =@@ -1567,8 +1578,10 @@ describe("Brain Live Views", function () {await setCssWindowSize(1440, 900);const timeRange = await waitForTestId("overview-time-range", 10_000);+ // Freshness reads "Updated <newest> · oldest <oldest> · N waiting" since+ // #6003 gave bound tasks a cadence. Assert the prefix, not a relative time.expect((await timeRange.getAttribute("title"))?.toLowerCase()).toContain(- "latest update:",+ "updated ",);expect(await $("[data-testid='overview-data-status']").isExisting()).toBe(false,@@ -1855,7 +1868,7 @@ Refresh the assigned Live View output targets from source-backed activity.);expect((await timeRangeFreshness.getAttribute("title"))?.toLowerCase(),- ).toContain("latest update:");+ ).toContain("updated ");for (const size of SUPPORTED_WINDOW_SIZES) {await setCssWindowSize(size.width, size.height);await browser.pause(150);diff --git a/apps/screenpipe-app-tauri/src-tauri/src/server.rs b/apps/screenpipe-app-tauri/src-tauri/src/server.rsindex 3f176abdf..e6f9323d9 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/server.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/server.rs@@ -680,7 +680,14 @@ async fn e2e_updates_state(State(state): State<ServerState>) -> impl IntoRespons}None => (String::new(), false, false),};+ // `staged_update` is macOS-only (install is deferred to app exit there to+ // avoid TCC orphaning). Windows and Linux install in place, so there is+ // never a staged snapshot to report — but the response shape stays the+ // same so the spec can assert against one contract on every platform.+ #[cfg(target_os = "macos")]let staged = crate::staged_update::staged_snapshot();+ #[cfg(not(target_os = "macos"))]+ let staged: Option<(String, bool)> = None;Json(serde_json::json!({"menu_text": menu_text,"menu_enabled": menu_enabled,