LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtOct 23, 2026, 7:09 PM
updatedAtOct 23, 2026, 8:56 PM
githubUrlhttps://github.com/neomjs/neo/issues/20072
authorneo-opus-vega
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 23, 2026, 8:56 PM
milestonev13.3.1

Tab siblings keep reordering while the drag is far outside their strip

neo-opus-vega
neo-opus-vega commented on Oct 23, 2026, 7:09 PM

Context

Operator, 2026-10-23 ~17:05Z, his manual test of the v13.3.1 head (an 11 s screen recording), filed as minor by him: he drags the Metrics tab, whose strip has one sibling (Audit), out of the header and across the window; while the pointer is far outside the strip, the Audit header keeps sliding left and right "as if it was an in-header drag".

Design constraint (operator, 17:1xZ): this is a dock-layout defect, not a toolbar one. In a default tab container with sortable headers and no other drop zones (examples/tab/container), the reorder continuing after the pointer leaves the boundary container is wanted behaviour and stays. Only a strip that takes part in dock drag parks its reorder.

The live app (his Chrome window, Neural Link session 6cc72d13…, dev c393d9f544) shows the mechanism in the sort zone's own trace (get_drag_trace, zone neo-dock-tab-sortzone-4, owner neo-tab-header-toolbar-5, items neo-tab-header-button-16 / -17, strip at y ≈ 150):

ts pointer over event
…142685 (920, 224) false switch 0 → 1
…144116 (894, 447) false switch 1 → 0
…145468 (918, 499) false switch 0 → 1
…146537 (899, 470) false switch 1 → 0

Four sibling swaps, every one with the pointer 75–350 px below the strip, each when the pointer's x crossed the sibling's midline; the gesture then landed as a dock drop (Metrics split beside Priority Alert Observatory in the left pane; frames 17–23), and the sort zone's terminal was end from 0 to 0, noop. The first recording of the day carries the same class in the heavy-tabs strip: switch 5 → 4 at y 294 and 4 → 3 at y 573 while over: false (the #20070 trace, gesture 3).

Frames 5–9 of the recording: the Audit header sits at the strip's right end, then at its left, then right again, while the ghost and the "Moving pane to another window…" vessel travel the window.

Sweeps: the newest 20 open issues at 16:52Z and the claims of the last hour, no equivalent (#20070 is the other finding of this test; Ada's #19986 / #19987 / #19988 from 10-22 are the adjacent strip-drag defects: the maximized-pane edge preview, the overflow recapture paint, the flying header); Memory Core (query_raw_memories on the symptom): those three, none is this.

The Problem

The within-toolbar reorder is a one-axis machine. Neo.draggable.container.SortZone#onDragMove (src/draggable/container/SortZone.mjs:723-845) reads isOverDraggingStart / isOverDraggingEnd only along the sort axis (:755-761: clientX beyond the boundary's left or right for a horizontal strip) and otherwise swaps siblings whenever the pointer's delta along that axis exceeds moveFactor of the neighbour's width (:812-823 → switchItems, :1074). Nothing in that path asks whether the pointer is still anywhere near the strip on the cross axis. For a plain sortable toolbar that is the right contract: the user keeps control of the order with a loose hand, and there is nothing else the gesture could mean.

A dock strip is different. The dock's TabSortZone enables overdrag and the drag proxy may leave the container (tear-out), so a dock drag spends most of its life far from the strip where it means a dock operation, and every horizontal crossing of a sibling's midline down there animates the strip as if the drag were in-header.

The release already knows the difference: TabSortZone#releaseVoidsReorder (src/dashboard/dock/interaction/TabSortZone.mjs:523-532) declares a release farther than dockReleaseTolerance (32 px, :108-114) beyond the toolbar's real bounds "dock-gesture territory" and voids the tracked reorder there, so the drop lands right. Only the hover contradicts it: the siblings move for a reorder the release will void. The tear-out path even has the parking mechanism: startWindowDrag parks the base reorder and endWindowDrag "un-parks" it (:256-263); the in-window, out-of-strip phase of a dock drag never parks.

The Architectural Reality

  • src/draggable/container/SortZone.mjs: onDragMove :723-845 (axis-only over-drag at :755-765, the swap branches :782-823, the trace emitter :826-838), switchItems :1065+, sortBoundaryRect :134-137, boundaryContainerRect and the tear-out hysteresis :376-482. Its over-boundary reorder is a contract, not a defect: src/draggable/tab/header/toolbar/SortZone.mjs (the default tab-header zone) and examples/tab/container/MainContainer.mjs rely on it, as do the grid header's sortable buttons (test/playwright/unit/grid/HeaderButtonSortable.spec.mjs).
  • src/dashboard/dock/interaction/TabSortZone.mjs (the dock strip, a different class): dockReleaseTolerance :108-114, enableCrossZoneDrag :125-127 (the dock-participation flag the release path already gates on, :682, :688, :703), sortGroup :120-122, releaseVoidsReorder :510-532 (pure over instance state, built to be driven per event), startWindowDrag / endWindowDrag :237-263 (the existing park / un-park of the base reorder), onDragMove :729-763 (feeds the coordinator and the dock hover, then super.onDragMove), processDragEnd :594-700 (consumes releaseVoidsReorder).
  • The dock host paints its own hover (DragAffordances), so parking the dock strip's reorder loses no affordance: the user sees the dock preview, not a reorder. A plain toolbar has no such host, and its reorder is the only affordance; that is the operator's distinction in code.

Design authority: releaseVoidsReorder's contract (beyond the tolerance band is dock territory) and the tear-out's park / un-park, both already gated on enableCrossZoneDrag. The hover should show what the release will do, in the one zone whose release has two meanings.

The Fix

In TabSortZone only, gated like the release (enableCrossZoneDrag !== false): park the base reorder while the pointer is outside the strip's tolerance band, un-park it when the pointer returns, so the hover matches the release.

  1. TabSortZone#onDragMove: evaluate releaseVoidsReorder({clientX, clientY}) per move. Entering dock territory parks the within-toolbar reorder the way startWindowDrag does (siblings return to their resting order, currentIndex back to startIndex, no further switchItems) while the proxy keeps moving and the coordinator / dock hover keep receiving the frame; re-entering the band un-parks it (endWindowDrag's half), and the reorder resumes from the live pointer. If the base needs a seam for "move the proxy but do not reorder", add it to SortZone as the single opt-in flag the tear-out park already implies, default off, so no base consumer changes behaviour.
  2. The release path is unchanged: releaseVoidsReorder still decides, and a release inside the band still commits the reorder the un-parked hover tracked.
  3. draggable/tab/header/toolbar/SortZone, examples/tab/container and the grid header keep today's over-boundary reorder untouched.

Red-first: a unit arm over the dock strip with a two-item strip, a pointer that leaves the band and crosses the sibling's midline (today: a switch in the trace; after: none, and the sibling's rect is its resting rect), then re-enters and crosses it (a switch again); the same sweep over the default tab-header zone keeps its switch (the control that pins the operator's distinction); a throttled e2e arm in test/playwright/e2e/workstation/ performing the operator's gesture (Metrics out of a two-tab strip, a horizontal sweep 300 px below it, a dock drop elsewhere) asserting the Audit header's rect never changes while the pointer is below the band and the dock drop still lands.

Contract Ledger Matrix

Target Surface Source of Authority Proposed Behavior Fallback Docs Evidence
dock strip reorder during a dock drag (TabSortZone, enableCrossZoneDrag !== false) releaseVoidsReorder (the release contract) siblings hold their resting order while the pointer is beyond dockReleaseTolerance; reorder resumes inside the band none needed; the release already voids TabSortZone docblock :108-114 AC-1, AC-2
default tab-header and toolbar reorder (draggable/tab/header/toolbar/SortZone, grid header, examples/tab/container) the base SortZone contract (operator, 17:1xZ) unchanged: the reorder follows the pointer after it leaves the boundary container — — AC-3
in-band dock drags unchanged reorder as today — — AC-3
tear-out park / un-park startWindowDrag / endWindowDrag unchanged; the in-window park reuses its seam — — AC-2

Decision Record impact

none.

Acceptance Criteria

  • AC-1 Unit, red-first (dock strip): a two-item horizontal dock strip, a drag of item 0 that moves 300 px below the strip and sweeps across item 1's midline: the trace carries no switch, item 1's rect is its resting rect; on dev today the same sweep emits switch 0 → 1.
  • AC-2 Re-entry: the same drag brought back into the band (within dockReleaseTolerance) and swept across the midline reorders (switch), and a release there commits the reorder; a release outside the band after a sweep commits nothing (the void, unchanged).
  • AC-3 Default toolbars unchanged (the operator's distinction): the same sweep over draggable/tab/header/toolbar/SortZone (the examples/tab/container zone) and over the grid header's sortable buttons still emits switch and commits the reorder on release outside the boundary container; the existing within-toolbar reorder arms stay green; a dock drag that never leaves the band behaves exactly as on dev.
  • AC-4 E2E, the operator's gesture, red-first under throttle: Metrics out of a two-tab strip, a sweep 300 px below it across Audit's midline, a dock drop into another pane: Audit's header rect is constant for every frame below the band on the head (on dev it changes), and the dock drop lands as before.
  • AC-5 Live (PMV): the operator repeats his gesture on the merged head and the Audit header does not move until the pointer is back at the strip; the examples/tab/container headers still follow a loose hand.

Out of Scope

  • The base SortZone's over-boundary reorder for plain toolbars: wanted, kept.
  • The tear-out vessel's own choreography (startWindowDrag / endWindowDrag), beyond reusing its park.
  • Ada's adjacent strip defects (#19986, #19987, #19988).
  • Vertical strips: the fix is axis-agnostic by construction (releaseVoidsReorder pads the real rect on all sides), but no vertical consumer is on the tester's path.

Avoided Traps

  • Fixing it in the base SortZone: would take the loose-hand reorder away from every plain toolbar and tab container; the operator named that behaviour as wanted.
  • Clamping the proxy to the strip: the dock drag must leave the strip; the proxy is right, the sibling animation is wrong.
  • Voiding at release only (today): the drop is already right; the hover lies for the whole gesture.
  • A new distance threshold: dockReleaseTolerance is the band the release uses; the hover must use the same number or the two disagree again at the edge.

Related

#20070 (the same test's first finding, the own-pane edge drop; Ada), #20057 / PR #20063 (drag-end focus restore, SortZone#processDragEnd), #19986 / #19987 / #19988 (Ada's strip-drag defects of 10-22), #20022 (the cut).

handoff: @neo-opus-grace (the SortZone#processDragEnd seam is yours from #20057; your v13.3.1 rows are merged; yours to decline on AGENT:*)

Retrieval Hint: "tab strip sibling reorder while pointer outside toolbar dock drag switch over false releaseVoidsReorder park base reorder dock strip only"

— Vega (Claude Fable 5.1, Claude Code) 🌿

tobiu referenced in commit da49631 - "fix(dock): a tab dragged beyond its strip's release band leaves its siblings resting (#20072) (#20074) on Oct 23, 2026, 8:56 PM
tobiu closed this issue on Oct 23, 2026, 8:56 PM