LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 18, 2026, 4:44 PM
updatedAtNov 19, 2026, 2:52 AM
githubUrlhttps://github.com/neomjs/neo/issues/21363
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 19, 2026, 2:52 AM

Torn-out windows open at the pane's size, and the matrix measures it

Closed v14.0.0/archive-v14-0-0-chunk-4 bugaitestingdashboarddrag-and-drop
neo-opus-vega
neo-opus-vega commented on Nov 18, 2026, 4:44 PM

Owner: Vega, PR due Thu 19 Nov. Not curated for contributors: the operator has escalated this twice, and the cut is Mon 23 Nov.

Context

The operator has watched the headed tear-out matrix twice and seen wrong sizes both times:

  • On 2026-11-08: "proxy sizes inside your headed e2e tests definitely broken."
  • On 2026-11-18, in the run that was the receipt for #21295: "all dashboard examples at the start had WRONG proxy sizings. what value has a suite if does not BREAK on such wrong results?"

Both runs passed (11 rows green, 3 test.fixme) because no row measures a size. On 11-08 Maryam traced three causes (Memory Core session f799fbcf-436d-4be0-b9ec-5ba9a23bc666). No ticket followed, and today's dev still has the first cause.

The Problem

  1. A torn-out tab opens a 320 × 240 window.
    • Workspace#openTearOutVessel (src/dashboard/dock/Workspace.mjs:1194-1195) and DemoBNativeWindowHost#openTearOutVessel (examples/dashboard/crossWindow/DemoBNativeWindowHost.mjs:615-616) size the window from proxyRect.
    • For a tab drag, the proxy is the tab's header button (76.5 × 32 on 11-08), so every window drops to the 320 × 240 floor.
    • Re-checked on dev today: both places still read proxyRect?.width / proxyRect?.height.
  2. The colors rows tear out on their first step.
    • test/playwright/e2e/colors/tearOutMatrix.spec.mjs presses at the handle's center, then moves to box.x + (viewport.width + 200 - box.x) * (i / 25), whose first point lies near the handle's left edge.
    • The 1216 px proxy jumps about 550 px left, its intersection ratio falls below the 0.8 detach threshold, and the popup opens before the slow crossing the row's title names.
    • Re-checked today (1280 × 720, real Chrome, headed): the popup was acquired within the first 3 of 25 steps.
  3. Measured on 11-08, not re-measured here:
    • main.addon.DragDrop#onDragStart takes the proxy rect and offsets from the pressed element (resolvePressedElement), which can be an inner handle. DragZone#dragStart sizes the proxy to getDragElementRoot() and never syncs them back.
    • Demo B's boundaryContainerRect defaults to its 32 px tab strip, so a 24 px vertical move inside the window already detaches.

Also measured today, on one tree served by webpack serve and by #21295's file server, with identical numbers:

  • At 1280 × 720 the colors dashboard stacks its panels at 153, 198 and 198 px.
  • At 198 px the bar chart cuts its axis title at rest ("urrences in grid cells").
  • The torn-out pie window (1216 × 198) clips its top label whenever the random data puts a label there.

The Architectural Reality

Design authority: Workspace#openTearOutVessel, "The proxy rect is the pane the user dragged, so the vessel opens where they let go." (src/dashboard/dock/Workspace.mjs:1192), and #19559 (merged 2026-10-10), "a torn-out tab opens its window at the pane's size, measured at drag arming". A tab drag breaks the comment's premise, because its proxy is not the pane.

  • The pane's rect at arming already exists. On 11-08, TabSortZone#onDragStart measured it, TearOut#onDockTearOutExit forwarded it as sourceRect, and NativeLifecycle#acquire carried it.
  • The matrix guide (learn/guides/specificfeatures/TearOutPortabilityMatrix.md) measures platform semantics: acquisition, moveTo, hysteresis. Its one render receipt is [id^="neo-"] being visible in the popup, which a 320 × 240 window and a clipped chart both pass.
  • The runner is test/playwright/playwright.config.matrix.mjs: headed real Chrome, 1280 × 720, serial, not in CI. It serves colors/tearOutMatrix.spec.mjs, dashboard/TearOutMatrixRows4To7NL.spec.mjs, dashboard/DemoBCrossWindowDragNL.spec.mjs and dashboard/DemoBThirdClaimantStageNL.spec.mjs.

The Fix

  1. Both openTearOutVessel paths size the window from the source pane's rect measured at arming; proxyRect keeps only the position. The two places share the same two lines, so they get one implementation.
  2. The colors rows' path starts where the pointer pressed and moves right, so each row's crossing is the one its title names.
  3. Every live matrix row measures what the operator looked at, at four moments:
    • at gesture start, the proxy's rect equals its source's ± 1 px;
    • the popup has the source pane's size, per #19559's contract;
    • the content fills the popup, and no chart text leaves its svg;
    • after the drop or the reintegration, the remaining panes fill their window.
  4. Anything else these assertions find red (cause 3, the 198 px colors charts) is either fixed in this PR or split into a ticket that the PR names before it opens.

Acceptance Criteria

  • AC-1: Both openTearOutVessel paths open a window of the dragged pane's size. A Demo B arm proves it, red on dev (320 × 240).
  • AC-2: The colors rows acquire their popup only after the proxy crosses the right edge. The receipt records the step of acquisition, red on dev (≤ 3 of 25).
  • AC-3: Each live row of the four specs asserts the four moments of Fix 3. Each assertion is shown red against the state it guards; the PR names the arm and its red output.
  • AC-4: The matrix runner passes headed at 1280 × 720 on macOS. The PR carries the receipts: rows, sizes, and a popup frame per row.
  • AC-5: A unit arm calls openTearOutVessel with a tab-sized proxyRect and a pane-sized source rect, and gets the pane's size.

Out of Scope

  • The matrix's Windows and Linux cells (NOT_YET_MEASURED stays).
  • The test.fixme contracts of rows 2 and 4–7, except where a live arm now covers them.
  • The colors dashboard's layout at other viewports.

Avoided Traps

  • A taller runner viewport would make the colors charts fit and hide what the operator saw, so 1280 × 720 stays.
  • [id^="neo-"] being visible proves the popup booted, not that anyone can read it.
  • Pixel snapshots break on the colors app's random data. Rects do not move with the data, so the assertions compare rects.

Related

#21295 (the run this was the receipt for; the clipping measured as not the file server's: https://github.com/neomjs/neo/pull/21295#issuecomment-6983371618) · #19559 (the pane-size contract) · #15243 (the matrix's origin) · #19597 (header-action pop-outs at the 480 × 360 fallback, closed) · #21358 (the Multi-Window band; its Colors leaf is #21330).

Live latest-open + closed sweep: at 2026-11-18T15:40:55Z, checked the latest 20 open, plus open and closed searches for "tear-out matrix", "colors chart clipped", "popup size tear-out" and "matrix geometry". Read the closed hits #19597, #15243, #15443 and #19584 for scope. 86 open, red band. No owning ticket or epic holds the tear-out sizes (#21358 covers the Multi-Window cards, not the dock's tear-out), and no equivalent or prior exclusion exists. A2A in-flight sweep: latest 30 messages in all read-states, newest at 15:39:55Z, no claim on tear-out sizes. MC sweep: "tear-out matrix passed while the colors dashboard charts were clipped …" and "popup window sized to the source panel too small …", 12 results. They hold Maryam's 11-08 trace (never ticketed) and the 10-10 pane-size contract, and no decision against it. Own-assignment sweep: 7 open, none overlapping (#21215 is the file server). Structure map: N/A, no Agent OS placement.

Origin Session ID: 7ef5a927-030d-4641-88bb-3f0110d5e946 Retrieval Hint: "torn-out tab opens a 320×240 window: proxyRect is the tab button, not the pane; the tear-out matrix asserts no geometry"

tobiu referenced in commit 6c04916 - "fix(dashboard): torn-out windows open at the pane's size, and the matrix measures it (#21363) (#21380) on Nov 19, 2026, 2:52 AM
tobiu closed this issue on Nov 19, 2026, 2:52 AM