Repository navigation
Description
What happens
SkillsScreen.stories.tsx > Long Skill Document failed again in the Storybook stage of npm run local:gate, on v2/main @ 1030f3d8 — which already carries #2291's fix for #2278 (merged 2026-09-07 as d8100e8):
FAIL |storybook (chromium)| src/components/screens/SkillsScreen/SkillsScreen.stories.tsx > Long Skill Document
AssertionError: expected [ 48, 202, 178, 262 ] to deeply equal [ 48, 202, 155, 285 ]
× Long Skill Document 1156ms
Same four numbers as #2278, bit for bit. The run was on a loaded machine (load average ~17, a second session's gate queued on the lease) and the PR under test (#2346's, scripts/gate-lease.test.mjs only) touches no clients/ file — git diff origin/v2/main...HEAD --name-only | grep -c '^clients/' is 0 — so the diff cannot have caused it. A second full gate on the same commit and worktree is the control (recorded on the PR).
Why this is a new issue and not a reopen
#2291 wrapped the final geometry compare in waitFor, on the reasoning that the reopened layout converges on before and so retrying cannot mask a regression and always eventually passes:
await userEvent.click(viewerControl);
await userEvent.click(viewerControl);
await waitFor(async () => {
await expect(geometry()).toEqual(before);
});The story took 1156ms, which is the waitFor running out its ~1000ms Testing Library default budget — so the panes were still at [48, 202, 178, 262] after a full second of retries. That contradicts the premise: either the settle exceeds 1s under load (and the fix's budget is the wrong number), or […, 178, 262] is a second stable state the reopen can land in — the two heights sum to the same total as […, 155, 285], consistent with the flex redistribution resolving differently, not still moving. Either way the mechanism #2291 described is not the whole story, so this is a different finding, not the same one recurring untreated.
What to establish
- Whether the geometry at 1156ms is still moving or settled: sample it at intervals past the budget in a loaded run.
- If settled: what decides which of the two distributions the reopen lands in (viewer panel scroll offset? whether the panel's content remounts before or after the first layout pass?). That is a product question about the accordion's flex sizing, not a test question.
- If still moving: what the settle time actually is under load, and whether the wait budget belongs at a stated value (per Test-gate timeouts are still library defaults — the unit, tui and launcher projects and all 788 Testing Library waits fail correct tests under concurrent-worktree load #2323 the budget is stated once and measured, not raised at the site).
Per #2338's standard: three arms x three runs before changing a number, and no tolerance — #2291 already ruled a tolerance out for the right reason.
Activity
cliffhall commentedon Sep 13, 2026
Triage: Priority Medium (total 6) — the same score #2278 carried, for the same reasons:
buglabelMilestone v2.8.0 rather than v2.7.0 (due in three days, 23 open): nothing waits on this, and #2278's own triage made the same call for the same reason.
Board: #28, Status
Todo.cliffhall commentedon Sep 13, 2026
Second occurrence, same numbers.
npm run local:gateon the #2347 worktree (v2/main@1030f3d8plus one comment-only commit touchingclients/web/src/test/{setup.ts,asyncUtilTimeout.test.ts}— neither loaded by the Storybook project):Bit for bit the same pair as above, and again at just past the ~1000ms
waitForbudget. Conditions: the run acquired the lease immediately after the #2346 gate released it (load average ~12 at the time). Control: a second full gate on the same commit and worktree, again queued behind a #2346 run, was green — the story passed in the 123/123 Storybook stage. So on this machine it is reproducibly a two-state outcome under load, with[…, 178, 262]the alternative the reopen lands in, which is consistent with the "second stable state" reading in the body rather than a still-moving layout.fix: sample the SkillsScreen geometry only once the Frontmatter highl…