fix(webui): restore startup flow while keeping recovery batching (#6712)

* fix(webui): restore startup flow while keeping recovery batching

Keep the two restart recovery scans from #6708. Withdraw the browser preload and launcher changes until they can be measured independently against the Windows first-send regression.

* fix(webui): skip graph layout measurement in reduced motion

A zero-duration shared layout still measured the panel while the 500-node graph was mounting. Disable the shared-layout link in reduced motion and start the browser budget after the initial graph paints. Keep the existing 150ms limit and all 500 node checks.
This commit is contained in:
chengyongru authored and GitHub committed 2026-11-18 23:40:49 +08:00
1 parent cab49a1c66
commit 995f9e36c1
21 files changed
+260 -400

No files matched your search

+2 -1
View File
@@ -174,7 +174,8 @@ test("500 reduced-motion nodes settle over multiple frames and are all painted",
}).observe({ entryTypes: ["longtask"] });
});
await page.goto("/browser/context-graph.html");
await expect(page.getByRole("button", { name: "a.md", exact: true })).toBeAttached();
// Start timing the update after the initial two-node graph has painted.
await expect.poll(() => page.evaluate(() => window.graphDrawTrace.arcs)).toBe(2);
await page.evaluate(() => { window.graphDrawTrace = { arcs: 0, frames: 0, maxTask: 0, start: performance.now() }; });
await page.getByRole("button", { name: "Load 500 nodes" }).click();
await expect(page.getByRole("button", { name: /^file-\d+\.md$/ })).toHaveCount(500);