LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtOct 19, 2026, 5:14 PM
updatedAtOct 19, 2026, 7:30 PM
githubUrlhttps://github.com/neomjs/neo/issues/19866
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 19, 2026, 7:11 PM

Two popup-return paths in the workstation leave the pane in its popup

neo-opus-grace
neo-opus-grace commented on Oct 19, 2026, 5:14 PM

Context

Operator screen recording, 2026-10-19 13:42Z, the v13.3 cut day: in apps/workstation, the v13.2 flagship, a pane torn out by its tab and carried back over the main window does not reintegrate (seconds 15–17). Main paints an accepted tab-into preview under the hand, the release commits the tear-out instead, and the live session's receipt reads lastCrossWindowTransfer: {applied: true, errors: ['Popup Workspace workstation-vessel:alerts left its pane in provisional chrome']}. Operator: an issue in the flagship app is a release blocker.

Reproducing it surfaced a second defect on the native title-bar path. Both reproduce in a real browser (Playwright, CDP window moves, the real mouse) on dev ddcd2eddf9 and on the v13.2.0 release source (b3c78f5523). Reversing the post-release dock commits (#19841, #19775, #19778) one at a time changes neither: both shipped with v13.2.0.

The Problem

  1. Edge release (the recording). Tear a pane out past the window edge, carry the vessel back over main's right column short of the 60 % reattach overlap, and main paints an accepted in-window preview under the pointer. On release the zone is still detached, so it fires dockTearOutTerminal: the detach commits and the pane stays in its popup, booted or still booting.
  2. Second title-bar return. Pop a pane out and return it by its OS title bar; pop a second one out and return it the same way: the second never docks. The first return's vessel stays in VesselPark.parked, so every later park is refused (seven retries, then the drop is abandoned without a trace).

The Architectural Reality

  • src/dashboard/dock/interaction/TabSortZone.mjs: onDragMove fires dockCrossZoneDragMove, the in-window preview, on every frame, detached or not; processDragEnd routes every detached release to dockTearOutTerminal.
  • Design authority (1): ADR 0029 §2.8.6, amended #19533: "inside a window it is that window's tab-header proxy, outside every window it is a vessel, the rule re-entry into the source window always followed."
  • src/dashboard/dock/window/VesselPark.mjs: onConversionIn refuses while any slot is held; the coordinator's committed terminal disposes the park. VesselWorkspace#onNativeWindowRelease (apps/workstation/view/VesselWorkspace.mjs) closes the returned vessel once main adopts and clears the coordinator's candidate first, so that terminal never runs, and nothing tells the park.
  • Design authority (2): the VesselPark contract: "Commit is the ONLY disposition … the slot clears only after strict success", and onVesselRetired "Forgets a vessel another owning lifecycle has already retired."
  • Coverage: the workstation NL battery returns one popup per session, and its morph arm cancels rather than drops. Hosted CI runs it (e2e-brain, blocking, since 2026-10-13) and passed with both bugs in, because no arm made either gesture.

The Fix

  1. TabSortZone.processDragEnd: a detached release whose pointer lies inside the source window's drag boundary is a re-entry. The zone fires dragBoundaryEntry (the host retires the vessel, zero mutation), then dockCrossZoneDrop at the release point. A release outside still fires dockTearOutTerminal.
  2. VesselWorkspace#onNativeWindowRelease: the release retires the park when the released window is the parked vessel's, matched by workspace key or window id.
  3. Found while proving (1): the re-entry retires a booted vessel, which leaves the Group while the drop's write prepares, and Commit refuses any write whose member set changed. DragAffordances#onDrop commits its operation rather than only the document, and WorkspaceSet#commit reduces an operation once more at the queue head when that refusal (now code: 'participants-changed') is the reason.

Contract Ledger

Surface Authority Behavior Fallback Docs Evidence
dockTearOutTerminal (TabSortZone → host) ADR 0029 §2.8.6 fires only for a detached release outside the source window a release inside re-enters and fires dockCrossZoneDrop processDragEnd JSDoc DockTabSortZone.spec.mjs arms
VesselPark slot of a released vessel VesselPark contract retired by the native release — retireReleasedPark JSDoc Workspace.spec.mjs arms
Commit membership refusal Commit.run the error carries code: 'participants-changed' message unchanged inline DockWorkspaceSetTransaction.spec.mjs arms
dock operation commit (WorkspaceSet#commit) the Group queue head an operation refused by a membership change is reduced once more a whole-document write is never re-sent commit JSDoc DockWorkspaceSetTransaction.spec.mjs arms

Decision Record impact: aligned-with ADR 0029 §2.8.6.

Acceptance Criteria

  • A vessel carried back over main and released inside it lands where main previewed it, booted and still booting (real-browser arm).
  • A second popped-out pane docks back by its OS title bar after the first one did (real-browser arm).
  • A detached release outside the window still detaches, and a walk-back while the vessel boots still retires it.
  • Unit arms cover both terminals and the park retirement; dock, workstation and draggable unit directories and the workstation e2e battery stay green.
  • [post-merge] The operator's recorded gesture reintegrates on the merged build.

Out of Scope

  • A native drop that lands while main is still settling a previous return is abandoned on its first null preview instead of awaiting answerWhenPreviewable (follow-up).

Related

#17844, #19533, #19264, #19775, #19778, #19841

Live latest-open sweep: the 20 latest open issues at 15:14Z, no equivalent (#19655 owns running the NL tier in CI). A2A claim sweep: the latest 30 lane-claims, none on the dock or the workstation. MC sweep: "popup dragged back over the main window does not reintegrate … second popup return never docks", no prior decision on either path; the 2026-09-03 finding that the multi-window e2e covers one path recurs here. Own-assignment sweep: 5 open, none on this surface.

Origin Session ID: 89fbb599-fb07-489d-a8ac-b016affdeab0 Retrieval Hint: "popup carried back over main lands in its popup; second titlebar return never docks; VesselPark stale parked slot; detached release inside the source window"

tobiu closed this issue on Oct 19, 2026, 7:11 PM
tobiu referenced in commit 74ed8d1 - "fix(dock): a popup carried back over main lands where main previewed it, and a second titlebar return docks (#19866) (#19867) on Oct 19, 2026, 7:11 PM