From 69502fa05491d91187c3fb8a9e22a40a9cb35f2d Mon Sep 17 00:00:00 2001 From: yansfil Date: Tue, 10 Nov 2026 18:48:31 +0900 Subject: [PATCH 01/10] ci: TEMPORARY log what the task row does after it is listed and repeat the session record spec --- .github/workflows/desktop-e2e.yml | 4 ++++ desktop/e2e/session-work-ledger.spec.ts | 18 +++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/desktop-e2e.yml b/.github/workflows/desktop-e2e.yml index 3720420863..05080b8913 100644 --- a/.github/workflows/desktop-e2e.yml +++ b/.github/workflows/desktop-e2e.yml @@ -151,6 +151,10 @@ jobs: SHARD: ${{ matrix.shard }}/${{ inputs.shards }} run: | mkdir -p "$HIDE_E2E_SCREENSHOT_DIR" + # TEMPORARY repeat run for the session-ledger node; reverted before the pull request is ready. + if [ "${SHARD%/*}" != 1 ]; then echo "repeat run is on shard 1"; exit 0; fi + bash scripts/verify-web.sh desktop e2e --retries 0 --repeat-each 10 --grep "session records by goal flow" --reporter=list + exit 0 args=() if [ -n "$GREP" ]; then args+=(--grep "$GREP"); fi if [ "${SHARD#*/}" -gt 1 ]; then diff --git a/desktop/e2e/session-work-ledger.spec.ts b/desktop/e2e/session-work-ledger.spec.ts index 23658e6ae7..b4900a77a1 100644 --- a/desktop/e2e/session-work-ledger.spec.ts +++ b/desktop/e2e/session-work-ledger.spec.ts @@ -43,8 +43,23 @@ test("@platform session records by goal flow, ended work and search render in bo const child = delegated!; const root = await taskRow(page, pane, FIRST_GOAL); const tasks = page.locator("[data-task-lens]"); + // TEMPORARY DIAGNOSTIC: what the row does after taskRow returns. + await page.evaluate((id) => { + const w = window as any; w.__rowLog = []; const ids = new WeakMap(); let n = 0; const t0 = performance.now(); + const snap = (why: string) => { const row = document.querySelector(`[data-task-row="${id}"]`); const o: any = { at: Math.round(performance.now() - t0), why }; + if (row) { if (!ids.has(row)) ids.set(row, ++n); o.node = ids.get(row); o.state = row.getAttribute("data-task-state"); o.band = row.closest("[data-task-band-list]")?.getAttribute("data-task-band-list") ?? null; o.fold = row.closest("[data-task-fold]")?.getAttribute("data-task-fold") ?? null; o.top = Math.round(row.getBoundingClientRect().top); } else o.gone = true; + const last = w.__rowLog.at(-1); if (!last || JSON.stringify({ ...last, at: 0, why: "" }) !== JSON.stringify({ ...o, at: 0, why: "" })) w.__rowLog.push(o); }; + snap("start"); new MutationObserver(() => snap("mutation")).observe(document.body, { subtree: true, childList: true, attributes: true }); + w.__rowMark = (why: string) => { w.__rowLog.push({ at: Math.round(performance.now() - t0), why }); }; + }, pane); + const dumpRow = async (why: string) => console.log("ROWLOG " + why + " " + JSON.stringify(await page.evaluate(() => (window as any).__rowLog))); + await page.evaluate(() => (window as any).__rowMark("hover")); await root.hover(); - await page.locator(`[data-task-record="${pane}"]`).click(); + try { await page.locator(`[data-task-record="${pane}"]`).click({ timeout: 15_000 }); } catch (error) { await dumpRow("FAILED"); throw error; } + await page.evaluate(() => (window as any).__rowMark("clicked")); + await dumpRow("OK"); + // Also at the end of the test: transitions after the click. + (globalThis as any).__dumpEnd = dumpRow; // The record opens in the lane's 보기 slot (PRD sidebar-task-lens B15). const record = page.locator('aside[data-lane="detail"][data-detail="record"] [data-session-record="lane"]'); await expect(record.locator("[data-record-flow]")).toHaveCount(1, { timeout: 45_000 }); @@ -130,6 +145,7 @@ test("@platform session records by goal flow, ended work and search render in bo await page.keyboard.press("Escape"); await captureElectronWindow(app, `record-ended-${theme}`, { ...fixtureIdentity, theme, tools: await page.locator("[data-lane-frame]").boundingBox() }); } + await (globalThis as any).__dumpEnd?.("END"); } catch (error) { failures.push(error); } await finishNative(failures, [["close the app", () => app?.close()], ["stop the stack", () => stack.stop()]]); }); From f1ada868495208ea4dc3c34f0fa0de3343ce7284 Mon Sep 17 00:00:00 2001 From: yansfil Date: Tue, 10 Nov 2026 18:48:51 +0900 Subject: [PATCH 02/10] ci: TEMPORARY keep the default reporters --- .github/workflows/desktop-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/desktop-e2e.yml b/.github/workflows/desktop-e2e.yml index 05080b8913..4d9031ca2a 100644 --- a/.github/workflows/desktop-e2e.yml +++ b/.github/workflows/desktop-e2e.yml @@ -153,7 +153,7 @@ jobs: mkdir -p "$HIDE_E2E_SCREENSHOT_DIR" # TEMPORARY repeat run for the session-ledger node; reverted before the pull request is ready. if [ "${SHARD%/*}" != 1 ]; then echo "repeat run is on shard 1"; exit 0; fi - bash scripts/verify-web.sh desktop e2e --retries 0 --repeat-each 10 --grep "session records by goal flow" --reporter=list + bash scripts/verify-web.sh desktop e2e --retries 0 --repeat-each 10 --grep "session records by goal flow" exit 0 args=() if [ -n "$GREP" ]; then args+=(--grep "$GREP"); fi From a4f0c5c6c34990e418d42267b3bacf6dd40a51fd Mon Sep 17 00:00:00 2001 From: yansfil Date: Tue, 10 Nov 2026 19:10:02 +0900 Subject: [PATCH 03/10] test: hover the session record's task row only after the core has settled it --- desktop/e2e/session-work-ledger.spec.ts | 26 ++++++------------------- web/e2e/wire.ts | 14 +++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/desktop/e2e/session-work-ledger.spec.ts b/desktop/e2e/session-work-ledger.spec.ts index b4900a77a1..051a1852f6 100644 --- a/desktop/e2e/session-work-ledger.spec.ts +++ b/desktop/e2e/session-work-ledger.spec.ts @@ -6,7 +6,7 @@ import { setAgentState } from "../../web/e2e/fixture-agents"; import { continueFixtureTranscript } from "../../web/e2e/pane-fixture"; import { FIRST_GOAL, NEXT_GOAL, nextWork, seedFirstWork, workFixture, workRepositoryReady } from "../../web/e2e/session-work-fixture"; import { chord } from "../../web/e2e/chords"; -import { enterWorkspace, openTaskFolds, setLanePinned, showExplorer, taskRow } from "../../web/e2e/wire"; +import { enterWorkspace, hoverSettledTaskRow, openTaskFolds, setLanePinned, showExplorer, taskRow } from "../../web/e2e/wire"; import { fitWindow, launchShell, REPO, startStack, test } from "./fixture"; import { captureElectronWindow } from "./electron-window"; import { finishNative } from "./native-teardown"; @@ -43,23 +43,9 @@ test("@platform session records by goal flow, ended work and search render in bo const child = delegated!; const root = await taskRow(page, pane, FIRST_GOAL); const tasks = page.locator("[data-task-lens]"); - // TEMPORARY DIAGNOSTIC: what the row does after taskRow returns. - await page.evaluate((id) => { - const w = window as any; w.__rowLog = []; const ids = new WeakMap(); let n = 0; const t0 = performance.now(); - const snap = (why: string) => { const row = document.querySelector(`[data-task-row="${id}"]`); const o: any = { at: Math.round(performance.now() - t0), why }; - if (row) { if (!ids.has(row)) ids.set(row, ++n); o.node = ids.get(row); o.state = row.getAttribute("data-task-state"); o.band = row.closest("[data-task-band-list]")?.getAttribute("data-task-band-list") ?? null; o.fold = row.closest("[data-task-fold]")?.getAttribute("data-task-fold") ?? null; o.top = Math.round(row.getBoundingClientRect().top); } else o.gone = true; - const last = w.__rowLog.at(-1); if (!last || JSON.stringify({ ...last, at: 0, why: "" }) !== JSON.stringify({ ...o, at: 0, why: "" })) w.__rowLog.push(o); }; - snap("start"); new MutationObserver(() => snap("mutation")).observe(document.body, { subtree: true, childList: true, attributes: true }); - w.__rowMark = (why: string) => { w.__rowLog.push({ at: Math.round(performance.now() - t0), why }); }; - }, pane); - const dumpRow = async (why: string) => console.log("ROWLOG " + why + " " + JSON.stringify(await page.evaluate(() => (window as any).__rowLog))); - await page.evaluate(() => (window as any).__rowMark("hover")); - await root.hover(); - try { await page.locator(`[data-task-record="${pane}"]`).click({ timeout: 15_000 }); } catch (error) { await dumpRow("FAILED"); throw error; } - await page.evaluate(() => (window as any).__rowMark("clicked")); - await dumpRow("OK"); - // Also at the end of the test: transitions after the click. - (globalThis as any).__dumpEnd = dumpRow; + // The core settles the root among the resting ones once its child has ended; a hover before that is lost when the row moves. + await hoverSettledTaskRow(root, "resting"); + await page.locator(`[data-task-record="${pane}"]`).click(); // The record opens in the lane's 보기 slot (PRD sidebar-task-lens B15). const record = page.locator('aside[data-lane="detail"][data-detail="record"] [data-session-record="lane"]'); await expect(record.locator("[data-record-flow]")).toHaveCount(1, { timeout: 45_000 }); @@ -132,7 +118,8 @@ test("@platform session records by goal flow, ended work and search render in bo await page.keyboard.press("Escape"); } // Resolve from the row's ⋯ menu puts the task under 쉬는 중 once it is saved (B18). - await root.hover(); + // The summaries turned back on, the record's ask returns and the core moves the row to 내 차례; the menu opens on that row. + await hoverSettledTaskRow(root, "needs_you"); await page.locator(`[data-task-more="${pane}"]`).click(); await page.locator(`[data-task-menu="${pane}"] [data-menu-item="resolve"]`).click(); await expect(tasks.locator('[data-task-fold="rest"]')).toBeVisible({ timeout: 30_000 }); @@ -145,7 +132,6 @@ test("@platform session records by goal flow, ended work and search render in bo await page.keyboard.press("Escape"); await captureElectronWindow(app, `record-ended-${theme}`, { ...fixtureIdentity, theme, tools: await page.locator("[data-lane-frame]").boundingBox() }); } - await (globalThis as any).__dumpEnd?.("END"); } catch (error) { failures.push(error); } await finishNative(failures, [["close the app", () => app?.close()], ["stop the stack", () => stack.stop()]]); }); diff --git a/web/e2e/wire.ts b/web/e2e/wire.ts index 0a6946d9aa..0257ec7682 100644 --- a/web/e2e/wire.ts +++ b/web/e2e/wire.ts @@ -168,6 +168,20 @@ export async function taskRow(page: Page, pane: string, goal: string): Promise { + await expect(row).toHaveAttribute("data-task-state", state, { timeout: 45_000 }); + await row.hover(); +} + /** * The boxes of a dependency graph's cards under `scope`, once the layout * worker has placed them: until then the cards stand in plain layers, and the From 3736555046a6f8cb0ff00e08c57a08cb4b043d27 Mon Sep 17 00:00:00 2001 From: yansfil Date: Tue, 10 Nov 2026 19:50:33 +0900 Subject: [PATCH 04/10] ci: remove the temporary repeat run of the session record spec --- .github/workflows/desktop-e2e.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/desktop-e2e.yml b/.github/workflows/desktop-e2e.yml index 4d9031ca2a..3720420863 100644 --- a/.github/workflows/desktop-e2e.yml +++ b/.github/workflows/desktop-e2e.yml @@ -151,10 +151,6 @@ jobs: SHARD: ${{ matrix.shard }}/${{ inputs.shards }} run: | mkdir -p "$HIDE_E2E_SCREENSHOT_DIR" - # TEMPORARY repeat run for the session-ledger node; reverted before the pull request is ready. - if [ "${SHARD%/*}" != 1 ]; then echo "repeat run is on shard 1"; exit 0; fi - bash scripts/verify-web.sh desktop e2e --retries 0 --repeat-each 10 --grep "session records by goal flow" - exit 0 args=() if [ -n "$GREP" ]; then args+=(--grep "$GREP"); fi if [ "${SHARD#*/}" -gt 1 ]; then From 6e4ff7d21b394ac77c94db2367e9fac49a65fcf7 Mon Sep 17 00:00:00 2001 From: yansfil Date: Tue, 10 Nov 2026 20:55:21 +0900 Subject: [PATCH 05/10] test: hover the other task rows only after the core has settled them --- web/e2e/session-panel.spec.ts | 6 +++--- web/e2e/session-tree.spec.ts | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/web/e2e/session-panel.spec.ts b/web/e2e/session-panel.spec.ts index 049b0427bd..e46fe80bec 100644 --- a/web/e2e/session-panel.spec.ts +++ b/web/e2e/session-panel.spec.ts @@ -9,7 +9,7 @@ import { agentReading, sessionIn, setAgentState, startAgentInProject, takeOverSe import { claudeProjects, continueFixtureTranscript, writeFixtureTranscript, type FixtureLabel } from "./pane-fixture"; import { startHided, type Daemon } from "./hided-fixture"; import { chord } from "./chords"; -import { chooseTheme, countSent, openOtherCheckouts, openTaskFolds, screenshot, showTasks } from "./wire"; +import { chooseTheme, countSent, hoverSettledTaskRow, openOtherCheckouts, openTaskFolds, screenshot, showTasks } from "./wire"; import { quietFor, unchangedForFrames } from "./wait"; test.describe.configure({ timeout: 240_000 }); @@ -132,7 +132,7 @@ test("the 태스크 list groups the device's tasks, folds children and resting o await page.keyboard.press("ArrowDown"); await expect(group("needs_you").locator('[data-task-focus="row"]').first()).toBeFocused(); // B18: Resolve from the ⋯ menu is saved, and the row stays under 쉬는 중. - await row(stopped).hover(); + await hoverSettledTaskRow(row(stopped), "resting"); await tasks.locator(`[data-task-more="${stopped}"]`).click(); await page.locator(`[data-task-menu="${stopped}"] [data-menu-item="resolve"]`).click(); await expect.poll(resolved(daemon, stopped)).toBe(true); @@ -194,7 +194,7 @@ test("세션 닫기 in a task's ⋯ menu closes its pane, though its checkout is const tasks = await showTasks(page); await openTaskFolds(page); const row = tasks.locator(`[data-task-row="${behind}"]`); - await row.hover(); + await hoverSettledTaskRow(row, "resting"); await tasks.locator(`[data-task-more="${behind}"]`).click(); await page.locator(`[data-task-menu="${behind}"] [data-menu-item="close"]`).click(); await expect.poll(() => sent.get("close_pane")).toBe(1); diff --git a/web/e2e/session-tree.spec.ts b/web/e2e/session-tree.spec.ts index 9e91a5d220..ff7120de94 100644 --- a/web/e2e/session-tree.spec.ts +++ b/web/e2e/session-tree.spec.ts @@ -11,7 +11,7 @@ import { setAgentState, spawnChild } from "./fixture-agents"; import { claudeProjects, continueFixtureTranscript, writeFixtureTranscript } from "./pane-fixture"; import { startHided, type Daemon } from "./hided-fixture"; import { measure } from "./session-panel-geometry.mjs"; -import { chooseTheme, screenshot, showTasks } from "./wire"; +import { chooseTheme, hoverSettledTaskRow, screenshot, showTasks } from "./wire"; test.describe.configure({ timeout: 240_000 }); test.use({ actionTimeout: 15_000 }); @@ -86,7 +86,8 @@ test("the 태스크 list opens a five-level tree, stops the indent at three and // Branch, label and facts stay inside each row, with no part over another. expect(await measure(page)).toEqual({ partProblems: [], rowsFit: [], overflow: [] }); // Under the pointer the row's buttons take the time's place and cover nothing on the line. - await panel.locator(`[data-task-row="${root}"]`).hover(); + // The root waits on its working descendants; its buttons show only once the core has settled it there. + await hoverSettledTaskRow(panel.locator(`[data-task-row="${root}"]`), "waiting"); await expect(panel.locator(`[data-task-more="${root}"]`)).toBeVisible(); await expect(panel.locator(`[data-task-row="${root}"] [data-agent-elapsed]`)).toBeHidden(); expect(await measure(page)).toEqual({ partProblems: [], rowsFit: [], overflow: [] }); From fdbad2375c632294a724db006c15ff11675299a2 Mon Sep 17 00:00:00 2001 From: yansfil Date: Tue, 10 Nov 2026 20:55:35 +0900 Subject: [PATCH 06/10] ci: TEMPORARY repeat the task row hover specs ten times --- .github/workflows/web-e2e.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/web-e2e.yml b/.github/workflows/web-e2e.yml index cb94cb0f2b..960479cc89 100644 --- a/.github/workflows/web-e2e.yml +++ b/.github/workflows/web-e2e.yml @@ -256,6 +256,10 @@ jobs: SHARD: ${{ format('{0}/{1}', matrix.shard, inputs.shards) }} run: | mkdir -p "$HIDE_E2E_SCREENSHOT_DIR" + # TEMPORARY repeat run for the session-ledger node; reverted before the pull request is ready. + if [ "${SHARD%/*}" != 1 ]; then echo "repeat run is on shard 1"; exit 0; fi + bash scripts/verify-web.sh web e2e --retries 0 --repeat-each 10 --grep "the 태스크 list groups the device|세션 닫기 in a task|the 태스크 list opens a five-level tree" + exit 0 args=() if [ -n "$GREP" ]; then args+=(--grep "$GREP"); fi if [ "${SHARD#*/}" -gt 1 ]; then From 8df8deeef8eb71cc8a363db8a44d5c7b58927f5b Mon Sep 17 00:00:00 2001 From: yansfil Date: Tue, 10 Nov 2026 21:25:29 +0900 Subject: [PATCH 07/10] ci: remove the temporary repeat run of the task row hover specs --- .github/workflows/web-e2e.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/web-e2e.yml b/.github/workflows/web-e2e.yml index 960479cc89..cb94cb0f2b 100644 --- a/.github/workflows/web-e2e.yml +++ b/.github/workflows/web-e2e.yml @@ -256,10 +256,6 @@ jobs: SHARD: ${{ format('{0}/{1}', matrix.shard, inputs.shards) }} run: | mkdir -p "$HIDE_E2E_SCREENSHOT_DIR" - # TEMPORARY repeat run for the session-ledger node; reverted before the pull request is ready. - if [ "${SHARD%/*}" != 1 ]; then echo "repeat run is on shard 1"; exit 0; fi - bash scripts/verify-web.sh web e2e --retries 0 --repeat-each 10 --grep "the 태스크 list groups the device|세션 닫기 in a task|the 태스크 list opens a five-level tree" - exit 0 args=() if [ -n "$GREP" ]; then args+=(--grep "$GREP"); fi if [ "${SHARD#*/}" -gt 1 ]; then From 1ce107748cde6f5aba6fe8262f4ea88bebdb4265 Mon Sep 17 00:00:00 2001 From: yansfil Date: Tue, 10 Nov 2026 21:31:00 +0900 Subject: [PATCH 08/10] ci: TEMPORARY repeat the task row hover specs twenty times on Linux --- .github/workflows/web-e2e.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/web-e2e.yml b/.github/workflows/web-e2e.yml index cb94cb0f2b..168addc841 100644 --- a/.github/workflows/web-e2e.yml +++ b/.github/workflows/web-e2e.yml @@ -256,6 +256,10 @@ jobs: SHARD: ${{ format('{0}/{1}', matrix.shard, inputs.shards) }} run: | mkdir -p "$HIDE_E2E_SCREENSHOT_DIR" + # TEMPORARY repeat run for the session-ledger node; reverted before the pull request is ready. + if [ "$RUNNER_OS" != Linux ] || [ "${SHARD%/*}" != 1 ]; then echo "repeat run is on Linux shard 1"; exit 0; fi + bash scripts/verify-web.sh web e2e --retries 0 --repeat-each 20 --grep "the 태스크 list groups the device|세션 닫기 in a task|the 태스크 list opens a five-level tree" + exit 0 args=() if [ -n "$GREP" ]; then args+=(--grep "$GREP"); fi if [ "${SHARD#*/}" -gt 1 ]; then From f1a3f48a76d9bf465fe2a5a52be7080823ddcf40 Mon Sep 17 00:00:00 2001 From: yansfil Date: Tue, 10 Nov 2026 22:00:54 +0900 Subject: [PATCH 09/10] ci: remove the temporary twenty-fold repeat run of the task row hover specs --- .github/workflows/web-e2e.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/web-e2e.yml b/.github/workflows/web-e2e.yml index 168addc841..cb94cb0f2b 100644 --- a/.github/workflows/web-e2e.yml +++ b/.github/workflows/web-e2e.yml @@ -256,10 +256,6 @@ jobs: SHARD: ${{ format('{0}/{1}', matrix.shard, inputs.shards) }} run: | mkdir -p "$HIDE_E2E_SCREENSHOT_DIR" - # TEMPORARY repeat run for the session-ledger node; reverted before the pull request is ready. - if [ "$RUNNER_OS" != Linux ] || [ "${SHARD%/*}" != 1 ]; then echo "repeat run is on Linux shard 1"; exit 0; fi - bash scripts/verify-web.sh web e2e --retries 0 --repeat-each 20 --grep "the 태스크 list groups the device|세션 닫기 in a task|the 태스크 list opens a five-level tree" - exit 0 args=() if [ -n "$GREP" ]; then args+=(--grep "$GREP"); fi if [ "${SHARD#*/}" -gt 1 ]; then From 681c0fec2db64cf0dc4c2e4fa57c2e66a70fd9f0 Mon Sep 17 00:00:00 2001 From: yansfil Date: Tue, 10 Nov 2026 23:16:45 +0900 Subject: [PATCH 10/10] test: name the state the settled task row hover waits for --- web/e2e/wire.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/e2e/wire.ts b/web/e2e/wire.ts index 0257ec7682..2663acab84 100644 --- a/web/e2e/wire.ts +++ b/web/e2e/wire.ts @@ -178,7 +178,7 @@ export async function taskRow(page: Page, pane: string, goal: string): Promise { - await expect(row).toHaveAttribute("data-task-state", state, { timeout: 45_000 }); + await expect(row).toHaveAttribute("data-task-state", state, { timeout: 45_000 }); // wait-ok: the core settles the task row in its group await row.hover(); }