Skip to content

[0.1.0][area:ui] Tab projection residuals: switch ordering, background grid size, multi-tab persistence #3170

Closed

Description

@Xuepoo

Context

PR #3168 (issue #3166, merge 9548f2e1) landed the Core tab verbs with a deliberately single-leaf projection: TabSet::layout() emits one LayoutNode::Leaf for the active tab, Stack stays a paint-order container, and the active tab is the leaf the layout already holds — so session restore needs no new persisted field, and a multi-tab strip needs no layout change because none is stored.

Two independent reviews accepted that model but recorded residuals which are now unimplemented behavior, not defects:

  1. TabSet::switch reorders the strip. Switching moves the target tab to the end of the set (it is how the projection becomes the active leaf), which reads as a user-visible reorder while the issue listed reorder as out of scope. Either make the ordering an explicit, documented contract, or keep insertion order and track the active index separately.
  2. Background tabs keep their last grid size. A tab that is not the active leaf receives no resize, so returning to it uses stale geometry until the next resize. Needs a decision: resize background projections, or force a full redraw + resize on activation.
  3. Multi-tab persistence is unimplemented. The layout format carries one leaf; persisting n tabs requires a layout-format change and a migration story. This is the reason the "no new persisted field" decision holds today — if persistence is wanted, that decision has to be revisited explicitly.
  4. TabEffect / documentation drift was corrected in the fix round; keep the doc/types aligned as these items land.

What this issue asks for

  • A decision (in the PR body) for items 1 and 2, then code + tests matching it. Item 3 is a scope decision: either record "not persisted, deliberately" as the contract or spec the format change with its migration.
  • Tests that discriminate: strip order after switch, geometry after returning to a background tab, and an explicit assertion for the no-persistence contract.

Out of scope: hosting/painting a strip, invoking the verbs (see the host-wiring issue), plugin tab API.

Evidence

Related: #3166, #2478.

Activity

  1. added this to the v0.1.0 milestone on Nov 15, 2026
  2. added
    feat
    area:ui
    P2
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:uifeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions