From 9740edbfd40f632db2da413fe1862253ad506040 Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Thu, 26 Nov 2026 01:33:30 +0800 Subject: [PATCH] fix(coverage): line the column headers up with their cells again (#5939) The Coverage header kept a 10px scrollbar gutter for the tree's native scrollbar, which #5850 replaced with a DOM scrollbar drawn over the rows, so every header sat 10px left of its cells. Also updates two agent e2e specs that failed on main: a reasoning step and its command now fold into one run (#5906), and the tool-window focus spec clicks reply text instead of a point that can land on a message's footer button. --- e2e/agentFocusInput.spec.ts | 6 +++++- e2e/agentMarkdown.spec.ts | 4 ++-- src/features/coverage/Coverage.module.css | 7 ------- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/e2e/agentFocusInput.spec.ts b/e2e/agentFocusInput.spec.ts index 4bb7746bca..e7186fc83c 100644 --- a/e2e/agentFocusInput.spec.ts +++ b/e2e/agentFocusInput.spec.ts @@ -162,7 +162,11 @@ for (const placement of ["editor", "toolWindow"] as const) { const history = conversation(page); for (const range of [false, true]) { const expected = await selectDraft(box, range); - await history.click({ position: { x: 12, y: 20 } }); + // Click reply text: at a fixed point of the narrow tool window a message's footer buttons can sit. + await history + .getByText(/^Reply \d+$/) + .last() + .click(); await expect(history).toBeFocused(); await history.press("Home"); await expect.poll(() => history.evaluate((element) => element.scrollTop)).toBe(0); diff --git a/e2e/agentMarkdown.spec.ts b/e2e/agentMarkdown.spec.ts index eac8f4f84e..9cb3f6bc98 100644 --- a/e2e/agentMarkdown.spec.ts +++ b/e2e/agentMarkdown.spec.ts @@ -794,8 +794,8 @@ test("Find in Conversation skips user-select:none summaries and closed
}, TASK); const stream = page.locator("[class*='_stream_']:visible"); - // A command is its own row, outside the reasoning's run. - await expect(stream.getByText("stop_bash")).toBeVisible(); + // The reasoning and the command fold into one run. + await expect(stream.getByText("1 other tool call")).toBeVisible(); await stream.focus(); await page.keyboard.press("Meta+f"); diff --git a/src/features/coverage/Coverage.module.css b/src/features/coverage/Coverage.module.css index a4f3e749c8..2672d890fb 100644 --- a/src/features/coverage/Coverage.module.css +++ b/src/features/coverage/Coverage.module.css @@ -38,13 +38,6 @@ border-bottom: 1px solid var(--border); overflow: hidden; } -.header, -.tree [role="tree"] { - scrollbar-gutter: stable; -} -.header::-webkit-scrollbar { - width: 10px; -} .heading { position: relative; min-width: 0;