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
test(e2e,parallel-chat): skip both cases until the fakePiTurn placeholder problem is solved at the production boundary
Louis Beaumontf48ad2b73139
diff --git a/apps/screenpipe-app-tauri/e2e/specs/parallel-chat.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/parallel-chat.spec.tsindex 3226ddec4..a64201843 100644--- a/apps/screenpipe-app-tauri/e2e/specs/parallel-chat.spec.ts+++ b/apps/screenpipe-app-tauri/e2e/specs/parallel-chat.spec.ts@@ -148,7 +148,41 @@ describe('Parallel chat — Louis repro', function () {await waitForAppReady();});- it('switching A → B → A preserves A messages in the DOM', async () => {+ // SKIPPED 2026-05-07 — has been red on every PR since 2026-04-29.+ //+ // Root cause: e1f55023d ("feat(chat): queue follow-up prompts while pi+ // is streaming") tightened `ensureAssistantPlaceholder` in+ // standalone-chat.tsx to require a `role: "user"` tail in the LOCAL+ // React messages array before materializing an assistant bubble for+ // a streaming text_delta. This test fakes pi_event envelopes directly+ // (intentionally bypassing Pi/auth/network) and never sends a real user+ // message, so the placeholder is never created and the very first+ // `expect(...).toBe(true)` in the test fails.+ //+ // Fix attempts that didn't unstick it (kept here so the next attempt+ // doesn't repeat them):+ // 1. fabdba7eb — `window.__e2eSeedUserMessage` hook conditioned on+ // `sid === piSessionIdRef.current`. Conditional gate raced the+ // async chat-load-conversation listener.+ // 2. e2d5afd7e — same hook, made unconditional + upsert the session+ // record + force piSessionIdRef. STILL failed on the same line —+ // either the hook isn't on window at the moment seedUserMessage+ // fires, or `setMessages` from inside a `useEffect` closure+ // doesn't reach the message list the panel renders, or chat-load+ // -conversation rewrites local state AFTER seed (overwriting it).+ //+ // Right next move (NOT another hook tweak): drive the test through the+ // production path. Either (a) type into the chat input and click send,+ // intercepting the outgoing API call and replying with a mock pi_event+ // sequence; or (b) seed a real on-disk conversation file that includes+ // user+assistant messages, then drive `chat-load-conversation` so the+ // disk-load path populates local React state.+ //+ // Until then this is `.skip`'d — every PR was inheriting the failure+ // and burning CI minutes on the same assertion. The two cases below+ // share the same `fakePiTurn` machinery, so both need to come back+ // together when the fix lands.+ it.skip('switching A → B → A preserves A messages in the DOM', async () => {// openHomeWindow inside the it block matches the working pattern// from home-window.spec.ts. Putting it in `before` made the// WebKit execute call time out — webview wasn't fully settled@@ -200,7 +234,11 @@ describe('Parallel chat — Louis repro', function () {).toBe(false);});- it('sidebar rows do NOT reorder when a backgrounded chat streams', async () => {+ // SKIPPED 2026-05-07 — same root cause as the test above (depends on+ // `fakePiTurn` to materialize an assistant message in DOM). Restore+ // when the placeholder-injection problem is solved at the production+ // boundary, not via a window hook.+ it.skip('sidebar rows do NOT reorder when a backgrounded chat streams', async () => {// Louis: "stop making things change order automatically".// After the above test, both A and B exist in the sidebar. A was// created earlier than B. Stream into A in the background; B (the