LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtSep 3, 2026, 12:00 PM
updatedAtSep 3, 2026, 12:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/18186
authorneo-opus-ada
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 3, 2026, 12:55 PM

Grid bodies share one virtualization window, so a second grid stops the first from repainting

Closed v13.2.0/archive-v13-2-0-chunk-18 bugaigriddashboard
neo-opus-ada
neo-opus-ada commented on Sep 3, 2026, 12:00 PM

Context

Operator report on apps/workstation, 100k Matrix pane: clicking +1 pulse increments the Pulse cell three columns to the left, and it works for the first handful of rows only. Every later row in the visible area does nothing — no error, the button paints its press, the counter does not move.

Reproduced and automated before any diagnosis, per the operator's instruction. New spec: test/playwright/e2e/workstation/WorkstationRowActionNL.spec.mjs.

rows whose own Pulse cell did not increment:
  neo-record-7 … neo-record-27       ← records 1-6 increment correctly

The cutoff is exact and reproducible: records 1–6 work, 7 onward do not, with no scrolling involved.

The witness, and why it is shaped this way

  • Paired by data-record-id, never by row position. The grid is buffered and recycles row nodes, so "row 7" is not a stable subject. Each button is matched to the Pulse cell of the same record.
  • The Pulse column index is derived from the header, not hardcoded. The grid has eight columns (#, Work item, State, Throughput, Pulse, Load, Living signal, Action) and the operator's screenshot is horizontally scrolled. A guessed index reads a neighbouring name column, which never increments — so the spec reports every row as broken and reads exactly like a perfect witness while measuring nothing. An explicit guard asserts the resolved column holds a number.
  • dispatchEvent('click'), not click(). The Matrix animates continuously (a 10/sec feed, an animated counter, live sparklines), so an ordinary click times out on actionability and force: true clicks the coordinates resolved a moment earlier, which the moving grid has since given to another row. Both failure modes make every row look broken, including the six that work.

Each of those three was a wrong turn on the way here; all three produce a convincing red for the wrong reason, which is why they are recorded rather than tidied away.

What is NOT yet established

The mechanism is unconfirmed, deliberately. The obvious hypothesis is stale closures in pooled component cells: ScalePane.mjs declares handler: () => record.counter++, a closure over the record captured when the cell component is built, and that column already carries a pooling-collision comment (dataField: 'timestamp' was chosen because "reusing counter would alias the AnimatedChange column's pooled cells").

But the evidence does not fit cleanly, and saying so is the point of this section:

  • grid/column/Component.mjs's recycle path does re-invoke the component factory with the new data and set() the resulting config, so a recycled cell should receive a fresh handler.
  • More importantly, no scrolling occurs in the repro. Without scrolling nothing is recycled, so every visible cell was created fresh — which is the Neo.create branch, not the reuse branch.

So a pooling explanation has to account for why creation-time cells beyond the sixth behave differently. The number six is suspicious on its own and is the thread to pull.

Acceptance Criteria

  • AC-1 — every row rendered in the visible area increments its own Pulse cell, asserted by record id on the running app.
  • AC-2 — red-first: the witness is red at the current head, naming the records that failed and showing the 1–6 / 7+ cutoff.
  • AC-3 — the mechanism is identified and named before the fix, not inferred from the fix working. A change that makes the symptom disappear without an explanation does not close this.
  • AC-4 — after scrolling, a recycled row's action still acts on the record it currently displays, not the one its cell was built for. The report is about the initial viewport; recycling is the adjacent case and must not be left untested.
  • AC-5 — the existing dock and grid suites stay green at exact head.

Out of Scope

  • Rewriting the component column's pooling contract. If the defect turns out to live there, that is an engine ticket of its own with its own evidence.
  • The dataField: 'timestamp' aliasing workaround already in ScalePane, unless the mechanism proves it to be the cause.

Avoided Traps

  • Fixing the symptom by rebinding the handler on every render. That would make the spec green while leaving the reason unknown, and would hide the same defect wherever else a component column is used.
  • Trusting the spec's red before checking what it measured. Two of my three wrong turns produced a red on all 27 rows, which is more convincing than the true red and completely wrong.

Related

  • apps/workstation/view/ScalePane.mjs — the column definition and its existing pooling comment.
  • src/grid/column/Component.mjs — the create/recycle paths.
  • #17835 — scroll-edge on-demand loading for buffered surfaces.

Origin Session ID: 7596538d-5324-419a-b043-95c585d833ea

Retrieval Hint: +1 pulse row action increments only first six rows buffered grid component column stale record closure workstation matrix