Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

test(transcript): run completion navigation in visible CI window

Seraph-x3de679fbd40e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 893bff6a6..32ef8dcab 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -180,6 +180,9 @@ jobs:
- name: Run transcript rendering and disclosure E2E
run: xvfb-run --auto-servernum sh -c 'node scripts/e2e-transcript-render.mjs && node scripts/e2e-transcript-disclosure-anchor.mjs'
+ - name: Run transcript turn-completion E2E
+ run: xvfb-run --auto-servernum sh -c 'openbox >/dev/null 2>&1 & exec node scripts/e2e-transcript-turn-completion.mjs'
+
- name: Run trusted extensions E2E
env:
DEBUG_E2E: "1"
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index fcf9f0ea8..73e3f21fc 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -47,7 +47,10 @@
Start smooth navigation immediately before toggling a real disclosure in
both main and delegated scrollers; its clicked title must keep its offset.
- **Coverage:** `node scripts/e2e-transcript-disclosure-anchor.mjs` and
- `node scripts/e2e-transcript-render.mjs`.
+ `node scripts/e2e-transcript-render.mjs`, plus
+ `node scripts/e2e-transcript-turn-completion.mjs`. CI runs the completion
+ probe in a visible window under Xvfb/Openbox: never-shown Linux windows can
+ throttle animation frames despite `backgroundThrottling: false`.
- **Specs:** Interaction patterns §2.2. **Milestone:** Maintenance.
- **Status:** Automated browser regression; the interruption assertion fails
without explicit cancellation of the browser-owned smooth navigation.
diff --git a/scripts/e2e-transcript-turn-completion.mjs b/scripts/e2e-transcript-turn-completion.mjs
index 0d984e8bd..d4e3821e4 100644
--- a/scripts/e2e-transcript-turn-completion.mjs
+++ b/scripts/e2e-transcript-turn-completion.mjs
@@ -56,13 +56,14 @@ const path = require("node:path");
app.setPath("userData", path.join(__dirname, "profile"));
app.whenReady().then(async () => {
const window = new BrowserWindow({
- show: false,
+ // Linux virtual displays can throttle a never-shown window's animation
+ // frames to roughly 1 Hz even with backgroundThrottling disabled.
+ show: true,
webPreferences: {
sandbox: true,
contextIsolation: true,
nodeIntegration: false,
- // A hidden window still has to deliver ResizeObserver callbacks and
- // animation frames, because that is what the product scroll logic uses.
+ // The product scroll logic needs ResizeObserver and animation frames.
backgroundThrottling: false,
},
});