LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtOct 19, 2026, 10:08 PM
updatedAtOct 20, 2026, 11:53 AM
githubUrlhttps://github.com/neomjs/neo/issues/19872
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 20, 2026, 11:53 AM

Pop-out hover-sync e2e judges a scroll inside its warm-up's burst

Closed v13.3.0/archive-v13-3-0-chunk-2 bugaitestinggrid
neo-opus-grace
neo-opus-grace commented on Oct 19, 2026, 10:08 PM

Context

e2e-brain goes red on WorkstationPopOutHoverSyncNL.spec.mjs:90, on both attempts, always in one shape:

Expected: ArrayContaining ["suspendHover", "resumeHover"]
Received: ["resumeHover"]

Seen on a docs-only dev push (485c125712, run 39079895583), an unrelated dependabot PR (run 39216772503) and #19871 (run 39303646187, shard 9/10). Locally at 21053bd97b: 1 red in 10 (--repeat-each=10 --retries=0, own Bridge on NEO_NL_PORT=8191).

The Problem

The witness counts suspendHover / resumeHover at each window's GridRowHoverSync addon around one judged wheel scroll in the popup. Its judged scroll has never sent a suspend of its own.

An instrumented run (popup scroll events, neo-is-scrolling toggles, addon calls and wheel marks on one clock) shows why:

  • When the popup loads, a scroll burst is usually open already, from the mount. That burst imports the addon, so the "addon exists" poll (:142-143) returns before the warm-up's scroll has even landed. The warm-up's scroll event arrives ~40 ms after its wheel, after the counters went on.
  • The judged wheel (:154) fires ~25 ms after the warm-up wheel, inside that open burst. ScrollManager resumes only 150 ms after a burst's last scroll event, so the first call the counters see is that burst's resumeHover.
  • The suspend that turned runs green came from somewhere else. The Workstation Feed appends a batch every 500 ms, and grid.Body#onStoreLoad scrolls a mounted grid to the top 50 ms after every store mutation, through DomAccess.scrollTo. The first tick after the burst ends opens a new one, and its suspend is the one the old assertion matched. When no burst was open at load, the warm-up's own suspend, landing after the counters, did the same job.
  • A red is a tick whose scrollTo(0) lands inside the still-open burst. The grid then sits at the top, so every later tick's scrollTo(0) changes nothing and no suspend ever comes.

Measured on the old spec: with the Feed stopped it fails 4 of 5 runs. With the Feed stopped and 50 ms before the counters, so the warm-up's suspend lands first, it fails 5 of 5 with the CI shape.

The Architectural Reality

Design authority: GridRowHoverSync#suspendHover is "invoked when a scroll interaction starts", and #resumeHover is called "when a scroll operation finalizes" (src/main/addon/GridRowHoverSync.mjs:143,175). The product does exactly this; the spec assumes one wheel is one interaction, and that nothing else scrolls the grid.

  • grid.ScrollManager#onContainerScroll suspends only when body.isScrolling was false (src/grid/ScrollManager.mjs:201). onScrollEnd, a trailing 150 ms buffer (:14), clears the flag and resumes.
  • Workstation.store.Feed produces every intervalMs (500), and start() runs on Workspace construction (apps/workstation/view/Workspace.mjs:295). Its public stop() pauses production without discarding records.
  • The worker's grid Body holds isScrolling and the scrollTop that grid.View#syncBodies writes into it. The body's DOM id is its component id.
  • worker.App#getAddon returns the cached proxy once a window has the addon (src/worker/App.mjs:354). So a finished burst has already posted its resume by the time a later Neural Link read can return.

The Fix

Only test/playwright/e2e/workstation/WorkstationPopOutHoverSyncNL.spec.mjs changes:

  • Stop the Feed's producer through the Neural Link (findInstances + callMethod(id, 'stop')), as WorkstationGridRepaintNL already resolves the store.
  • After the popup warm-up and before the counters, poll the window's scroll and the grid body (app.getComponent(bodyId, ['isScrolling', 'scrollTop'])) until the scroll has moved past its pre-warm-up value, the body has caught up with it, and the burst is closed.
  • Assert exactly ['suspendHover', 'resumeHover'] in the popup. The judged scroll is now the only burst source.

Acceptance Criteria

  • The judged wheel fires only after the worker reports the earlier burst over; the failure message shows the state it read.
  • Red-first: the old spec with the Feed stopped and 50 ms before the counters fails every run; the fixed spec passes every run under the same delay.
  • The fixed spec passes locally under --repeat-each=20 --retries=0.
  • Control: with ScrollManager sending no windowId (the #18295 regression), the fixed spec fails. It fails at the warning check, and at the count once that check is skipped.
  • Hosted e2e-brain is green on the PR.

Out of Scope

  • ScrollManager's burst semantics, which match the addon's JSDoc.
  • Whether a ticking feed should scroll a grid the user scrolled back to the top every 500 ms. That is a product question, captured as a defect-note rather than a fix here.
  • The opener side. Its warm-up ends more than 1 s before its counter goes on, and a stray opener call can only fail that assertion, never pass it.
  • The other open e2e-brain intermittents, which belong to #19655's quarantine set.

Avoided Traps

  • A fixed sleep before the judged wheel: it is still a race when the CPU is starved, and a running Feed would still add bursts.
  • Reading neo-is-scrolling from the DOM: a poll can run before the class is added and call the burst over.
  • Keeping arrayContaining: any burst at all satisfies it, which is how a tick passed for the judged scroll.

Related

  • #18295 / #18296: the routing fix this witness guards.
  • #19279 / #19280: added the view-fits-window precondition.
  • #19655: the hosted NL tier and its retries and quarantine.
  • #19871: where the failure surfaced.

Live latest-open sweep: checked the latest 20 open issues at 2026-10-19T20:07:37Z; no equivalent. gh search issues "hover sync popup" returned nothing. A2A claim sweep: read the 30 newest messages in all states; no claim on this spec or on grid hover sync. MC sweep: queried "popped-out grid hover sync addon receives only resumeHover, suspendHover missing after a scroll in the popup window" (6 results). It surfaced the witness's origin (#18296: one warm-up scroll per window, the second popup scroll judged) and the addon's design, and no decision about the warm-up's burst. Own-assignment sweep: 6 open, none overlapping.

Origin Session ID: 36f1bd2c-421c-4239-b69f-3d067dad23cd

Retrieval Hint: "popup hover sync witness feed tick scrollTo burst suspendHover resumeHover"

tobiu referenced in commit 4844087 - "test(e2e): the pop-out hover-sync witness judges a scroll that opens its own burst (#19872) (#19873) on Oct 20, 2026, 11:53 AM
tobiu closed this issue on Oct 20, 2026, 11:53 AM