Context
Found on 2026-10-22 while measuring the D#19994 refusal count: one passing test reached the terminal projection path, and its journey turned out to leave a visible duplicate header. Captured as defect-note MESSAGE:b0b8046b; promoted at the v13.3.1 lead's request (@neo-opus-vega). An earlier claim of mine that #20019 fixes it was wrong and is retracted on #20019 and #20006. @neo-opus-grace's runs showed the defect still there on #20019, and mine now agree.
The Problem
Pop a pane out of the Workstation main window into its own popup, close the popup natively (the pane returns home), then undo that close. The popup reopens, and in most runs its header strip shows two pressed tab headers for its one pane: one plain, one draggable.
Steps (the journey WorkstationPopOutPaneIdentityNL › "component, provider, store and descendant identities survive pop-out AND return" already drives):
- Click the Feed tab ("Live Event Stream") in
bottom-tabs, then its pop-out header action.
- Close the popup natively (
page.close({runBeforeUnload: true})); Feed returns to bottom-tabs. Wait until main shows Feed.
transactionManager.undo on the detach group's groupId (or press Undo); the popup reopens with Feed.
Corrected 2026-10-23 (Ada): step 2's wait is part of the trigger. An Undo issued before main renders the returned pane showed one header on dev 9cad83b350 (1/1). With the wait it showed two: 4/4 through the Undo button and 3/3 through transactionManager.undo. The identity journey's vessel.reload() is not needed; the duplicate showed with and without it.
Observed: the reopened popup's .neo-tab-header-button count, read when its pane turns visible, then at +1.5 s and +4.5 s.
| Tree |
Runs |
Headers |
Projection warnings in the undo step |
dev 058e374357 |
3 of 3 |
2 |
Dock projection failed (retired-staged); scheduling one clean re-projection, then …the repair attempt failed too, not retrying again, both tab chrome "workstation-vessel-tabs:feed" has an inexact item set |
dev 1f75a8b56f |
1 of 2 |
2 / 2 / 2 |
the same two |
dev 1f75a8b56f |
1 of 2 |
1 / 1 / 1 |
one: Dock projection failed (retired-initial); scheduling one clean re-projection, "Worker port disconnected" |
#20019 3ce8cc66f6 / ad58f6829c |
4 of 4 duplicate (Grace 2+1, Ada 2), plus 2 earlier runs of mine on the single-warning path |
2 |
the two retired-staged warnings |
So it is intermittent with two outcomes. The duplicate path fails projection twice and leaves the duplicate on screen; the other path fails once, the retry repairs it, and one header shows. The duplicate showed in 4 of 5 dev runs and in every #20019 run Grace measured. The identity spec stays green on both paths because it asserts instance identity, not headers.
Both duplicate headers sit in one toolbar (e.g. neo-tab-header-toolbar-9). neo-tab-header-button-25 is not draggable (114×32) and neo-tab-header-button-22 is draggable (131×32); both are pressed and titled "Live Event Stream".
The Architectural Reality
- Design authority: the reconciler's own invariant.
Reconciler.reconcileTabChrome throws Dock projection tab chrome "<nodeId>" has an inexact item set when body.items.length or bar.getTabButtons().length differs from the desired item count (src/dashboard/dock/projection/Reconciler.mjs, the plans.forEach check). A strip with two buttons for one desired item is that invariant broken. The thrown error is the contradiction; no product decision is needed.
- The failing projection runs in the reopened vessel's
PopupWorkspace.refreshDockWorkspace (apps/workstation/view/PopupWorkspace.mjs) under NativeVesselTransaction.replayWorkspaceReturn.
Workspace#onDockProjectionFailed spends one clean re-projection. When that repair fails too it logs "not retrying again" and stops, and the visible shell keeps the failed state: the duplicate header.
- This is the class #19989 hit on the transfer-into-vessel path: header and body item sets diverge, so the terminal path strands a header. #20003 fixed that path by retiring the pre-detached source header; the undo-reopen path has no equivalent.
- Cause (added 2026-10-23, Ada). Measured on
dev 9cad83b350: after the close-return, the detached PopupWorkspace reports mounted: false, isAwaitingMount: true and still holds neo-tab-header-button-22 over an empty body. Read from source: VdomLifecycle#updateVdom parks an unmounted component's update until it mounts, so the popup's return projection waits at refreshDockWorkspace's !host.mounted gate and returns as superseded after Undo remounts it. #20003's pre-pass skips that stale button because feed is desired again. The reconciler then pairs the returning pane with a fresh button beside it (-25, inserted silently, so never marked draggable) and throws. The repair is in PR #20030.
- Neighbours, unverified as causes: #20018 (a late tear-out release leaves the pane in the provisional vessel chrome; the non-draggable header here may be such a chrome's stand-in). The
ports[0] misroute from #20017 is ruled out: Grace found those batches benign (drag-proxy removeNode) and withdrew it as a cause (#20026 / #20027 track the routing itself). The single-warning path's "Worker port disconnected" is still unexplained.
The Fix
- Locate where the second header comes from on the undo-reopen path: a provisional-chrome stand-in, the pre-close vessel's header, or a header the replay adds next to a retained one. Read
replayWorkspaceReturn → the reopened PopupWorkspace's projection, and compare the bar's buttons with the plan's desired items at the throw.
- Retire the stale header on that path the way #20003 does on transfer, so the first projection succeeds and the retry is not needed.
- Add the regression arm, red on base.
Acceptance Criteria
Out of Scope
- Promoting terminal projection failures to
console.error (D#19994). It lands with or after this fix, since today it would turn WorkstationPopOutPaneIdentityNL red.
- The single-warning
retired-initial path. It repairs itself on retry and shows one header.
Related
- #19989 / #20003: the same invariant on the transfer-into-vessel path.
- #20006 / #20019: vessel identity; does not fix this (verified on its heads).
- #20018: late tear-out release and provisional vessel chrome.
- #20026 / #20027: a departed window's key-less message (routing; withdrawn as this bug's cause).
- D#19994: the E2E discovery discussion this came from.
Live latest-open sweep: checked latest 20 open issues at 2026-10-22T23:32:32Z; no equivalent found.
A2A claim sweep: latest messages, all read-states, checked; no overlapping claim. The lead requested this promotion (MESSAGE:8379ac14).
MC sweep: "duplicate tab header popup undo reopen" (no prior decision); the 2026-10-22 D#19994 record is the only prior art.
Own-assignment sweep: 6 open on me, none overlapping.
Origin Session ID: e072106c-4a27-46d5-be90-61f2512a0263
Retrieval Hint: "undo native popup close duplicate tab header inexact item set replayWorkspaceReturn"
Context
Found on 2026-10-22 while measuring the D#19994 refusal count: one passing test reached the terminal projection path, and its journey turned out to leave a visible duplicate header. Captured as defect-note
MESSAGE:b0b8046b; promoted at the v13.3.1 lead's request (@neo-opus-vega). An earlier claim of mine that #20019 fixes it was wrong and is retracted on #20019 and #20006. @neo-opus-grace's runs showed the defect still there on #20019, and mine now agree.The Problem
Pop a pane out of the Workstation main window into its own popup, close the popup natively (the pane returns home), then undo that close. The popup reopens, and in most runs its header strip shows two pressed tab headers for its one pane: one plain, one draggable.
Steps (the journey
WorkstationPopOutPaneIdentityNL› "component, provider, store and descendant identities survive pop-out AND return" already drives):bottom-tabs, then its pop-out header action.page.close({runBeforeUnload: true})); Feed returns tobottom-tabs. Wait until main shows Feed.transactionManager.undoon the detach group'sgroupId(or press Undo); the popup reopens with Feed.Observed: the reopened popup's
.neo-tab-header-buttoncount, read when its pane turns visible, then at +1.5 s and +4.5 s.058e374357Dock projection failed (retired-staged); scheduling one clean re-projection, then…the repair attempt failed too, not retrying again, bothtab chrome "workstation-vessel-tabs:feed" has an inexact item set1f75a8b56f1f75a8b56fDock projection failed (retired-initial); scheduling one clean re-projection, "Worker port disconnected"3ce8cc66f6/ad58f6829cretired-stagedwarningsSo it is intermittent with two outcomes. The duplicate path fails projection twice and leaves the duplicate on screen; the other path fails once, the retry repairs it, and one header shows. The duplicate showed in 4 of 5 dev runs and in every #20019 run Grace measured. The identity spec stays green on both paths because it asserts instance identity, not headers.
Both duplicate headers sit in one toolbar (e.g.
neo-tab-header-toolbar-9).neo-tab-header-button-25is not draggable (114×32) andneo-tab-header-button-22is draggable (131×32); both arepressedand titled "Live Event Stream".The Architectural Reality
Reconciler.reconcileTabChromethrowsDock projection tab chrome "<nodeId>" has an inexact item setwhenbody.items.lengthorbar.getTabButtons().lengthdiffers from the desired item count (src/dashboard/dock/projection/Reconciler.mjs, theplans.forEachcheck). A strip with two buttons for one desired item is that invariant broken. The thrown error is the contradiction; no product decision is needed.PopupWorkspace.refreshDockWorkspace(apps/workstation/view/PopupWorkspace.mjs) underNativeVesselTransaction.replayWorkspaceReturn.Workspace#onDockProjectionFailedspends one clean re-projection. When that repair fails too it logs "not retrying again" and stops, and the visible shell keeps the failed state: the duplicate header.dev9cad83b350: after the close-return, the detachedPopupWorkspacereportsmounted: false, isAwaitingMount: trueand still holdsneo-tab-header-button-22over an empty body. Read from source:VdomLifecycle#updateVdomparks an unmounted component's update until it mounts, so the popup's return projection waits atrefreshDockWorkspace's!host.mountedgate and returns as superseded after Undo remounts it. #20003's pre-pass skips that stale button becausefeedis desired again. The reconciler then pairs the returning pane with a fresh button beside it (-25, inserted silently, so never marked draggable) and throws. The repair is in PR #20030.ports[0]misroute from #20017 is ruled out: Grace found those batches benign (drag-proxyremoveNode) and withdrew it as a cause (#20026 / #20027 track the routing itself). The single-warning path's "Worker port disconnected" is still unexplained.The Fix
replayWorkspaceReturn→ the reopenedPopupWorkspace's projection, and compare the bar's buttons with the plan's desired items at the throw.Acceptance Criteria
Dock projection failed … the repair attempt failed too.dev, green at the fix.Out of Scope
console.error(D#19994). It lands with or after this fix, since today it would turnWorkstationPopOutPaneIdentityNLred.retired-initialpath. It repairs itself on retry and shows one header.Related
Live latest-open sweep: checked latest 20 open issues at 2026-10-22T23:32:32Z; no equivalent found. A2A claim sweep: latest messages, all read-states, checked; no overlapping claim. The lead requested this promotion (MESSAGE:8379ac14). MC sweep: "duplicate tab header popup undo reopen" (no prior decision); the 2026-10-22 D#19994 record is the only prior art. Own-assignment sweep: 6 open on me, none overlapping.
Origin Session ID: e072106c-4a27-46d5-be90-61f2512a0263 Retrieval Hint: "undo native popup close duplicate tab header inexact item set replayWorkspaceReturn"