Context
Two independent sightings, on two different instruments, both on dev heads that already carry #18901 and #18909 — so neither of those fixes is the cure:
- Mine, in CI.
test/playwright/e2e/grid/CellEditingLockedBodies.spec.mjs's lockEnd arm went red once: "c3 renders in the end body", received center. Every center row had kept a cell for the moved column (r3c3 after r3c10, all 19 rows) while the end body rendered it too. 0 of 136 locally at the time. Broadcast as a defect-note 2026-09-18T17:39Z.
- @neo-fable's, under a stress recipe, with a worker-side dump. 1 of 25 and 1 of 25 on two days' heads, dump taken at
dev@61b617a852 while regionOf(c3) was still center four seconds after the lock change.
Their dump, quoted with its own qualifier — the App Worker is settled and correct:
columns.get('c3').locked === 'end', column order ends c37, c38, c3, c39
- center body: 37 fields,
columnPositions.get('c3') undefined, mountedColumns [0,9]
- end body: 2 fields
[c3, c39]
- every body and every row:
isVdomUpdating: false, needsVdomUpdate: false — nothing in the air, nothing queued
plugin.session = {dataField: 'c3', held: 0} — the hold was released
…while the DOM is wrong, and final:
c3 cells per body: start 0, center 19, end 19; the edited record's center row has 11 cells
- the header is right: the
C3 button sits in the end toolbar only
- one editor
Live latest-open sweep: checked the latest 20 open issues at 2026-09-19T10:33Z; all-state searches for lost body render, column lock change edit, grid body stale DOM; A2A sweep at 10:37Z; Memory Core sweep on the symptom's nouns; own-assignment sweep. Nothing equivalent. The nearest neighbours are #18885 (the edit is lost when its column changes body — closed, a different failure) and the #18899 / #18900 / #18901 vdom family (all merged before the measured head).
The Problem
vdom and vnode agree the center body has no c3. The DOM has 19 of them, and no later render will correct it, because nothing is queued: from the App Worker's point of view the work is done. The user-facing reading is that after a column lock change during an edit, the grid can show the moved column twice — once in the center body and once in its new body — until something unrelated re-renders the center.
The normal shape, for contrast, from 110 passing instrumented runs (@neo-fable wrapped Neo.main.DeltaUpdates.insertNode/moveNode/removeNode/updateNode/replaceChild and logged every delta naming one of the 19 center c3 cell ids): exactly 20 deltas, all updateNode — pooling re-binds those slots (data-field, aria-colindex, data-record-id, role, cls, text); nothing is ever removed or moved.
So in the failing run, the center body's re-binding updateNodes never reached the main thread for any row, while the end body's render and the header's did. A whole body's render is missing while its vnode was adopted anyway.
Reproduction recipe (the only shape that has reproduced it; 0 of 136 without it):
npx playwright test \
test/playwright/e2e/grid/CellEditingLockedBodies.spec.mjs \
test/playwright/e2e/grid/CellEditingPooling.spec.mjs \
test/playwright/e2e/grid/CellEditingTabSuspended.spec.mjs \
-c test/playwright/playwright.config.e2e.mjs --repeat-each=25 --workers=12
ONE Playwright process. Two concurrent processes do not reproduce it (0 of 80) and corrupt each other's trace artifacts.
The Architectural Reality
src/grid/column/Base.mjs:166 — afterSetLocked calls this.parent?.onColumnLockChange(this).
src/grid/Container.mjs:1056 — async onColumnLockChange(column): re-sorts the columns, creates or updates the sub-grids, and passes sizes down.
src/grid/Body.mjs:738 — createViewData(silent, force). Two early exits matter: the readiness guard (store, availableRows, _containerWidth, columnPositions, mountedColumns[1]) returns with no retry, while the isVdomUpdating branch re-registers itself through Neo.manager.VDomUpdate.registerPreUpdate. A lock change reaches createViewData() three times in the window the hold keeps isEmbodied false (#18865 / #18898 lineage).
- The dump says the readiness guard is not the explanation here: the center body has 37 fields and
mountedColumns [0,9], i.e. it did compute its new view data. The loss is between that and the DOM.
The Mechanism — measured 2026-09-19, neither candidate A nor B
The forced re-render is never requested. The lock change asks grid.Body#createViewData for it, and the request is overwritten before it runs.
Reproduced deterministically at dev@ab2e7cd17c. A probe holds the center body's flight in the air for 300 ms, and c3 is locked to the end during the hold. The census is 0/19/19 — c3 renders in both the center and the end body, every time. The App Worker trail for the center body (probe on createViewData, VDomUpdate.registerPreUpdate / executePreUpdates, and every updateBatch flight):
| t (ms) |
event |
| 486 |
the lock change's createViewData(false, true) — forced — meets the held flight → deferred (registerPreUpdate) |
| 773 |
the flight lands; the deferral runs and starts a new body flight |
| 778 |
a second forced call is deferred, then an unforced createViewData() from the same lock change is deferred with replaced: true |
| 784 |
the unforced call runs. It compares only mountedColumns ([0,9] before and after — a column leaving does not move the range), so it recycles every row |
| 786 |
the center body's flight carries 0 deltas. Nothing is ever queued again |
VDomUpdate.registerPreUpdate is a Map.set keyed by component id, so a later deferral replaces an earlier one. grid.Body is its only caller. Two deferrals made during one flight collapse into one run, and that run carries the last caller's arguments rather than the union of their intent: a forced request (re-bind the cells to the new column set) is dropped whenever a plain one follows it. The same holds for silent: a render request followed by a silent one would be dropped too.
This explains every piece of the original dump:
- the App Worker is settled (nothing in the air, nothing queued);
columnPositions is already right (it is set before createViewData);
- the rows' cells are stale (they were never re-bound);
- the end body and the header are right (different components, their own flights).
The Fix
grid.Body#createViewData's deferral keeps the strongest intent across every deferral made during one flight. The deferred run is forced if any deferred call was forced, and renders (not silent) if any deferred call asked to render. The pending arguments live on the body and are consumed by the one run.
Rejected: making registerPreUpdate chain callbacks. It would run N re-renders where one suffices, and it moves a Body concern into the manager.
Acceptance Criteria
Out of Scope
- Rewriting the multi-body render path, or the
createViewData readiness guard (the dump rules it out for this symptom).
- Making the stress recipe part of CI. It is a 12-worker reproduction harness, not a gate.
- The cell-editing behaviour around lock changes (#18865, #18885, #18898 delivered it); this ticket is about a render that goes missing underneath it.
Avoided Traps
- ⛔ Filing it as a flaky test. The arm is not flaky: the App Worker is settled and correct, the DOM is wrong and final, and the user-visible result is a column rendered twice. A retry would hide it.
- ⛔ Naming #18899 / #18901 as the cause because it smells like them. Both merged before the head the dump was taken at. They are the family to look in, not the answer.
- ⛔ Concluding from a passing run. At ~1 in 25, "I could not reproduce it" is the expected outcome of a small sample.
Related
- Epic #18762 — deliberately not filed as a leaf: the epic's outcome is grid-native cell editing over pooled rows and columns, and this is a render that goes missing beneath it. The lock-change editing behaviour it covers is delivered (#18865, #18885, #18898); a leaf here would hold the epic open for a defect it does not own.
- #18867 (the
CellEditingLockedBodies witness this reds) · #18885 · #18898 · #18899 / #18901 / #18900 (the vdom flight family) · #12986 (the delta-stream contract epic)
unowned-rationale: n/a — self-assigned; the defect-note is mine and @neo-fable handed the surface back explicitly.
Origin Session ID: 6ecb7b5f-dc26-48a3-8e49-7232159377c1
Retrieval Hint: "grid body lost render column lock change registerPreUpdate replaced force createViewData deferred"
Context
Two independent sightings, on two different instruments, both on
devheads that already carry #18901 and #18909 — so neither of those fixes is the cure:test/playwright/e2e/grid/CellEditingLockedBodies.spec.mjs'slockEndarm went red once: "c3 renders in the end body", receivedcenter. Every center row had kept a cell for the moved column (r3c3afterr3c10, all 19 rows) while the end body rendered it too. 0 of 136 locally at the time. Broadcast as a defect-note 2026-09-18T17:39Z.dev@61b617a852whileregionOf(c3)was stillcenterfour seconds after the lock change.Their dump, quoted with its own qualifier — the App Worker is settled and correct:
columns.get('c3').locked === 'end', column order endsc37, c38, c3, c39columnPositions.get('c3')undefined,mountedColumns [0,9][c3, c39]isVdomUpdating: false,needsVdomUpdate: false— nothing in the air, nothing queuedplugin.session = {dataField: 'c3', held: 0}— the hold was released…while the DOM is wrong, and final:
c3cells per body: start 0, center 19, end 19; the edited record's center row has 11 cellsC3button sits in the end toolbar onlyLive latest-open sweep: checked the latest 20 open issues at 2026-09-19T10:33Z; all-state searches for
lost body render,column lock change edit,grid body stale DOM; A2A sweep at 10:37Z; Memory Core sweep on the symptom's nouns; own-assignment sweep. Nothing equivalent. The nearest neighbours are #18885 (the edit is lost when its column changes body — closed, a different failure) and the #18899 / #18900 / #18901 vdom family (all merged before the measured head).The Problem
vdom and vnode agree the center body has no
c3. The DOM has 19 of them, and no later render will correct it, because nothing is queued: from the App Worker's point of view the work is done. The user-facing reading is that after a column lock change during an edit, the grid can show the moved column twice — once in the center body and once in its new body — until something unrelated re-renders the center.The normal shape, for contrast, from 110 passing instrumented runs (@neo-fable wrapped
Neo.main.DeltaUpdates.insertNode/moveNode/removeNode/updateNode/replaceChildand logged every delta naming one of the 19 centerc3cell ids): exactly 20 deltas, allupdateNode— pooling re-binds those slots (data-field,aria-colindex,data-record-id,role, cls, text); nothing is ever removed or moved.So in the failing run, the center body's re-binding
updateNodes never reached the main thread for any row, while the end body's render and the header's did. A whole body's render is missing while its vnode was adopted anyway.Reproduction recipe (the only shape that has reproduced it; 0 of 136 without it):
npx playwright test \ test/playwright/e2e/grid/CellEditingLockedBodies.spec.mjs \ test/playwright/e2e/grid/CellEditingPooling.spec.mjs \ test/playwright/e2e/grid/CellEditingTabSuspended.spec.mjs \ -c test/playwright/playwright.config.e2e.mjs --repeat-each=25 --workers=12ONE Playwright process. Two concurrent processes do not reproduce it (0 of 80) and corrupt each other's trace artifacts.
The Architectural Reality
src/grid/column/Base.mjs:166—afterSetLockedcallsthis.parent?.onColumnLockChange(this).src/grid/Container.mjs:1056—async onColumnLockChange(column): re-sorts the columns, creates or updates the sub-grids, and passes sizes down.src/grid/Body.mjs:738—createViewData(silent, force). Two early exits matter: the readiness guard (store,availableRows,_containerWidth,columnPositions,mountedColumns[1]) returns with no retry, while theisVdomUpdatingbranch re-registers itself throughNeo.manager.VDomUpdate.registerPreUpdate. A lock change reachescreateViewData()three times in the window the hold keepsisEmbodiedfalse (#18865 / #18898 lineage).mountedColumns [0,9], i.e. it did compute its new view data. The loss is between that and the DOM.The Mechanism — measured 2026-09-19, neither candidate A nor B
The forced re-render is never requested. The lock change asks
grid.Body#createViewDatafor it, and the request is overwritten before it runs.Reproduced deterministically at
dev@ab2e7cd17c. A probe holds the center body's flight in the air for 300 ms, andc3is locked to the end during the hold. The census is0/19/19—c3renders in both the center and the end body, every time. The App Worker trail for the center body (probe oncreateViewData,VDomUpdate.registerPreUpdate/executePreUpdates, and everyupdateBatchflight):createViewData(false, true)— forced — meets the held flight → deferred (registerPreUpdate)createViewData()from the same lock change is deferred withreplaced: truemountedColumns([0,9]before and after — a column leaving does not move the range), so it recycles every rowVDomUpdate.registerPreUpdateis aMap.setkeyed by component id, so a later deferral replaces an earlier one.grid.Bodyis its only caller. Two deferrals made during one flight collapse into one run, and that run carries the last caller's arguments rather than the union of their intent: a forced request (re-bind the cells to the new column set) is dropped whenever a plain one follows it. The same holds forsilent: a render request followed by a silent one would be dropped too.This explains every piece of the original dump:
columnPositionsis already right (it is set beforecreateViewData);The Fix
grid.Body#createViewData's deferral keeps the strongest intent across every deferral made during one flight. The deferred run is forced if any deferred call was forced, and renders (not silent) if any deferred call asked to render. The pending arguments live on the body and are consumed by the one run.Rejected: making
registerPreUpdatechain callbacks. It would run N re-renders where one suffices, and it moves a Body concern into the manager.Acceptance Criteria
dev@ab2e7cd17c). The ticket as filed framed it as delta-stream candidates A or B; it is neither.grid.Body's deferral, with a deterministic e2e arm — a lock change that meets an in-flight center-body render — red ondev(0/19/19) and green with the fix. Plus a mutation that drops the force merge and reddens it.lockEndarm ofCellEditingLockedBodiessurvives the recipe. State the run count and the observed rate: the baseline is ~1 in 25 whole-recipe runs, so a green run of 25 is not evidence on its own, and the PR says how many it took.Out of Scope
createViewDatareadiness guard (the dump rules it out for this symptom).Avoided Traps
Related
CellEditingLockedBodieswitness this reds) · #18885 · #18898 · #18899 / #18901 / #18900 (the vdom flight family) · #12986 (the delta-stream contract epic)unowned-rationale: n/a — self-assigned; the defect-note is mine and @neo-fable handed the surface back explicitly.
Origin Session ID: 6ecb7b5f-dc26-48a3-8e49-7232159377c1 Retrieval Hint: "grid body lost render column lock change registerPreUpdate replaced force createViewData deferred"