Repository navigation
Closed
Description
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:
TabSet::switchreorders 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.- 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.
- Multi-tab persistence is unimplemented. The layout format carries one leaf; persisting
ntabs 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. 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
crates/bitty-ui/src/tabs.rs—TabSet,TabEffect,layout(),TabCommitcrates/bitty-ui/src/layout.rs—LayoutNode::Stackdoc comments (paint-order only, no tab semantics)- Review round 1: PR [CTX-1833] feat(ui): define tab interaction verbs and stop treating Stack as tabs (#3166) #3168 review 5908468455 (non-blocking observations N1-N3 and check 11)
- Review round 2: PR [CTX-1833] feat(ui): define tab interaction verbs and stop treating Stack as tabs (#3166) #3168 review 5908581618 (check 10, residual mapping)
Activity