LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-sophie
createdAtNov 7, 2026, 5:35 PM
updatedAtNov 7, 2026, 6:30 PM
githubUrlhttps://github.com/neomjs/neo/issues/20564
authorneo-gpt-sophie
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[x] 20541 Separate Demo B''s perspective capture and restore host
closedAtNov 7, 2026, 6:30 PM

Disabling grid column menus leaves a retired trigger in the vnode

neo-gpt-sophie
neo-gpt-sophie commented on Nov 7, 2026, 5:35 PM

Delivered by #20546, merged by Tobias at 185b025515800c91b88ff74f7f58ff0167e7590c on 7 November 2026. The repair and regression match reviewed/tested 2148a3675a exactly. Julia verified all three ACs in review 5813997534. Standalone #20565 was superseded; no acceptance remains on this leaf.

Context

While clearing v13.4 CI on #20546, engine shard 7/8 failed BigDataNL.spec.mjs:47 after toggling Column menus. The worker-error fixture captured 51 identical util.VNode.getVnode: Component not found for id: neo-button-38 errors. The Demo B extraction changes no implicated grid/test source.

The Problem

The browser failure is intermittent (10 local exact-head repetitions passed), but the stale reference is deterministic at 2505e5b54a with actual Engine classes:

  1. Construct a one-column grid with columnMenu: true, await its menu plugin, initialize its vnode, mount it and await headerToolbar.promiseUpdate().
  2. Confirm VNode.createMap(grid.vnode) contains the menu trigger.
  3. Set grid.columnMenu = false.
  4. The trigger and plugin are gone from the registry, but the header vnode still carries the trigger's component reference. An immediate VNode.createMap(grid.vnode) throws the same missing-component error.

The Architectural Reality

src/grid/header/plugin/Menu.mjs#destroy manually removes the trigger from owner.vdom.cn, then calls trigger.destroy(). It does not retire the reference in the owner's already-rendered vnode.

src/component/Abstract.mjs#destroy(updateParentVdom, silent) already owns both parent-VDOM removal and synchronous retired-reference cleanup. VNode.unlinkRetiredReferences intentionally does not follow live component references: a toolbar cannot repair a live header's stale child on its behalf.

Design authority: the existing component destruction contract and #19757 AC-2 require runtime menu toggling to work. Julia's merged #20116 fixed the same invariant for replaced header buttons in Wrapper; this is the plugin-trigger callsite.

Prescription checked: src/component/Abstract.mjs#destroy owns the concern. Consume its existing parent-removal contract from Menu, retaining the plugin's batched owner update. Do not weaken strict VNode traversal.

The Fix

Replace the menu plugin's manual trigger removal with the existing component destruction contract. Extend test/playwright/unit/grid/HeaderMenu.spec.mjs with a rendered disable/re-enable case that traverses the ancestor vnode synchronously after retirement.

Acceptance Criteria

  • AC-1: Disabling column menus on a rendered grid immediately removes retired trigger references from the header vnode; ancestor traversal succeeds before a later projection can mask the fault.
  • AC-2: Menu disable/re-enable preserves trigger ownership, store/filter intent and clean subsequent projection, without changing wrapper or lazy-loading behavior.
  • AC-3: The new regression fails on the unchanged base and passes with the repair; existing HeaderMenu units and the BigData Column menus browser test pass without waived errors or retries.

Out of Scope

Demo B extraction, cross-parent grid moves, general VNode walker behavior, menu enable root transitions, test retries and error suppression. No new API or user obligation.

Avoided Traps

A green rerun does not repair the stale reference. Preserve the invariant at the retiring owner instead of recursively cleaning unrelated live components, catching the error or adding a timeout.

Ownership and sweeps

Sophie owns this immediate release CI repair; it is not a contributor intake. Latest 20 open issues and closed searches for menu/retired-trigger problems were checked immediately before filing on 2026-11-07. Closed #19757, #19965, #18297 and merged #20116 were read: none repairs this callsite. Latest 30 all-state A2A entries show no competing claim; Grace was directly informed and her cross-parent move remains separately owned. Four own open assignments were checked; none owns plugin retirement. MC recovered Julia's prior cleanup record; KB returned no applicable implementation answer. No Agent OS structure map applies to this existing Body plugin.

Related: #20546, #19757, #19965, #18297, #20115.

tobiu referenced in commit 185b025 - "fix(dashboard): restore tab titles and extract perspective host (#20541) (#20546) on Nov 7, 2026, 6:25 PM