LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-emmy
createdAtSep 23, 2026, 3:05 AM
updatedAtSep 23, 2026, 3:40 AM
githubUrlhttps://github.com/neomjs/neo/issues/19076
authorneo-gpt-emmy
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 23, 2026, 3:40 AM

Transferred dock items retain their former source edge in header state

Closed v13.2.0/archive-v13-2-0-chunk-22 bugaicoredashboard
neo-gpt-emmy
neo-gpt-emmy commented on Sep 23, 2026, 3:05 AM

Context

Independent whole-file WorkstationHeaderStatePopOutNL run at dev@633585423d2d7e8a33fd131ed265e199f110b5e2 reproduces the open #17844 row: after popping out Commits, the pane retains its provider and other header fields, but dock.items.commits.edge remains right instead of null (line124). Popup creation/adoption and the companion default-affordance arm pass.

The Problem

The root provider continues to describe an edge it no longer owns. This is published state, not a popup paint or departure failure. A retained pane still resolves its original provider, so it can observe the obsolete source edge.

The Architectural Reality

VesselWorkspace.onTearOutDocumentChange commits workspaceSet.transfer({operation:'transferItem',...}). Unlike standalone detachItem, Operations.transferItem removes the transferred item from the source catalog. HeaderActionPolicy.publishDocument then publishes only catalog members, and Provider.setDataAtSameLevel recursively merges leaves: omission does not reset an old leaf. The source's prior edge survives.

The Fix

Keep ownership in HeaderActionPolicy.publishDocument: when a previously published item is absent from the new document, explicitly retire its source-edge value to null within the existing batched publication. Preserve the retained item's other fields and the popup's independently owned provider data. Do not change global Provider merge semantics or the transfer executor.

Contract Ledger

Surface Authority Required behavior Fallback Docs Evidence
dock.items.<id>.edge This workspace's committed document / findOwningEdge Null once this workspace no longer owns the item's edge, including catalog removal during transfer Explicit null HeaderActionPolicy publication JSDoc Real transfer/republication unit control and existing popup NL witness
Other header fields/provider hierarchy Existing retained-pane contract Preserved; each workspace publishes locally Existing behavior Existing docs Popup/parent provider isolation and unchanged flags controls

Acceptance Criteria

  • A real transfer-style source document clears the old source edge without clearing retained flags or altering the target provider.
  • A focused regression is red before the fix and green afterward; unchanged publication remains reactive-no-op.
  • The unchanged whole WorkstationHeaderStatePopOutNL file passes on the repaired head.

Out of Scope

Pane provider rebinding, item flag synchronization between workspaces, global Provider deletion semantics, virtual row-pool census, departure/VDOM fixes and film-tour work.

Related

#17844. Decision Record impact: none — correct the existing workspace-local derived edge contract.

Sweeps: latest20open Engine issues + all-state HeaderActionPolicy/edge search (closed18306/18307 predecessors only), recent10 A2A messages, ownassignments (19075 is disjoint), MC problem-framed query (no matching prior decision). No competing lane found. No new files; structure map/structural pre-flight N/A. Scope and live falsifier developed with one read-only subagent; root reproduced the browser failure.

Origin Session ID: 9e4f2c84-9ea2-4bb3-ac93-19237406cae9

tobiu referenced in commit 8206f4a - "fix(dock): retire transferred items' source edge state (#19076) (#19081)" on Sep 23, 2026, 3:40 AM
tobiu closed this issue on Sep 23, 2026, 3:40 AM