Context
Found while measuring for #18941, promoted from my earlier defect-note. Measured in real Chromium (Playwright e2e rig, dev@7db03e862c) on the fixture test/playwright/component/apps/grid-cell-editing, whose pooled grid gives c3 the id grid-cell-editing-pooled-c3 (and the small grid gives city one).
The Problem
One id names two instances:
| Read |
Answer |
| console at boot |
Trying to create an item with an already existing id, once per id-carrying column — 2× on every boot of the fixture, so in every CellEditing* e2e run |
document.getElementById('grid-cell-editing-pooled-c3') |
the header button (button.neo-grid-header-button, text C3) |
Neo.worker.App.getConfigs({id: 'grid-cell-editing-pooled-c3', keys: ['className', 'dataField']}) |
the column (Neo.grid.column.Base, c3) |
Neo.logError writes to the console only, so no pageerror gate sees it.
The Architectural Reality
src/grid/Container.mjs#createColumns (:796): buttonConfig = {...column} copies the whole column config — id included — into the header button's config, then (:813–817) creates the column instance from the same config.
src/manager/Base.mjs#register (:28–36) refuses the second registrant of an id and logs; both instances go on living. The column registers first, so Neo.manager.Instance holds the column, while Neo.manager.Component (where a column never registers) and the DOM hold the button.
- Derived, not measured:
unregister() removes by key, so destroying the refused instance would drop the first registrant's entry.
No example or app in the repo gives a column an id today; the fixture does, so an arm can reach the column through setConfigs.
The Fix
The header button never takes its column's id: strip it from buttonConfig in createColumns. The column keeps the id the app gave it; the button gets a generated one, like the button of every column without an id.
Arm: the fixture boots with no already existing id line in the console, no DOM node carries the column's id, and the id still answers with the column in the App Worker. Red on dev.
Acceptance Criteria
Out of Scope
- Whether
manager.Base#register should throw rather than log.
- Whether
Neo.logError should reach the pageerror gates.
Avoided Traps
- Deriving a button id from the column's (
<id>__header): a second naming contract for something no consumer asks for.
Related
#18941 (where it was measured) · #18762
Live latest-open sweep: checked latest 20 open issues at 2026-09-19T11:08:19Z; no equivalent found.
A2A claim sweep: latest 10 messages (all read-states) at 11:06Z; no overlapping claim.
MC sweep: "Trying to create an item with an already existing id grid column explicit id header button shares the id", 5 results, no prior decision found; corpus grep for the log line: only #8830 (unit specs with hard-coded ids, unrelated).
Own-assignment sweep: 2 open (#15252, #18941), not overlapping.
Origin Session ID: 2c9503fc-beef-4d80-939b-7d616601cd97
Retrieval Hint: "grid column explicit id header button buttonConfig already existing id"
Context
Found while measuring for #18941, promoted from my earlier defect-note. Measured in real Chromium (Playwright e2e rig, dev@7db03e862c) on the fixture
test/playwright/component/apps/grid-cell-editing, whose pooled grid givesc3the idgrid-cell-editing-pooled-c3(and the small grid givescityone).The Problem
One id names two instances:
Trying to create an item with an already existing id, once per id-carrying column — 2× on every boot of the fixture, so in everyCellEditing*e2e rundocument.getElementById('grid-cell-editing-pooled-c3')button.neo-grid-header-button, textC3)Neo.worker.App.getConfigs({id: 'grid-cell-editing-pooled-c3', keys: ['className', 'dataField']})Neo.grid.column.Base,c3)Neo.logErrorwrites to the console only, so nopageerrorgate sees it.The Architectural Reality
src/grid/Container.mjs#createColumns(:796):buttonConfig = {...column}copies the whole column config —idincluded — into the header button's config, then (:813–817) creates the column instance from the same config.src/manager/Base.mjs#register(:28–36) refuses the second registrant of an id and logs; both instances go on living. The column registers first, soNeo.manager.Instanceholds the column, whileNeo.manager.Component(where a column never registers) and the DOM hold the button.unregister()removes by key, so destroying the refused instance would drop the first registrant's entry.No example or app in the repo gives a column an id today; the fixture does, so an arm can reach the column through
setConfigs.The Fix
The header button never takes its column's
id: strip it frombuttonConfigincreateColumns. The column keeps the id the app gave it; the button gets a generated one, like the button of every column without an id.Arm: the fixture boots with no
already existing idline in the console, no DOM node carries the column's id, and the id still answers with the column in the App Worker. Red on dev.Acceptance Criteria
idboots without the duplicate-id log line.Out of Scope
manager.Base#registershould throw rather than log.Neo.logErrorshould reach thepageerrorgates.Avoided Traps
<id>__header): a second naming contract for something no consumer asks for.Related
#18941 (where it was measured) · #18762
Live latest-open sweep: checked latest 20 open issues at 2026-09-19T11:08:19Z; no equivalent found. A2A claim sweep: latest 10 messages (all read-states) at 11:06Z; no overlapping claim. MC sweep: "Trying to create an item with an already existing id grid column explicit id header button shares the id", 5 results, no prior decision found; corpus grep for the log line: only
#8830(unit specs with hard-coded ids, unrelated). Own-assignment sweep: 2 open (#15252,#18941), not overlapping.Origin Session ID: 2c9503fc-beef-4d80-939b-7d616601cd97 Retrieval Hint: "grid column explicit id header button buttonConfig already existing id"