LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 19, 2026, 8:12 AM
updatedAtNov 20, 2026, 1:15 AM
githubUrlhttps://github.com/neomjs/neo/issues/21455
authorneo-opus-vega
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 20, 2026, 1:15 AM

A torn-out pane can come back to its window while its popup stays open

neo-opus-vega
neo-opus-vega commented on Nov 19, 2026, 8:12 AM

Owned by Vega (the tear-out lane, beside #21375).

Context

Row 1 of test/playwright/e2e/colors/tearOutMatrix.spec.mjs failed on CI four times on 19 Nov (#21410, #21412, #21436, #21445), and once in 10 local runs with the release moved outside the window. In every failing run the Grid pane, torn out into its popup, is back in the colors app's main window shortly after pointer-up, while the popup still shows it:

Error: the main window after the drop: no chart text leaves its svg
+   "\"Occurrences in grid cells\" at 47,543 17×175, its svg at 34,527 1212×160",

The failing CI job (135375311683) and its green rerun (135393511768) log the same receipt (acquiredAtStep: 8, proxyRight: 1508), and dev passed 10 of 10 local runs: the gesture is the same, the outcome races. In the CI trace the main window shows two panes at pointer-up and three about 220 ms later; its error context lists a Grid pane in the main window.

The Problem

Someone who drags a pane out of a dashboard and lets go soon after its popup appears can end up with the pane in both windows: the popup keeps its DOM while the source window renders it again. Which window owns the widget is then undefined.

The Architectural Reality

Design authority: row 1's contract at the drop, "Pointer-up outside the source window is the DETACH terminal: the popup persists as a standalone OS window."

  • Neo.dashboard.Container#openWidgetInPopup stages the widget in detachedItems; the widget moves into the popup only when the popup's app connects (#onWindowConnect → mainView.add).
  • Neo.draggable.container.SortZone#processDragEnd moves the dragged component back into its owner when isWindowDragging is false and the component is still in owner.items; #checkWindowBoundary restores the layout on a re-entry.
  • Container#onWindowDisconnect reintegrates a detached widget when its popup disconnects outside a drag.

Which of the three returns the pane is not traced yet: the colors app's App worker is a SharedWorker, so its onDragBoundaryEntry and onWindowDisconnect logs never reach the page console the spec reads.

The Fix

Trace first: a receipt the spec can read for each of the three paths, so a failing run names the one that fired. Then make a detach terminal leave the pane in exactly one window.

Acceptance Criteria

  • AC-1: The PR names the path that returns the pane, with a failing run's receipt.
  • AC-2: After a detach terminal the pane renders in exactly one window.
  • AC-3: Row 1 asserts again that the main window's panes refill its area and that no chart text leaves its svg (the arm #21453 removes); 20 of 20 local runs pass.

Out of Scope

  • The colors bar chart cutting its axis title in three 198-px panes at 1280 × 720 (defect-note, 18 Nov).

Related

#21453 (takes the arm out of row 1 meanwhile), #21380 (added it), #21363, #21375.

Live latest-open + closed sweep: checked latest 20 open + open and closed search (tear-out matrix, tearOutMatrix, torn-out pane, popup) at 2026-11-19T07:01:10Z and the latest 8 open at 07:04:45Z; no equivalent found. Backlog band: 79 open (red); a defect in my own tear-out lane, no owning epic. A2A claim sweep: latest 12 messages in all read-states, newest 07:01:12Z; no claim. Promotes defect-note 7bf67b0c447f7b60 on its second, independent sighting (the local run). MC sweep: "tear-out matrix row 1 … chart text leaves its svg", 5 results, no prior decision. Own-assignment sweep: #21375 is the nearest, a different terminal (a center pane leaving its window).

Retrieval Hint: "torn-out pane returns to the source window while its popup stays open: drop before the popup's app connects"

tobiu referenced in commit bde0d8e - "test(dashboard): row 1 drops its main-window arm until the race is gone (#21453) (#21456) on Nov 19, 2026, 11:22 AM