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
eval: cover bounded external chat history discovery
louis6353c335b4b6
diff --git a/evals/coding-agent/README.md b/evals/coding-agent/README.mdindex ae7dff5fa..d8f1a7964 100644--- a/evals/coding-agent/README.md+++ b/evals/coding-agent/README.md@@ -9,7 +9,7 @@ This is an agent eval suite, not a unit-test suite. Every case contains:- saved prompt, transcript, candidate patch, grader output, runtime fingerprint, and result;- repeated-trial reporting with success rate, `pass@k`, and `pass^k`.-The current app corpus contains 66 git-mined regressions. See+The current app corpus contains 67 git-mined regressions. See[DESIGN.md](./DESIGN.md) for the Anthropic guidance, source contract, andhistory-mining workflow. The companion website manifest uses this same harness.@@ -659,3 +659,22 @@ covering parent/reference, unused-correct-source and write/backup bypasses, anequivalent implementation and missing-source setup failure. Dependencies arelinked only for grading. No real config, credential or agent is accessed; thesechecks do not establish model improvement or enforced workspace isolation.++## Bounded external chat discovery++`app-external-chat-scan-boundary` runs the actual historical discovery entry point+with synthetic directory and metadata ports. Eight outcomes cover the seven-day+cutoff, eligible-file cap, oversized files, unreadable/missing sources, independent+sources and repeated discovery. Transcript reads, parsing, storage writes, events+and network calls are rejected. The parent fails five intended assertions and+preserves three outcomes; the reference and current scanner pass all eight.++Run `bun test evals/coding-agent/calibrate-external-chat-scan.test.js` for eleven+controls: parent/reference, unused correct code, equivalent private names and+comparison, unbounded metadata reads, oversized cap consumption, strict cutoff,+stale Claude files, empty results, transcript reads and missing-source setup.+These calibrate the grader; they are not model trials. The historical oracle+changes only the scanner. UI, native filesystem permissions, actual import+persistence and newer maintenance/sync behavior are outside this case. The+separate current product dialog check uses a synthetic scan/import port. No real+chat histories are read, and no execution-isolation claim follows.diff --git a/evals/coding-agent/calibrate-external-chat-scan.test.js b/evals/coding-agent/calibrate-external-chat-scan.test.jsnew file mode 100644index 000000000..9cbdf34d3--- /dev/null+++ b/evals/coding-agent/calibrate-external-chat-scan.test.js@@ -0,0 +1,34 @@+// screenpipe — AI that knows everything you've seen, said, or heard+// https://screenpipe.com+import { afterAll, expect, test } from 'bun:test';+import { execFileSync, spawnSync } from 'node:child_process';+import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';+import { dirname, join, resolve } from 'node:path';+import { tmpdir } from 'node:os';+const repo=resolve(import.meta.dir,'../..');+const item=JSON.parse(readFileSync(join(import.meta.dir,'cases.json'),'utf8')).cases.find(c=>c.id==='app-external-chat-scan-boundary');+const sourcePath='apps/screenpipe-app-tauri/lib/chat/external-chat-import.ts';+const graderPath='evals/coding-agent/graders/app-external-chat-scan.test.js';+const show=ref=>execFileSync('git',['show',`${ref}:${sourcePath}`],{cwd:repo,encoding:'utf8'});+const broken=show(item.base_ref),fixed=show(item.oracle_ref),grader=readFileSync(join(repo,graderPath),'utf8');+const root=mkdtempSync(join(tmpdir(),'chat-scan-calibration-'));+afterAll(()=>rmSync(root,{recursive:true,force:true}));+function replace(source,from,to){expect(source.split(from)).toHaveLength(2);return source.replace(from,to);}+function grade(name,source,extra={}){+ const cwd=join(root,name);const files={[graderPath]:grader,...extra};if(source!==null)files[sourcePath]=source;+ for(const [p,s] of Object.entries(files)){const f=join(cwd,p);mkdirSync(dirname(f),{recursive:true});writeFileSync(f,s);}+ return spawnSync(process.execPath,['test',graderPath],{cwd,encoding:'utf8',timeout:30000,env:{PATH:dirname(process.execPath)}});+}+function fail(r){expect(r.error).toBeUndefined();expect(r.signal).toBeNull();expect(r.status).toBe(1);expect(r.stderr).toContain('expect(received)');expect(r.stderr).not.toContain('Cannot find module');expect(r.stderr).not.toContain('Unhandled error');}+function mutation(name,from,to){fail(grade(name,replace(fixed,from,to)));}+test('parent fails five intended outcomes and preserves three',()=>{const r=grade('parent',broken);fail(r);expect(r.stderr).toContain('3 pass');expect(r.stderr).toContain('5 fail');});+test('reference passes all eight outcomes',()=>{const r=grade('reference',fixed);expect(r.status).toBe(0);expect(r.stderr).toContain('8 pass');});+test('unused correct source cannot repair actual discovery',()=>fail(grade('unused',broken,{'unused-fixed.ts':fixed})));+test('equivalent private names and comparator implementation pass',()=>{let s=fixed.replaceAll('calendarDatesInWindow','recentCalendarDates').replaceAll('eligibleCount','acceptedFiles');s=replace(s,'b.sortKey.localeCompare(a.sortKey)','a.sortKey === b.sortKey ? 0 : a.sortKey < b.sortKey ? 1 : -1');expect(grade('equivalent',s).status).toBe(0);});+test('scanning every file and truncating later is rejected',()=>mutation('unbounded','if (eligibleCount >= MAX_EXTERNAL_CHATS_PER_SOURCE) break;','if (false) break;'));+test('oversized files cannot consume the eligible cap',()=>mutation('oversized-cap','if (candidate.size <= MAX_EXTERNAL_CHAT_FILE_BYTES) eligibleCount += 1;','eligibleCount += 1;'));+test('excluding the exact cutoff is rejected',()=>mutation('cutoff','candidate.modifiedAt < cutoffMs','candidate.modifiedAt <= cutoffMs'));+test('stale Claude history is rejected',()=>mutation('stale-claude','candidate && candidate.modifiedAt >= cutoffMs','candidate'));+test('blanket empty discovery cannot pass preserved outcomes',()=>mutation('empty','const candidates = eligible.slice(0, MAX_EXTERNAL_CHATS_PER_SOURCE);','const candidates = [];'));+test('reading transcript contents during discovery is rejected',()=>mutation('read-content','const info = await stat(path);','await readTextFile(path);\n const info = await stat(path);'));+test('missing source remains setup failure',()=>{const r=grade('missing',null);expect(r.status).toBe(1);expect(r.stderr).toContain('Cannot find module');expect(r.stderr).toContain('0 pass');});diff --git a/evals/coding-agent/cases.json b/evals/coding-agent/cases.jsonindex 6d6ad6984..730549fa4 100644--- a/evals/coding-agent/cases.json+++ b/evals/coding-agent/cases.json@@ -1,7 +1,7 @@{"schema_version": 1,"suite": "screenpipe-app-coding-agent-regressions",- "dataset_version": "2026-09-21.11",+ "dataset_version": "2026-09-22.1","suite_type": "regression","owner": "screenpipe engineering","policy": {@@ -12,10 +12,19 @@{"id": "app-chat-concurrent-save","name": "Preserve both writers during concurrent chat saves",- "source": { "kind": "git_regression", "fix_commit": "1a74f9c68" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "1a74f9c68"+ },"base_ref": "1a74f9c68^","oracle_ref": "1a74f9c68",- "tags": ["regression", "escaped-failure", "chat", "concurrency", "data-loss"],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "concurrency",+ "data-loss"+ ],"prompt": "A user has the same chat open in two app windows. Both writers start from the same conversation. Writer A saves a new message, then writer B saves a different new message from its stale snapshot. The later save silently deletes writer A's message. Fix conversation persistence so concurrent saves preserve both suffixes, do not duplicate messages, retain the richer copy of a streaming message, and do not let stale scalar fields revert newer disk state. Keep the solution scoped to chat persistence and add or update tests as needed.","agent_timeout_seconds": 900,"dependency_links": [@@ -40,10 +49,19 @@{"id": "app-terminal-quota-retry","name": "Stop retrying terminal Pi quota failures",- "source": { "kind": "git_regression", "fix_commit": "58c6e837f" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "58c6e837f"+ },"base_ref": "58c6e837f^","oracle_ref": "58c6e837f",- "tags": ["regression", "escaped-failure", "chat", "quota", "retry"],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "quota",+ "retry"+ ],"prompt": "The Pi chat transport receives provider 429 responses that mean the account has exhausted a daily allowance or the selected model is not permitted. The app currently treats these as transient and keeps retrying, leaving the user in a loop. Make terminal quota/plan errors stop the retry path and surface the assistant error, while ordinary transient failures remain retryable. Preserve existing silent prompt-timeout and connection-card behavior.","agent_timeout_seconds": 720,"dependency_links": [@@ -74,10 +92,19 @@{"id": "app-timeline-stream-reliability","name": "Keep native Timeline streams bounded and complete",- "source": { "kind": "git_regression", "fix_commit": "a4c1161d2" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "a4c1161d2"+ },"base_ref": "a4c1161d2^","oracle_ref": "a4c1161d2",- "tags": ["regression", "escaped-failure", "timeline", "websocket", "native"],+ "tags": [+ "regression",+ "escaped-failure",+ "timeline",+ "websocket",+ "native"+ ],"prompt": "Native Timeline search becomes unreliable on large days: serialized WebSocket batches can exceed the native receiver ceiling, and navigation/search races can surface stale or incomplete frames. Fix the stream path so payloads are bounded by encoded bytes without dropping or duplicating rows, cancellation is respected, and the native search contract remains compatible. Do not solve this by imposing a small arbitrary row limit.","agent_timeout_seconds": 1200,"grader_dependency_links": [@@ -99,10 +126,18 @@{"id": "app-first-run-empty-summary","name": "Never render an empty first-run summary as success",- "source": { "kind": "git_regression", "fix_commit": "91fa9bd1b" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "91fa9bd1b"+ },"base_ref": "91fa9bd1b^","oracle_ref": "91fa9bd1b",- "tags": ["regression", "escaped-failure", "onboarding", "truthfulness"],+ "tags": [+ "regression",+ "escaped-failure",+ "onboarding",+ "truthfulness"+ ],"prompt": "The first-run learning flow can finish with an empty or unusable generated summary and then render that as if capture produced a meaningful result. Fix the state and UI boundary so empty summaries stay out of the content surface, capture diagnostics remain actionable, and resume/dismiss behavior remains stable. A valid non-empty summary must still render normally.","agent_timeout_seconds": 900,"dependency_links": [@@ -127,10 +162,19 @@{"id": "app-onboarding-checkout-confirmation","name": "Confirm onboarding checkout without false completion",- "source": { "kind": "git_regression", "fix_commit": "301535539" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "301535539"+ },"base_ref": "301535539^","oracle_ref": "301535539",- "tags": ["regression", "escaped-failure", "onboarding", "billing", "state-machine"],+ "tags": [+ "regression",+ "escaped-failure",+ "onboarding",+ "billing",+ "state-machine"+ ],"prompt": "Onboarding can advance after a canceled or unconfirmed checkout, submit duplicate checkout requests, or get stuck while entitlement hydration is incomplete. Make checkout confirmation bounded and fail closed: cancellation must not advance, an existing valid entitlement or payment must avoid another checkout, polling must stop deterministically, and repeated clicks must not create duplicate submissions. Preserve a successful checkout's normal onboarding transition.","agent_timeout_seconds": 1200,"dependency_links": [@@ -142,9 +186,15 @@"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/app/onboarding/page.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/components/onboarding/plan-selection-step.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/lib/onboarding-checkout.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/app/onboarding/page.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/components/onboarding/plan-selection-step.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/onboarding-checkout.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts app/onboarding/page.test.tsx components/onboarding/plan-selection-step.test.tsx lib/onboarding-checkout.test.ts"}@@ -152,10 +202,19 @@{"id": "app-activity-recent-control","name": "Keep recent activity navigation anchored to now",- "source": { "kind": "git_regression", "fix_commit": "1a854ab86" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "1a854ab86"+ },"base_ref": "1a854ab86^","oracle_ref": "1a854ab86",- "tags": ["regression", "escaped-failure", "activity", "navigation", "time"],+ "tags": [+ "regression",+ "escaped-failure",+ "activity",+ "navigation",+ "time"+ ],"prompt": "The activity ledger lost its useful recent-activity control. Restore a bottom append control for Today and Last 24 hours when there is enough uncovered recent time, but do not roll the visible page clock forward or disturb historical/custom ranges. Keep the control hidden when the uncovered interval is too small and preserve existing paging behavior.","agent_timeout_seconds": 900,"dependency_links": [@@ -167,7 +226,9 @@"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/activity-ledger.test.tsx" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/activity-ledger.test.tsx"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/activity-ledger.test.tsx"}@@ -175,10 +236,19 @@{"id": "app-chat-correction-boundaries","name": "Preserve user correction boundaries in chat context",- "source": { "kind": "git_regression", "fix_commit": "f177dc7bb" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "f177dc7bb"+ },"base_ref": "f177dc7bb^","oracle_ref": "f177dc7bb",- "tags": ["regression", "escaped-failure", "chat", "steering", "prompt"],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "steering",+ "prompt"+ ],"prompt": "When a user corrects an in-progress Pi chat task, the app can flatten the correction into the original request or lose prior constraints. Preserve the original request and ordered steering boundaries so the latest correction wins only where it conflicts, unrelated constraints remain active, and the system prompt clearly distinguishes corrections, evidence requirements, and read-only boundaries.","agent_timeout_seconds": 900,"dependency_links": [@@ -190,8 +260,12 @@"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/hooks/__tests__/pi-event-handlers.test.ts" },- { "source_path": "apps/screenpipe-app-tauri/lib/chat/__tests__/system-prompt.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/hooks/__tests__/pi-event-handlers.test.ts"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/chat/__tests__/system-prompt.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/chat/standalone/hooks/__tests__/pi-event-handlers.test.ts lib/chat/__tests__/system-prompt.test.ts"}@@ -199,10 +273,19 @@{"id": "app-settings-clear-timeline-cache","name": "Clear timeline caches with backend data",- "source": { "kind": "git_regression", "fix_commit": "e12d48ef1" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "e12d48ef1"+ },"base_ref": "e12d48ef1^","oracle_ref": "e12d48ef1",- "tags": ["regression", "escaped-failure", "settings", "cache", "privacy"],+ "tags": [+ "regression",+ "escaped-failure",+ "settings",+ "cache",+ "privacy"+ ],"prompt": "Clearing screenpipe data in Settings removes backend records but leaves Timeline caches behind, so deleted transcripts can reappear. Make the clear-cache action remove the current and legacy Timeline IndexedDB caches, await and report failures, and remain safe when no browser cache exists. Preserve the existing backend clear behavior and success/error UI semantics.","agent_timeout_seconds": 900,"dependency_links": [@@ -214,8 +297,12 @@"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/settings/storage-section.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/lib/hooks/use-timeline-cache.test.tsx" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/settings/storage-section.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/hooks/use-timeline-cache.test.tsx"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/settings/storage-section.test.tsx lib/hooks/use-timeline-cache.test.tsx"}@@ -223,10 +310,19 @@{"id": "app-optional-connection-credentials","name": "Allow connections whose credential fields are all optional",- "source": { "kind": "git_regression", "fix_commit": "4b0d119fd" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "4b0d119fd"+ },"base_ref": "4b0d119fd^","oracle_ref": "4b0d119fd",- "tags": ["regression", "escaped-failure", "connections", "credentials", "form"],+ "tags": [+ "regression",+ "escaped-failure",+ "connections",+ "credentials",+ "form"+ ],"prompt": "A connection definition whose credential fields are all optional cannot be connected because the submit action stays disabled when every field is blank. Allow that valid case and send the backend a usable non-empty credentials object, while still disabling submission when any required field is blank. Do not weaken validation for integrations with required credentials.","agent_timeout_seconds": 720,"dependency_links": [@@ -238,7 +334,9 @@"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/settings/__tests__/connection-credential-forms.test.tsx" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/settings/__tests__/connection-credential-forms.test.tsx"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/settings/__tests__/connection-credential-forms.test.tsx"}@@ -246,10 +344,19 @@{"id": "app-pipe-store-load-error","name": "Distinguish pipe-store failures from an empty catalog",- "source": { "kind": "git_regression", "fix_commit": "8dbf6e47b" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "8dbf6e47b"+ },"base_ref": "8dbf6e47b^","oracle_ref": "8dbf6e47b",- "tags": ["regression", "escaped-failure", "pipes", "error-state", "retry"],+ "tags": [+ "regression",+ "escaped-failure",+ "pipes",+ "error-state",+ "retry"+ ],"prompt": "When the pipe store request fails, the app renders the same empty state as a successfully loaded catalog with no pipes. Surface a clear load-error state with a working retry action, keep genuine empty results distinct, and recover to the normal store after a successful retry without stale error UI.","agent_timeout_seconds": 900,"dependency_links": [@@ -261,7 +368,9 @@"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/__tests__/pipe-store-error-state.test.tsx" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/__tests__/pipe-store-error-state.test.tsx"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/__tests__/pipe-store-error-state.test.tsx"}@@ -269,23 +378,44 @@{"id": "app-learning-handoff-always-finishes","name": "Always finish the first-run learning handoff",- "source": { "kind": "git_regression", "fix_commit": "e3587f5654" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "e3587f5654"+ },"base_ref": "e3587f5654^","oracle_ref": "e3587f5654","gate": "advisory",- "trigger_paths": ["apps/screenpipe-app-tauri/components/first-run/**", "apps/screenpipe-app-tauri/lib/first-run/**"],- "tags": ["regression", "escaped-failure", "onboarding", "state-machine", "rehydration"],+ "trigger_paths": [+ "apps/screenpipe-app-tauri/components/first-run/**",+ "apps/screenpipe-app-tauri/lib/first-run/**"+ ],+ "tags": [+ "regression",+ "escaped-failure",+ "onboarding",+ "state-machine",+ "rehydration"+ ],"prompt": "The first-run learning handoff can remain in a fake in-progress state after an empty foreground result, disappear after reload, or reuse stale webview state after setup is completed again. Make every foreground attempt reach useful setup choices, keep background retries out of the interface, preserve unresolved choices across reload, and start a fresh learning window after setup is completed again. Valid completed summaries must keep their existing behavior.","agent_timeout_seconds": 1200,"dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/first-run/learning-banner.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/lib/first-run/learning-window.test.ts" },- { "source_path": "apps/screenpipe-app-tauri/lib/first-run/use-learning-window.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/first-run/learning-banner.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/first-run/learning-window.test.ts"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/first-run/use-learning-window.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/first-run/learning-banner.test.tsx lib/first-run/learning-window.test.ts lib/first-run/use-learning-window.test.ts"}@@ -293,23 +423,44 @@{"id": "app-chat-activity-episode-content","name": "Analyze attached activity episode content instead of its title",- "source": { "kind": "git_regression", "fix_commit": "7fa6d1a956" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "7fa6d1a956"+ },"base_ref": "7fa6d1a956^","oracle_ref": "7fa6d1a956","gate": "advisory",- "trigger_paths": ["apps/screenpipe-app-tauri/components/chat/**", "apps/screenpipe-app-tauri/lib/chat/**"],- "tags": ["regression", "escaped-failure", "chat", "retrieval", "evidence"],+ "trigger_paths": [+ "apps/screenpipe-app-tauri/components/chat/**",+ "apps/screenpipe-app-tauri/lib/chat/**"+ ],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "retrieval",+ "evidence"+ ],"prompt": "When a user asks about an attached activity-history episode, the agent searches for the generated episode title instead of reading the bounded source content. Mark activity-history attachments as episodes and route questions to the exact attached interval and its content. Reject title-keyword searches and plans that drift outside the interval, while preserving ordinary search attachments and traceable evidence behavior.","agent_timeout_seconds": 1200,"dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/attached-context.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/lib/chat/__tests__/activity-episode-retrieval-eval.test.ts" },- { "source_path": "apps/screenpipe-app-tauri/lib/chat/__tests__/system-prompt.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/attached-context.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/chat/__tests__/activity-episode-retrieval-eval.test.ts"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/chat/__tests__/system-prompt.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/chat/standalone/attached-context.test.tsx lib/chat/__tests__/activity-episode-retrieval-eval.test.ts lib/chat/__tests__/system-prompt.test.ts"}@@ -317,21 +468,38 @@{"id": "app-recording-stale-permission-recovery","name": "Recover recording from stale screen-permission state",- "source": { "kind": "git_regression", "fix_commit": "8f79280560" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "8f79280560"+ },"base_ref": "8f79280560^","oracle_ref": "8f79280560","gate": "advisory",- "trigger_paths": ["apps/screenpipe-app-tauri/app/shortcut-reminder/**", "apps/screenpipe-app-tauri/lib/hooks/use-health-check.ts"],- "tags": ["regression", "escaped-failure", "recording", "permissions", "recovery"],+ "trigger_paths": [+ "apps/screenpipe-app-tauri/app/shortcut-reminder/**",+ "apps/screenpipe-app-tauri/lib/hooks/use-health-check.ts"+ ],+ "tags": [+ "regression",+ "escaped-failure",+ "recording",+ "permissions",+ "recovery"+ ],"prompt": "After screen permission is restored, stale permission state can leave the recording overlay showing a broken or restart-only state even though capture can recover. Reconcile permission and health state so the user gets a truthful recovery confirmation and recording resumes without an unnecessary restart. Keep genuine permission denial and real capture failures actionable.","agent_timeout_seconds": 900,"dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/app/shortcut-reminder/page.test.tsx" }+ {+ "source_path": "apps/screenpipe-app-tauri/app/shortcut-reminder/page.test.tsx"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts app/shortcut-reminder/page.test.tsx"}@@ -339,22 +507,41 @@{"id": "app-history-long-generation","name": "Keep legitimate slow history generation alive",- "source": { "kind": "git_regression", "fix_commit": "b402c7be54" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "b402c7be54"+ },"base_ref": "b402c7be54^","oracle_ref": "b402c7be54","gate": "advisory",- "trigger_paths": ["apps/screenpipe-app-tauri/components/activity-ledger.tsx", "apps/screenpipe-app-tauri/components/share-logs-button.tsx"],- "tags": ["regression", "escaped-failure", "activity", "timeout", "performance"],+ "trigger_paths": [+ "apps/screenpipe-app-tauri/components/activity-ledger.tsx",+ "apps/screenpipe-app-tauri/components/share-logs-button.tsx"+ ],+ "tags": [+ "regression",+ "escaped-failure",+ "activity",+ "timeout",+ "performance"+ ],"prompt": "Generating a long activity-history result can take more than two minutes, but the app times it out as a failure. Keep legitimate slow generation running while retaining a bounded failure path, and load only the five conversations that can actually be attached instead of expanding work without limit. Preserve existing cancellation and successful short-generation behavior.","agent_timeout_seconds": 1200,"dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/activity-ledger.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/components/share-logs-button.test.tsx" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/activity-ledger.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/components/share-logs-button.test.tsx"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/activity-ledger.test.tsx components/share-logs-button.test.tsx"}@@ -362,22 +549,41 @@{"id": "app-live-view-cadence-write","name": "Make Live View cadence writes take effect",- "source": { "kind": "git_regression", "fix_commit": "f9f2445b94" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "f9f2445b94"+ },"base_ref": "f9f2445b94^","oracle_ref": "f9f2445b94","gate": "advisory",- "trigger_paths": ["apps/screenpipe-app-tauri/lib/live-views/**", "apps/screenpipe-app-tauri/components/settings/brain-overview.tsx"],- "tags": ["regression", "escaped-failure", "live-view", "api-contract", "silent-failure"],+ "trigger_paths": [+ "apps/screenpipe-app-tauri/lib/live-views/**",+ "apps/screenpipe-app-tauri/components/settings/brain-overview.tsx"+ ],+ "tags": [+ "regression",+ "escaped-failure",+ "live-view",+ "api-contract",+ "silent-failure"+ ],"prompt": "Refreshing a paused or manual Live View reports success but leaves its task disabled because the cadence update is wrapped in a config envelope that the API silently ignores. Send the flat configuration shape the endpoint consumes, omit fields that do not need changing, reject an invalid nested front-matter envelope, and surface partial write failures instead of pretending every task refreshed.","agent_timeout_seconds": 1200,"dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/settings/__tests__/brain-overview.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/lib/live-views/__tests__/source-cadence.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/settings/__tests__/brain-overview.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/live-views/__tests__/source-cadence.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/settings/__tests__/brain-overview.test.tsx lib/live-views/__tests__/source-cadence.test.ts"}@@ -385,24 +591,46 @@{"id": "app-mcp-traceable-activity-context","name": "Return bounded, traceable activity context from MCP",- "source": { "kind": "git_regression", "fix_commit": "e76dac2120" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "e76dac2120"+ },"base_ref": "e76dac2120^","oracle_ref": "e76dac2120","gate": "advisory",- "trigger_paths": ["packages/screenpipe-mcp/src/**"],- "tags": ["regression", "escaped-failure", "mcp", "activity", "evidence"],+ "trigger_paths": [+ "packages/screenpipe-mcp/src/**"+ ],+ "tags": [+ "regression",+ "escaped-failure",+ "mcp",+ "activity",+ "evidence"+ ],"prompt": "The MCP activity-summary tool returns aggregate time without enough traceable task context, and consumers can confuse missing parsed rows with missing activity. Add optional bounded parsed context while keeping duration authoritative, distinguish disabled context from fetch failure, retain the time result when parsing is unavailable, and expose source paths without making parsed context the default.","agent_timeout_seconds": 1200,"dependency_links": [- { "source_path": "packages/screenpipe-mcp/node_modules", "destination_path": "packages/screenpipe-mcp/node_modules" }+ {+ "source_path": "packages/screenpipe-mcp/node_modules",+ "destination_path": "packages/screenpipe-mcp/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "packages/screenpipe-mcp/src/activity-summary-format.test.ts" },- { "source_path": "packages/screenpipe-mcp/src/activity-summary-tool.test.ts" },- { "source_path": "packages/screenpipe-mcp/src/pack-contents.test.ts" },- { "source_path": "packages/screenpipe-mcp/src/stdio-startup.test.ts" }+ {+ "source_path": "packages/screenpipe-mcp/src/activity-summary-format.test.ts"+ },+ {+ "source_path": "packages/screenpipe-mcp/src/activity-summary-tool.test.ts"+ },+ {+ "source_path": "packages/screenpipe-mcp/src/pack-contents.test.ts"+ },+ {+ "source_path": "packages/screenpipe-mcp/src/stdio-startup.test.ts"+ }],"command": "cd packages/screenpipe-mcp && node ./node_modules/vitest/vitest.mjs run src/activity-summary-format.test.ts src/activity-summary-tool.test.ts src/pack-contents.test.ts src/stdio-startup.test.ts"}@@ -410,23 +638,44 @@{"id": "app-chat-inspector-pipe-artifacts","name": "Keep pipe-run artifacts in the active chat inspector",- "source": { "kind": "git_regression", "fix_commit": "d3569717c0" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "d3569717c0"+ },"base_ref": "d3569717c0^","oracle_ref": "d3569717c0","gate": "advisory",- "trigger_paths": ["apps/screenpipe-app-tauri/components/chat/**", "apps/screenpipe-app-tauri/lib/hooks/use-chat-inspector.ts"],- "tags": ["regression", "escaped-failure", "pipes", "chat", "artifacts"],+ "trigger_paths": [+ "apps/screenpipe-app-tauri/components/chat/**",+ "apps/screenpipe-app-tauri/lib/hooks/use-chat-inspector.ts"+ ],+ "tags": [+ "regression",+ "escaped-failure",+ "pipes",+ "chat",+ "artifacts"+ ],"prompt": "Artifacts registered by a pipe run do not appear in the chat inspector unless a matching tool call exists, and stale artifacts can leak into a different task. Merge declared run artifacts into the active inspector, deduplicate files already represented by tool output, rewrite absolute artifact links safely, and keep pinned summaries open beside output previews without crossing execution boundaries.","agent_timeout_seconds": 1200,"dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/__tests__/markdown-viewer-link.test.ts" },- { "source_path": "apps/screenpipe-app-tauri/components/chat/chat-inspector.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/lib/hooks/use-chat-inspector.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/__tests__/markdown-viewer-link.test.ts"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/chat-inspector.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/hooks/use-chat-inspector.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/__tests__/markdown-viewer-link.test.ts components/chat/chat-inspector.test.tsx lib/hooks/use-chat-inspector.test.ts"}@@ -434,21 +683,38 @@{"id": "app-sync-legacy-key-recovery","name": "Recover safely from legacy sync-key mismatches",- "source": { "kind": "git_regression", "fix_commit": "0f26a722d2" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "0f26a722d2"+ },"base_ref": "0f26a722d2^","oracle_ref": "0f26a722d2","gate": "advisory",- "trigger_paths": ["apps/screenpipe-app-tauri/components/settings/**sync**", "apps/screenpipe-app-tauri/lib/hooks/use-cloud-sync.ts"],- "tags": ["regression", "escaped-failure", "sync", "encryption", "recovery"],+ "trigger_paths": [+ "apps/screenpipe-app-tauri/components/settings/**sync**",+ "apps/screenpipe-app-tauri/lib/hooks/use-cloud-sync.ts"+ ],+ "tags": [+ "regression",+ "escaped-failure",+ "sync",+ "encryption",+ "recovery"+ ],"prompt": "A device with a legacy account-key mismatch cannot resume cloud sync and generic errors can incorrectly trigger destructive recovery UI. Detect only the specific legacy mismatch, keep recovery hidden otherwise, require explicit confirmation before the exact scoped start-fresh request, and leave recovery available when the remote reset fails. Do not weaken ordinary sync error handling.","agent_timeout_seconds": 900,"dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/settings/__tests__/sync-key-recovery.test.tsx" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/settings/__tests__/sync-key-recovery.test.tsx"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/settings/__tests__/sync-key-recovery.test.tsx"}@@ -456,25 +722,51 @@{"id": "app-agent-local-calendar-days","name": "Use local calendar days for agent time ranges",- "source": { "kind": "git_regression", "fix_commit": "afed076026" },+ "source": {+ "kind": "git_regression",+ "fix_commit": "afed076026"+ },"base_ref": "afed076026^","oracle_ref": "afed076026","gate": "advisory",- "trigger_paths": ["packages/screenpipe-mcp/src/**time**", "apps/screenpipe-app-tauri/lib/chat/system-prompt.ts"],- "tags": ["regression", "escaped-failure", "agent", "time", "timezone"],+ "trigger_paths": [+ "packages/screenpipe-mcp/src/**time**",+ "apps/screenpipe-app-tauri/lib/chat/system-prompt.ts"+ ],+ "tags": [+ "regression",+ "escaped-failure",+ "agent",+ "time",+ "timezone"+ ],"prompt": "Agent time ranges such as today and yesterday are normalized through UTC, so users near a day boundary can query the wrong local date. Normalize calendar literals from the runtime local day, use calendar arithmetic across daylight-saving changes and zones that skip midnight, preserve already supported values and input objects, and advertise the same local-calendar contract in every time field.","agent_timeout_seconds": 1200,"dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" },- { "source_path": "packages/screenpipe-mcp/node_modules", "destination_path": "packages/screenpipe-mcp/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ },+ {+ "source_path": "packages/screenpipe-mcp/node_modules",+ "destination_path": "packages/screenpipe-mcp/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/lib/chat/__tests__/system-prompt.test.ts" },- { "source_path": "packages/screenpipe-mcp/src/time-normalization.test.ts" },- { "source_path": "packages/screenpipe-mcp/src/pack-contents.test.ts" },- { "source_path": "packages/screenpipe-mcp/src/stdio-startup.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/lib/chat/__tests__/system-prompt.test.ts"+ },+ {+ "source_path": "packages/screenpipe-mcp/src/time-normalization.test.ts"+ },+ {+ "source_path": "packages/screenpipe-mcp/src/pack-contents.test.ts"+ },+ {+ "source_path": "packages/screenpipe-mcp/src/stdio-startup.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts lib/chat/__tests__/system-prompt.test.ts && cd ../../packages/screenpipe-mcp && node ./node_modules/vitest/vitest.mjs run src/time-normalization.test.ts src/pack-contents.test.ts src/stdio-startup.test.ts"}@@ -539,17 +831,31 @@"apps/screenpipe-app-tauri/src-tauri/src/pi.rs","crates/screenpipe-core/src/agents/acp/**"],- "tags": ["regression", "escaped-failure", "chat", "acp", "permissions", "safety-boundary"],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "acp",+ "permissions",+ "safety-boundary"+ ],"prompt": "An ACP adapter can advertise working modes without an unrestricted one, leaving users unable to grant full access explicitly. Add a clearly warned opt-in full-access choice that restores a tool-capable mode and enables client-side automatic approval. Keep the default and unknown states approval-based, return to approval prompts when a prompted or read-only choice is selected, persist and reapply the policy for live sessions, and preserve adapter-owned unrestricted controls without duplicates.","agent_timeout_seconds": 1200,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/acp-permission-selector.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/lib/stores/acp-session-config.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/acp-permission-selector.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/stores/acp-session-config.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && NODE_OPTIONS=--localstorage-file=.eval-localstorage bun x vitest run --config vitest.config.ts components/chat/standalone/acp-permission-selector.test.tsx lib/stores/acp-session-config.test.ts"}@@ -570,11 +876,22 @@"crates/screenpipe-db/src/write_queue.rs","crates/screenpipe-sqlite-coordinator/src/lib.rs"],- "tags": ["regression", "escaped-failure", "database", "sqlite", "macos", "data-integrity", "process-ownership"],+ "tags": [+ "regression",+ "escaped-failure",+ "database",+ "sqlite",+ "macos",+ "data-integrity",+ "process-ownership"+ ],"prompt": "On macOS, a live capture database can lose its process-wide SQLite ownership lock when another independently managed database generation or helper opens the same physical file. A foreign writable SQLite process can then attach while the original pools are still live, risking WAL-index invalidation and persistent disk-I/O failures. Keep exactly one live owner for each canonical physical database path, reject a duplicate before it can disturb the lock, avoid reopening an existing live file through a different SQLite path, release ownership only after authoritative pool shutdown, and allow a clean replacement after close. Preserve in-memory databases and safe missing-file recovery.","agent_timeout_seconds": 1800,"grader_dependency_links": [- { "source_path": "target", "destination_path": "target" }+ {+ "source_path": "target",+ "destination_path": "target"+ }],"grader": {"timeout_seconds": 1800,@@ -583,7 +900,9 @@"local_path": "graders/app-sqlite-process-ownership.rs","destination_path": "crates/screenpipe-db/tests/eval_sqlite_process_ownership.rs"},- { "source_path": "crates/screenpipe-db/tests/sqlite_architecture_invariants_test.rs" }+ {+ "source_path": "crates/screenpipe-db/tests/sqlite_architecture_invariants_test.rs"+ }],"command": "CARGO_TARGET_DIR=${SCREENPIPE_EVAL_CARGO_TARGET_DIR:-target} cargo test -p screenpipe-db --test eval_sqlite_process_ownership --test sqlite_architecture_invariants_test"}@@ -603,16 +922,28 @@"crates/screenpipe-core/assets/extensions/context-pruning.ts","apps/screenpipe-app-tauri/lib/__tests__/context-pruning.test.ts"],- "tags": ["regression", "escaped-failure", "chat", "unicode", "context-pruning", "cross-platform"],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "unicode",+ "context-pruning",+ "cross-platform"+ ],"prompt": "Long chat context can fail before reaching the model when trimming cuts an emoji or another supplementary Unicode character in half, leaving malformed serialized text. Make every history-tail and generic head/tail trim boundary produce valid Unicode without exceeding its existing character budget. Preserve the newest conversation history, the complete current question, both ends of generic oversized content, and unchanged behavior for text already within budget.","agent_timeout_seconds": 1200,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/lib/__tests__/context-pruning.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/lib/__tests__/context-pruning.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts lib/__tests__/context-pruning.test.ts"}@@ -632,16 +963,28 @@"apps/screenpipe-app-tauri/lib/hooks/use-keyword-search-store.tsx","apps/screenpipe-app-tauri/lib/hooks/__tests__/use-keyword-search-store.test.ts"],- "tags": ["regression", "escaped-failure", "search", "accessibility", "metadata", "false-empty"],+ "tags": [+ "regression",+ "escaped-failure",+ "search",+ "accessibility",+ "metadata",+ "false-empty"+ ],"prompt": "Desktop keyword search can receive a backend-authoritative result from an accessibility-captured frame, then erase it and show no results even when the query matches visible app, window, or URL metadata. Keep those metadata matches without presenting accessibility element bounds as precise text highlights. Continue to omit accessibility-only semantic-label matches, preserve OCR, hybrid, legacy, and fuzzy-prefix results, and do not add fallback screenshot OCR. The filter path must settle normally rather than reporting a query failure.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/lib/hooks/__tests__/use-keyword-search-store.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/lib/hooks/__tests__/use-keyword-search-store.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts lib/hooks/__tests__/use-keyword-search-store.test.ts"}@@ -663,18 +1006,33 @@"apps/screenpipe-app-tauri/components/chat/standalone/chat-jump-to-latest.tsx","apps/screenpipe-app-tauri/components/chat/standalone/hooks/use-chat-scroll.ts"],- "tags": ["regression", "escaped-failure", "chat", "scroll", "disclosure"],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "scroll",+ "disclosure"+ ],"prompt": "When a chat is long enough to scroll, the control that appears after the user moves up says \"new content\" even when nothing new arrived. Replace that labeled notification with a quiet jump-to-latest control parked on the composer: icon only, sharp corners, no visible copy, stay mounted and faded while the viewport is already at the latest message, and keep stick-to-bottom while reading unchanged. Do not show the control as interactive on a short chat that cannot scroll.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/chat-jump-to-latest.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/chat-main-pane.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/hooks/use-chat-scroll.test.tsx" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/chat-jump-to-latest.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/chat-main-pane.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/hooks/use-chat-scroll.test.tsx"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/chat/standalone/chat-jump-to-latest.test.tsx components/chat/standalone/chat-main-pane.test.tsx components/chat/standalone/hooks/use-chat-scroll.test.tsx"}@@ -694,19 +1052,37 @@"apps/screenpipe-app-tauri/components/chat/standalone/message-content.tsx","apps/screenpipe-app-tauri/lib/chat/message-rendering.ts"],- "tags": ["regression", "escaped-failure", "chat", "rendering", "tool-call", "answer-loss"],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "rendering",+ "tool-call",+ "answer-loss"+ ],"prompt": "A completed assistant turn can contain earlier narration, tool activity, a final answer, and then a trailing tool event. The renderer hides all text before the last tool, leaving a tool receipt and an empty gap even though the answer is stored. Render the last non-empty answer for completed turns that end on a tool, keep earlier intermediate narration hidden, keep running turns compact, preserve text emitted after the final tool, and align the assistant action surface with the answer that is actually visible.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/message-content.answer-recovery.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/message-content.agent-action.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/message-content.structured-output.test.tsx" },- { "source_path": "apps/screenpipe-app-tauri/lib/chat/__tests__/message-rendering.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/message-content.answer-recovery.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/message-content.agent-action.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/message-content.structured-output.test.tsx"+ },+ {+ "source_path": "apps/screenpipe-app-tauri/lib/chat/__tests__/message-rendering.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/chat/standalone/message-content.answer-recovery.test.tsx components/chat/standalone/message-content.agent-action.test.tsx components/chat/standalone/message-content.structured-output.test.tsx lib/chat/__tests__/message-rendering.test.ts"}@@ -727,11 +1103,22 @@"apps/screenpipe-app-tauri/components/chat/standalone/hooks/use-chat-session-runtime.ts","apps/screenpipe-app-tauri/components/standalone-chat.tsx"],- "tags": ["regression", "escaped-failure", "chat", "recents", "session-eviction", "ordering", "state-preservation"],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "recents",+ "session-eviction",+ "ordering",+ "state-preservation"+ ],"prompt": "When several chats are running, the agent process pool can evict one chat. The app then removes that conversation from its in-memory index, so it disappears from Recents and a later event can recreate it untitled with new sort timestamps; an active evicted chat can also jump to a blank conversation. Treat process eviction as a runtime state change rather than conversation deletion: keep the existing conversation identity, title, timestamps, ordering, messages, and on-disk history; settle its loading and streaming state; ignore evictions for unknown conversations; and let the next send restart the agent under the same conversation ID. Preserve normal clean termination and background event routing.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 300,@@ -775,17 +1162,30 @@"apps/screenpipe-app-tauri/lib/stores/chat-store.ts","apps/screenpipe-app-tauri/lib/chat-storage.ts"],- "tags": ["regression", "escaped-failure", "chat", "navigation", "concurrency", "data-corruption", "state-isolation"],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "navigation",+ "concurrency",+ "data-corruption",+ "state-isolation"+ ],"prompt": "Rapid chat navigation can start a second conversation load while the first still awaits metadata or disk work. The eager session reference then points at the requested chat while the rendered transcript still belongs to the outgoing chat, so the wrong messages can be saved under another conversation and a stale request can reclaim the foreground. Bind every outgoing snapshot to the conversation and messages still rendered, and allow only the newest navigation to commit panel, current-session, settings, and preset state after asynchronous work. Keep each conversation's stored messages unchanged, leave the newest chat in the foreground when an older load finishes late, and preserve single-load behavior, temporary side-chat boundaries, stable ID fallbacks, concurrent save merging, browser state, and user-message timestamps.","agent_timeout_seconds": 1200,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "local_path": "graders/chat-overlapping-load.fixture.tsx",- "destination_path": "apps/screenpipe-app-tauri/lib/__tests__/save-conversation-race.test.tsx" }+ {+ "local_path": "graders/chat-overlapping-load.fixture.tsx",+ "destination_path": "apps/screenpipe-app-tauri/lib/__tests__/save-conversation-race.test.tsx"+ }],"command": "cd apps/screenpipe-app-tauri && NODE_OPTIONS=--localstorage-file=.eval-localstorage node node_modules/vitest/vitest.mjs run --config vitest.config.ts lib/__tests__/save-conversation-race.test.tsx --pool=forks --poolOptions.forks.singleFork=true"}@@ -811,16 +1211,29 @@"apps/screenpipe-app-tauri/lib/stores/chat-store.ts","apps/screenpipe-app-tauri/lib/chat-storage.ts"],- "tags": ["regression", "escaped-failure", "chat", "renderer-reload", "hydration", "false-empty", "state-recovery"],+ "tags": [+ "regression",+ "escaped-failure",+ "chat",+ "renderer-reload",+ "hydration",+ "false-empty",+ "state-recovery"+ ],"prompt": "After a chat renderer reload, the selected tab and conversation metadata can recover before the message pane. Routing sees that the requested conversation ID already matches the current session and returns early forever, leaving a blank transcript even though the saved conversation still contains messages. Treat matching IDs as complete only when the current view has renderable state; otherwise hydrate the known saved conversation instead of replacing it with a fresh blank chat. Preserve the fast path and current-session notification when the transcript is already rendered.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 300,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/hooks/use-chat-window-events.test.tsx" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/chat/standalone/hooks/use-chat-window-events.test.tsx"+ }],"command": "cd apps/screenpipe-app-tauri && NODE_OPTIONS=--localstorage-file=.eval-localstorage bun x vitest run --config vitest.config.ts components/chat/standalone/hooks/use-chat-window-events.test.tsx"}@@ -842,16 +1255,30 @@"apps/screenpipe-app-tauri/lib/pipe-ndjson-to-chat.ts","apps/screenpipe-app-tauri/components/chat/**"],- "tags": ["regression", "escaped-failure", "pipes", "chat", "tool-call", "rendering", "false-empty", "ndjson"],+ "tags": [+ "regression",+ "escaped-failure",+ "pipes",+ "chat",+ "tool-call",+ "rendering",+ "false-empty",+ "ndjson"+ ],"prompt": "Saved pipe execution history can contain valid assistant tool calls and results, but the chat view renders empty bubbles instead of showing what the pipe did. Make each parsed completed tool call render with its name and structured arguments, and attach its result to the same tool activity. Recover the name and arguments when streaming deltas are thin but the completed event contains them, and keep oversized results bounded. Preserve ordinary text, thinking, multi-turn ordering, agent-end fallback, malformed or truncated input, empty input, tool-result deduplication, unique message IDs, and conversation metadata.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,"fixtures": [- { "source_path": "apps/screenpipe-app-tauri/components/__tests__/pipe-ndjson-to-chat.test.ts" }+ {+ "source_path": "apps/screenpipe-app-tauri/components/__tests__/pipe-ndjson-to-chat.test.ts"+ }],"command": "cd apps/screenpipe-app-tauri && bun x vitest run --config vitest.config.ts components/__tests__/pipe-ndjson-to-chat.test.ts"}@@ -875,11 +1302,23 @@"apps/screenpipe-app-tauri/lib/utils/redact-pii.ts","crates/screenpipe-core/src/pii_removal.rs"],- "tags": ["regression", "escaped-failure", "privacy", "log-sharing", "redaction", "accessibility", "false-positive", "data-integrity"],+ "tags": [+ "regression",+ "escaped-failure",+ "privacy",+ "log-sharing",+ "redaction",+ "accessibility",+ "false-positive",+ "data-integrity"+ ],"prompt": "A shared support bundle includes recent chat context after removing personal information, but its phone-number detector also replaces bare accessibility coordinates and numeric telemetry. Preserve structured bounds, frame and monitor identifiers, hashes, process identifiers, pixel dimensions, and other unformatted numeric values in the uploaded bundle. Continue to remove formatted phone numbers, email addresses, government identifiers, payment-card numbers, bearer tokens, API credentials, IP addresses, and home-directory usernames. Do not solve the problem by disabling redaction or omitting the chat context.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,@@ -912,11 +1351,22 @@"apps/screenpipe-app-tauri/src-tauri/src/startup_auth.rs","apps/screenpipe-app-tauri/src-tauri/src/main.rs"],- "tags": ["regression", "escaped-failure", "auth", "startup", "signup-free", "false-gate", "recording"],+ "tags": [+ "regression",+ "escaped-failure",+ "auth",+ "startup",+ "signup-free",+ "false-gate",+ "recording"+ ],"prompt": "A signup-free desktop build has already resolved startup authentication as not required, but the protected app still renders a sign-in gate because no user account exists. Make an explicit no-auth-required startup reach the application without stopping the recorder. Ordinary signed-out builds must still require sign-in; authenticated, enterprise, onboarding, development-skip, entitlement, hydration, recovery, and non-primary-window behavior must remain unchanged.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,@@ -947,11 +1397,23 @@"apps/screenpipe-app-tauri/lib/hooks/use-enterprise-policy.ts","apps/screenpipe-app-tauri/lib/hooks/__tests__/use-enterprise-policy.test.tsx"],- "tags": ["regression", "escaped-failure", "enterprise", "auth", "recording", "account-handoff", "race", "fail-closed"],+ "tags": [+ "regression",+ "escaped-failure",+ "enterprise",+ "auth",+ "recording",+ "account-handoff",+ "race",+ "fail-closed"+ ],"prompt": "An enterprise desktop has a previously verified device grant, a policy that now requires account sign-in, and a saved account credential ready to check. During startup, evaluating the device credential first revokes native recording authorization before the viable account credential finishes, stopping capture and racing the later account grant. Keep recording authorized through that account handoff, then grant account authorization when verification succeeds. Preserve immediate fail-closed behavior for key-only devices, explicit account denial, invalid or missing credentials, rotated keys, transient failures, policy changes, and ordinary non-enterprise startup.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "apps/screenpipe-app-tauri/node_modules", "destination_path": "apps/screenpipe-app-tauri/node_modules" }+ {+ "source_path": "apps/screenpipe-app-tauri/node_modules",+ "destination_path": "apps/screenpipe-app-tauri/node_modules"+ }],"grader": {"timeout_seconds": 420,@@ -986,11 +1448,23 @@"packages/ai-gateway/src/types.ts","packages/ai-gateway/src/index.ts"],- "tags": ["regression", "escaped-failure", "ai-gateway", "structured-output", "json-schema", "openai", "openrouter", "compatibility"],+ "tags": [+ "regression",+ "escaped-failure",+ "ai-gateway",+ "structured-output",+ "json-schema",+ "openai",+ "openrouter",+ "compatibility"+ ],"prompt": "Valid structured-output requests using the standard nested response_format.json_schema shape are rejected before provider dispatch, although the equivalent legacy flattened form works. Accept the nested form for both OpenAI and OpenRouter while preserving flattened compatibility. When both forms are present, nested fields must take precedence; json_object requests must stay unchanged; and incomplete schemas must still fail before dispatch.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "packages/ai-gateway/node_modules", "destination_path": "packages/ai-gateway/node_modules" }+ {+ "source_path": "packages/ai-gateway/node_modules",+ "destination_path": "packages/ai-gateway/node_modules"+ }],"grader": {"timeout_seconds": 300,@@ -1026,11 +1500,23 @@"packages/ai-gateway/src/handlers/chat.ts","packages/ai-gateway/src/types.ts"],- "tags": ["regression", "escaped-failure", "ai-gateway", "openai", "gpt-5", "output-limit", "retry", "bounded-recovery"],+ "tags": [+ "regression",+ "escaped-failure",+ "ai-gateway",+ "openai",+ "gpt-5",+ "output-limit",+ "retry",+ "bounded-recovery"+ ],"prompt": "GPT-5 requests can fail before producing a response when the provider explicitly says the configured output limit was reached and asks the caller to retry with a higher limit. Recover that request with a bounded higher-limit retry instead of letting the model chain fail. Preserve the caller's initial limit until this exact rejection occurs, keep the retry within the supported GPT-5 ceiling, avoid a futile retry when already at that ceiling, leave non-GPT-5 and unrelated errors untouched, and preserve the provider's existing parameter-repair behavior and loop bound.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "packages/ai-gateway/node_modules", "destination_path": "packages/ai-gateway/node_modules" }+ {+ "source_path": "packages/ai-gateway/node_modules",+ "destination_path": "packages/ai-gateway/node_modules"+ }],"grader": {"timeout_seconds": 300,@@ -1062,11 +1548,22 @@"packages/ai-gateway/src/types.ts","packages/ai-gateway/src/handlers/chat.ts"],- "tags": ["regression", "escaped-failure", "ai-gateway", "anthropic", "tool-use", "schema", "compatibility"],+ "tags": [+ "regression",+ "escaped-failure",+ "ai-gateway",+ "anthropic",+ "tool-use",+ "schema",+ "compatibility"+ ],"prompt": "OpenAI-compatible assistant history can contain tool-call arguments that parse as JSON null, an array, a number, or a string. Forwarding those values as Anthropic tool-use input causes the provider to reject the request because tool input must be an object. Normalize every parsed non-object tool input to an empty object before Anthropic dispatch. Preserve valid object arguments unchanged, keep malformed JSON fail-safe, and preserve tool call identifiers and names, tool results, ordinary text and image messages, streaming behavior, and provider routing.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "packages/ai-gateway/node_modules", "destination_path": "packages/ai-gateway/node_modules" }+ {+ "source_path": "packages/ai-gateway/node_modules",+ "destination_path": "packages/ai-gateway/node_modules"+ }],"grader": {"timeout_seconds": 300,@@ -1098,11 +1595,24 @@"crates/screenpipe-audio/src/audio_manager.rs","crates/screenpipe-audio/src/core/device.rs"],- "tags": ["regression", "escaped-failure", "audio", "meeting", "microphone", "fallback", "capture-reliability", "data-loss", "bluetooth"],+ "tags": [+ "regression",+ "escaped-failure",+ "audio",+ "meeting",+ "microphone",+ "fallback",+ "capture-reliability",+ "data-loss",+ "bluetooth"+ ],"prompt": "A detected meeting can start before process-level audio capture opens or while process microphone resolution is temporarily empty. In those states, preserve the existing fallback microphone and normal configured capture so neither side of the meeting is silently lost. Retry process capture only within the existing bound. Once process capture has opened, retain meeting capture ownership through transient gaps. When the meeting ends or the feature is disabled, clean up session devices and resume suspended capture. Preserve ordinary non-meeting behavior.","agent_timeout_seconds": 900,"grader_dependency_links": [- { "source_path": "target", "destination_path": "target" }+ {+ "source_path": "target",+ "destination_path": "target"+ }],"grader": {"timeout_seconds": 600,@@ -1284,7 +1794,15 @@"apps/screenpipe-app-tauri/src-tauri/src/skills.rs","crates/screenpipe-engine/src/cli/agent.rs"],- "tags": ["regression", "escaped-failure", "mcp", "configuration", "symlink", "data-integrity", "false-positive"],+ "tags": [+ "regression",+ "escaped-failure",+ "mcp",+ "configuration",+ "symlink",+ "data-integrity",+ "false-positive"+ ],"prompt": "Explicit MCP connect and disconnect in Settings replace a symlinked config with a regular file, leaving its dotfiles target unchanged. Preserve absolute and relative link chains when updating Codex TOML or Cursor JSON configurations: update the actual target, keep unrelated settings and servers, and back up the previous target contents beside that target. Dangling links, loops, and resolution errors must fail without replacing the link or creating a fresh config. Ordinary missing files must remain creatable, invalid or unreadable configs must remain untouched, backups must stay bounded, and disconnect must remain idempotent. Keep the existing public connect/remove interfaces usable. This task covers Settings-side configuration IO at the platform path-resolution boundary, not native desktop acceptance or launch-time reconciliation.","agent_timeout_seconds": 1200,"grader_dependency_links": [@@ -1678,7 +2196,7 @@"streaming","gateway"],- "prompt": "GLM returns native function-call text that Pi cannot execute. Repair the actual GLM completion and streaming provider paths so schema-known leading calls become OpenAI tool calls with nonempty distinct IDs, correct function names and argument objects, no duplicated raw call text, and a tool_calls finish reason. Support tagged XML values (string, number, boolean and object types, preserving string leading zeros and Unicode), XML containing JSON arguments, flat JSON call objects, nested function objects with JSON-string arguments, and multiple XML calls. Streaming must work across one-character and seven-character content fragments and retain a single completion terminator. Forward the caller’s declared tools and tool choice and preserve input objects. Unknown tool names, prefixed explanatory prose, malformed JSON and array/null arguments remain unchanged ordinary text; no tools means no conversion. Preserve already-native tool-call IDs/arguments and other OpenAI providers. Use synthetic provider transport, without live calls or executing tools. No particular parser/helper name or ID format is required.",+ "prompt": "GLM returns native function-call text that Pi cannot execute. Repair the actual GLM completion and streaming provider paths so schema-known leading calls become OpenAI tool calls with nonempty distinct IDs, correct function names and argument objects, no duplicated raw call text, and a tool_calls finish reason. Support tagged XML values (string, number, boolean and object types, preserving string leading zeros and Unicode), XML containing JSON arguments, flat JSON call objects, nested function objects with JSON-string arguments, and multiple XML calls. Streaming must work across one-character and seven-character content fragments and retain a single completion terminator. Forward the caller\u2019s declared tools and tool choice and preserve input objects. Unknown tool names, prefixed explanatory prose, malformed JSON and array/null arguments remain unchanged ordinary text; no tools means no conversion. Preserve already-native tool-call IDs/arguments and other OpenAI providers. Use synthetic provider transport, without live calls or executing tools. No particular parser/helper name or ID format is required.","agent_timeout_seconds": 1200,"grader": {"timeout_seconds": 60,@@ -2197,6 +2715,39 @@],"command": "cd apps/screenpipe-app-tauri && node node_modules/vitest/vitest.mjs run lib/__tests__/eval-mcp-home-scope.test.ts --config eval-mcp-home-scope.config.mjs"}+ },+ {+ "id": "app-external-chat-scan-boundary",+ "name": "Bound recent external chat discovery without losing eligible sources",+ "source": {+ "kind": "git_regression",+ "fix_commit": "c03f24bba7f180adf95a84c4855da13886ef0375"+ },+ "base_ref": "d3517d8396a56488c40684b442e52901c6de2199",+ "oracle_ref": "c03f24bba7f180adf95a84c4855da13886ef0375",+ "oracle_paths": [+ "apps/screenpipe-app-tauri/lib/chat/external-chat-import.ts"+ ],+ "gate": "advisory",+ "tags": [+ "regression",+ "chat",+ "local-history",+ "bounded-io",+ "privacy"+ ],+ "prompt": "Opening local chat import can traverse a large archive before showing recent conversations. Repair scanExternalChatHistory while preserving its discovery API. Only include sessions modified within the past seven days, including the exact cutoff, and report lookbackDays=7. Codex stores direct JSONL files in sessions/YYYY/MM/DD: avoid inspecting older date partitions and nested sessions. On a recent partition ordered by session filename, return the latest 100 eligible files and stop inspecting file metadata once 100 eligible files are found. Do not let files over 32 MiB consume that cap; exactly 32 MiB remains eligible. Report availableCount, omittedByLimit and skippedTooLarge consistently: 150 eligible recent files yields 100 candidates and 50 omitted; three newest oversized files followed by 105 eligible files yields 100 candidates, three oversized and five omitted. Preserve Claude direct project JSONL discovery, case-insensitive extensions and its recency/size filters, excluding subagents and non-JSONL files. Missing roots, missing dates, unreadable individual files or Claude projects must not hide other readable sources. Preserve candidate identity/path/metadata and total counts, retain independent sources and reflect newly added files on later scans. Discovery must only inspect directory and file metadata; do not read or parse transcript contents, write source or conversation data, invalidate caches, emit events or use the network. Use synthetic histories only. No particular private helper, sorting implementation or UI wording is required.",+ "agent_timeout_seconds": 900,+ "grader": {+ "timeout_seconds": 60,+ "fixtures": [+ {+ "local_path": "graders/app-external-chat-scan.test.js",+ "destination_path": "evals/coding-agent/graders/app-external-chat-scan.test.js"+ }+ ],+ "command": "\"${BUN_BIN:-bun}\" test evals/coding-agent/graders/app-external-chat-scan.test.js"+ }}]}diff --git a/evals/coding-agent/graders/app-external-chat-scan.test.js b/evals/coding-agent/graders/app-external-chat-scan.test.jsnew file mode 100644index 000000000..391dd5a54--- /dev/null+++ b/evals/coding-agent/graders/app-external-chat-scan.test.js@@ -0,0 +1,63 @@+// screenpipe — AI that knows everything you've seen, said, or heard+// https://screenpipe.com+import { afterEach, beforeEach, expect, mock, setSystemTime, test } from 'bun:test';+import { posix } from 'node:path';+const home='/synthetic-chat-home';+const now=new Date(2026,7,21,12).getTime();+const day=86400000, cutoff=now-7*day, maxBytes=32*1024*1024;+let state;+function forbidden(name){return ()=>{state.effects.push(name);throw Error('Unexpected discovery effect: '+name);};}+globalThis.fetch=forbidden('network');+mock.module('@tauri-apps/api/event',()=>({emit:forbidden('emit')}));+mock.module('@tauri-apps/api/path',()=>({homeDir:async()=>home,join:async(...p)=>posix.join(...p)}));+mock.module('@tauri-apps/plugin-fs',()=>({+ exists:async p=>state.dirs.has(p)||state.files.has(p),+ readDir:async p=>{state.reads.push(p);if(state.unreadable.has(p)||!state.dirs.has(p))throw Error('Synthetic unreadable directory');return structuredClone(state.dirs.get(p));},+ stat:async p=>{state.stats.push(p);if(state.unreadable.has(p)||!state.files.has(p))throw Error('Synthetic unreadable file');return {...state.files.get(p)};},+ readTextFile:forbidden('read transcript'),writeTextFile:forbidden('write source'),remove:forbidden('delete source'),+}));+mock.module('@/lib/chat-storage',()=>({loadConversationFile:forbidden('load conversation'),saveConversationFile:forbidden('save conversation'),deleteConversationFile:forbidden('delete conversation'),invalidateConversationListCache:forbidden('invalidate')}));+mock.module('@/lib/chat/external-chat-parser',()=>({parseExternalChatTranscript:forbidden('parse transcript'),parseExternalChatTranscriptSnapshot:forbidden('parse snapshot'),externalChatConversationId:forbidden('conversation id')}));+const {scanExternalChatHistory}=await import('../../../apps/screenpipe-app-tauri/lib/chat/external-chat-import');+function dir(path){if(state.dirs.has(path))return;state.dirs.set(path,[]);const parent=posix.dirname(path);if(parent!==path){dir(parent);state.dirs.get(parent).push({name:posix.basename(path),isDirectory:true});}}+function file(path,mtime=now,size=1024){const parent=posix.dirname(path);dir(parent);state.dirs.get(parent).push({name:posix.basename(path),isDirectory:false});state.files.set(path,{size,mtime:new Date(mtime)});return path;}+function datePath(time){const d=new Date(time);return `${home}/.codex/sessions/${d.getFullYear()}/${String(d.getMonth()+1).padStart(2,'0')}/${String(d.getDate()).padStart(2,'0')}`;}+function source(result,name){return result.sources.find(x=>x.source===name);}+function paths(result,name){return source(result,name).candidates.map(x=>x.path).sort();}+async function scan(){const before=JSON.stringify([...state.files]);const result=await scanExternalChatHistory({nowMs:now});expect(JSON.stringify([...state.files])).toBe(before);expect(result.totalCandidates).toBe(result.sources.reduce((n,s)=>n+s.candidates.length,0));for(const source of result.sources)for(const candidate of source.candidates){const recorded=state.files.get(candidate.path);expect(recorded).toBeDefined();expect(candidate).toMatchObject({source:source.source,sourceId:posix.basename(candidate.path).replace(/\.jsonl$/i,''),size:recorded.size,modifiedAt:recorded.mtime.getTime()});}return result;}+beforeEach(()=>{state={dirs:new Map(),files:new Map(),unreadable:new Set(),reads:[],stats:[],effects:[]};setSystemTime(now);});+afterEach(()=>{expect(state.effects).toEqual([]);setSystemTime();});+test('large recent Codex history returns the latest hundred without inspecting older history',async()=>{+ const recent=Array.from({length:150},(_,i)=>file(`${datePath(now)}/rollout-${String(i).padStart(3,'0')}.jsonl`,now-150+i));+ const ancient=file(`${datePath(now-200*day)}/old.jsonl`,now-200*day);+ const result=await scan();expect(paths(result,'codex')).toEqual(recent.slice(50).sort());expect(source(result,'codex')).toMatchObject({availableCount:150,omittedByLimit:50,skippedTooLarge:0});expect(result.lookbackDays).toBe(7);+ expect(state.stats.length).toBeLessThanOrEqual(100);expect(state.reads.some(p=>p===posix.dirname(ancient))).toBe(false);expect(state.stats).not.toContain(ancient);+});+test('seven-day boundary includes the exact cutoff and excludes older files',async()=>{+ const exact=file(`${datePath(cutoff)}/exact.jsonl`,cutoff), recent=file(`${datePath(cutoff)}/recent.jsonl`,cutoff+1);file(`${datePath(cutoff)}/expired.jsonl`,cutoff-1);+ expect(paths(await scan(),'codex')).toEqual([exact,recent].sort());+});+test('Claude recency filtering preserves readable projects and excludes subagents',async()=>{+ const root=`${home}/.claude/projects`;dir(`${root}/unreadable`);state.unreadable.add(`${root}/unreadable`);+ const wanted=file(`${root}/readable/recent.JSONL`);file(`${root}/readable/old.jsonl`,cutoff-1);file(`${root}/readable/subagents/child.jsonl`);file(`${root}/readable/note.txt`);+ expect(paths(await scan(),'claude-code')).toEqual([wanted]);expect(state.reads).not.toContain(`${root}/readable/subagents`);+});+test('oversized Codex files do not consume the eligible-file cap',async()=>{+ const wanted=[];for(let i=0;i<108;i++){const oversized=i>=105;const path=file(`${datePath(now)}/rollout-${String(i).padStart(3,'0')}.jsonl`,now-108+i,oversized?maxBytes+1:1024);if(i>=5&&!oversized)wanted.push(path);}+ const result=await scan();expect(paths(result,'codex')).toEqual(wanted.sort());expect(source(result,'codex')).toMatchObject({skippedTooLarge:3,omittedByLimit:5,availableCount:108});expect(state.stats.length).toBeLessThanOrEqual(103);+});+test('exact size limit remains eligible and oversized Claude files are reported',async()=>{+ const root=`${home}/.claude/projects/project`;const wanted=file(`${root}/limit.jsonl`,now,maxBytes);file(`${root}/oversized.jsonl`,now,maxBytes+1);+ const result=await scan();expect(paths(result,'claude-code')).toEqual([wanted]);expect(source(result,'claude-code').skippedTooLarge).toBe(1);+});+test('unreadable Codex files and missing dates do not hide other recent files',async()=>{+ const bad=file(`${datePath(now)}/unreadable.jsonl`);state.unreadable.add(bad);const wanted=file(`${datePath(now-day)}/recent.jsonl`);file(`${datePath(now)}/notes.txt`);file(`${datePath(now)}/nested/child.jsonl`);+ expect(paths(await scan(),'codex')).toEqual([wanted]);+});+test('missing sources produce an empty discovery result',async()=>{+ const result=await scan();expect(result.totalCandidates).toBe(0);expect(paths(result,'claude-code')).toEqual([]);expect(paths(result,'codex')).toEqual([]);expect(state.stats).toEqual([]);+});+test('repeated discovery reflects new files and retains both independent sources',async()=>{+ const claude=file(`${home}/.claude/projects/project/session.jsonl`);expect(paths(await scan(),'claude-code')).toEqual([claude]);+ const codex=file(`${datePath(now)}/session.jsonl`);const result=await scan();expect(paths(result,'claude-code')).toEqual([claude]);expect(paths(result,'codex')).toEqual([codex]);expect(result.totalCandidates).toBe(2);+});