LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 21, 2026, 10:16 PM
updatedAtNov 22, 2026, 2:23 AM
githubUrlhttps://github.com/neomjs/neo/issues/21827
authorneo-opus-vega
commentsCount3
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 22, 2026, 2:23 AM

The dock's empty center well accepts a dropped tab

Closed v14.0.0/archive-v14-0-0-chunk-6 enhancementaidashboard
neo-opus-vega
neo-opus-vega commented on Nov 21, 2026, 10:16 PM

Context

#21375 keeps a window's center as a place after its pane tears out: Demo B projects an empty center well (LayoutAdapter's enableDockCenterWell), and the pane comes home into it. Clio's design read (#21375, comment 7069215433) also makes the well a drop target: "Dropping a tab on the well uses the dock's ordinary drop preview." #21375's pull request delivers the well and the return. This ticket owns the drop.

The Problem

A tab dragged over the well finds no drop target today. The well is not a dock node: it carries no dockNodeId, because the committed document has no center. The preview path only knows dock nodes. So the one place the window offers for a pane accepts none, and a user who closed the away pane has no way to put any tab back in the center.

The Architectural Reality

  • The host measures dock zones and hands their rects to Neo.dashboard.dock.interaction.PreviewProducer#produce (src/dashboard/dock/Workspace.mjs, the producerZones read). It resolves a placement kind per hovered zone.
  • Neo.dashboard.dock.model.PreviewContract owns the kinds (VALID_PLACEMENT_KINDS) and the one path from preview to operation, previewToOperation. A free edge-zone center needs a kind of its own, because neither addTab nor splitNode targets an empty slot.
  • Operations.restoreTab with home: {parentId: <edge-zone>, slot: 'center'} already places a new tabs node into a free center (the return in #21375 uses exactly that), so no new reducer operation is needed.
  • Neo.dashboard.dock.interaction.Preview renders the region; DropIndicators builds the five-position menu, which a well, holding no node to split, does not fit.

The Fix

  1. The well config names its edge-zone (a runtime-only field), and the host's zone measurement includes it.
  2. A zone-center placement kind: the producer emits it over the well, the contract validates it, and previewToOperation maps it to restoreTab into the free center.
  3. The preview renders the whole well as the drop region; the indicator menu stays off over a well.

Acceptance Criteria

  • AC-1: Over Demo B's well, the ordinary drop preview shows the whole well, and a drop puts the tab into a rebuilt center (root.zones.center holds it).
  • AC-2: PreviewContract validates zone-center and maps it to restoreTab; unit arms cover the producer, the contract and the mapping, and a malformed zone-center preview fails closed.
  • AC-3: Hosts without enableDockCenterWell see no change: no well, no new kind emitted.

Out of Scope

  • The keyboard path to the well; it follows if the pointer path holds.
  • Wells in hosts other than Demo B.

Intake (22 Nov)

Drift probe: #21830 moved LayoutAdapter.mjs and Operations.mjs after filing. The well and its return landed as described above (LayoutAdapter.createCenterWell, :898; Operations.centerWellReturnDescriptor → restoreTab with home). Verdict: valid as written, sharpened:

  • Two places measure the zones, neither in Workspace: DragAffordances#ensureGeometry (src/dashboard/dock/interaction/DragAffordances.mjs:128, the engine's hover and release) and Demo B's own measureGeometry (examples/dashboard/crossWindow/DemoBCrossWindowStage.mjs:636, its in-window drag). Both measure tabs nodes only. Workspace's producerZones read (onDockCrossZoneDrop) is the default release, which Demo B overrides. Both sites take the well from one projection-owned helper, not two copies.
  • The drop needs a free tabs id: restoreTab adds to a tabs node that already carries the given id rather than rebuilding (Operations.mjs:241). A centre stack moved into a band keeps its id, so a fixed <zone>-center could land the drop in that band. The zone entry mints a free id from the document it measured (WorkspaceDocument.genId), and the preview carries it as placement.tabsNodeId.
  • The well's rect, not the root's: a well in a root edge-zone shares the root's node id, and both rect lookups prefer the root (DragAffordances#previewTargetRect, :241; DemoBCrossWindowHost#renderWorkspacePreview, :216). A zone-center preview paints against the well.
  • The renderer: Preview.mapPreviewToAffordance (:121) sends an unknown kind to the tab group. zone-center gets its own group, which paints the whole well.
  • A whole-stack drag: no operation places a node into a free centre, so the producer emits no preview for a group over the well (fail-closed). Its operation is out of scope here.

Prescription checked: src/dashboard/dock/model/PreviewContract.mjs. It owns the concern: the kinds and the one path from preview to operation. ADR successor-risk: adr-aligned. Artifact #21827 (21 Nov); ADR neomjs/neo#adr:0029-docking-design (Accepted, 2026-07-02); evidence: the kind list and its operation mapping live in the model contract learn/agentos/DockZoneModel.md (:390, :415), which the ADR names as the tier below it. Route: continue, with both table rows updated in the PR. Decision Record impact: aligned-with neomjs/neo#adr:0029-docking-design.

Contract Ledger

Target Surface Source of Authority Proposed Behavior Fallback Docs Evidence
placement.kind: 'zone-center' (PreviewContract.VALID_PLACEMENT_KINDS, src/dashboard/dock/model/PreviewContract.mjs:64) Clio's design read (#21375, comment 7069215433) a drop into an edge-zone's free centre; target.nodeId names the edge-zone a preview without a free tabsNodeId, or with groupNodeId, maps to no operation DockZoneModel.md :390, :415; contract JSDoc DockPreviewContract unit arms
placement.tabsNodeId (zone-center only) this ticket the id of the tabs node the drop builds, free in the measured document absent → invalid preview contract JSDoc DockPreviewContract unit arms
PreviewContract.previewToOperation (:247) Operations.restoreTab (Operations.mjs:241) zone-center → {operation: 'restoreTab', itemId, tabsNodeId, home: {parentId, slot: 'center'}, rebuild: true} a whole-stack (groupNodeId) preview → no operation method JSDoc; DockZoneModel.md conversion row DockPreviewContract unit arm + AC-1
Operations.restoreTab's rebuild argument and lock check (Operations.mjs:241) this ticket; Clio's lock read; Sophie's controls at 043de23b1f rebuild: true never joins a live tabs node of the descriptor's id: a claimed id is re-minted (WorkspaceDocument.genId) and the item builds the free center; a locked item still in the tree is refused a center taken since the hover refuses through restoreNodeHome, document unchanged; without rebuild a live node is joined as before, and a pane that is away returns whatever its lock method JSDoc; ADR 0029 §2.1 lock paragraph; DockZoneModel.md DockZoneModel unit arms: stale id, taken center, lock
the well config's runtime-only zone field (LayoutAdapter.createCenterWell, :898) this ticket names the edge-zone whose centre the well stands in n/a method JSDoc DockLayoutAdapter unit arm
zone entries {nodeId, rect, type: 'center-well', tabsNodeId} (DragAffordances#ensureGeometry, Demo B stage measureGeometry) this ticket the well joins the measured zones only where it is projected no well → unchanged zones (AC-3) PreviewProducer#produce JSDoc producer + geometry unit arms

Related

#21375 (the well and the return) · ADR 0029 (docking design)

Not a good first issue: it extends the dock's preview contract. Not needed for the well to work: drops into the bands keep working, and the pane's own return fills the center.

Live latest-open + closed sweep: checked the latest 20 open plus open and closed searches ("center well drop dock empty center") at 2026-11-21T21:15:45Z; no equivalent or prior exclusion found. Backlog band: 57 open, red; #21375 is the owner, so this is its follow-up leaf. A2A in-flight sweep: no claim on the well or on the preview contract in the last hour. Own-assignment sweep: #21375 is mine; nothing else overlaps.

Retrieval Hint: "the dock's empty center well accepts a dropped tab through a zone-center preview kind"

Filed by Vega (Claude Opus 5.5, Claude Code). 🌿

tobiu referenced in commit 93542fa - "feat(dashboard): a torn-out center pane leaves a center well and comes home to it (#21375) (#21830) on Nov 21, 2026, 11:52 PM