Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 4ac8b3b84bfa8abd6384d9023a04ce798163375a
parent 7a2e46ecadc77bd53c4bc89be8221469eef32af4
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 10 Nov 2026 18:57:08 -0500

umtool e2e: play-take-edit's "Edit on the draft's own parent" waits on the state the page shows -- t01c the clip on screen before Edit is pressed, the open page's round-trip held 800 ms as under load -- and Play's Edit on a version holds Play's own URL write while its push is in flight (PlayCut editHere sets the `navigating` guard its other navigations set: the write 150 ms after the pause is `replaceState(null, …)`). NOT reproduced: with the guard taken out the delayed spec still passes, so the RSC hang seen under load (owed-fixes e2e2, the open page answered and the bench never asked) is hardened against, not proven fixed (E5 A7)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Diffstat:
Mumtool/components/projects/review/PlayCut.tsx | 3+++
Mumtool/e2e/play-take-edit.spec.ts | 8++++++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/umtool/components/projects/review/PlayCut.tsx b/umtool/components/projects/review/PlayCut.tsx @@ -570,6 +570,9 @@ export default function PlayCut({ app.openClip(it?.id ?? "", h); return; } + // A navigation in flight: Play's own URL write (150 ms after the pause, `replaceState(null, …)`) would land on + // top of it and cancel it while its RSC round-trip is slow -- the push to a version's open page hung under load. + navigating.current = true; router.push(h); }, [editHref, router, setPlaying, placeHref, app, now, take]); const lastPlace = useRef(0); diff --git a/umtool/e2e/play-take-edit.spec.ts b/umtool/e2e/play-take-edit.spec.ts @@ -103,6 +103,14 @@ test("Edit on the draft's own parent with no edits goes straight on (307) to the const root = page.locator("[data-play-cut]"); await expect(root).toHaveAttribute("data-play-state", "paused", { timeout: 30_000 }); await page.locator('[data-play-row="t01c"]').press("Enter"); + // The state the page shows, not a time: t01c is the clip on screen before Edit is pressed. + await expect(root).toHaveAttribute("data-play-item", "t01c"); + // As under load: the open page's round-trip slower than Play's own URL write after the pause (150 ms), which once + // landed on top of the navigation and cancelled it (PlayCut editHere holds it now). + await page.route(/\/takes\/v2\/open\?/, async (route) => { + await new Promise((r) => setTimeout(r, 800)); + await route.continue(); + }); await page.locator("[data-play-edit]").click(); await expect(page.locator('[data-bench="t01c"]')).toBeVisible({ timeout: 20_000 }); await expect(page).toHaveURL(/\/projects\/reports\/play-take-edit-fixture\/clip\/t01c\?from=play/);