Skip to content

feat(app): grouped tabs and the Customize sidebar in one strip with breaks (opencode#66350) - #1279

Merged
Hona merged 10 commits into
devfrom
upstream-g/group-tabs-breaks
Nov 26, 2026
Merged

Hona merged 10 commits into
devfrom
upstream-g/group-tabs-breaks

Conversation

@Hona

@Hona Hona commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Follows #1215 (Settings > Group tabs) now that the Rune pin has TabStrip::breaks (anomalyco/rune#2291): the grouped tabs, and the Customize sidebar's sections, are ONE tab strip with what stands between the tabs (a header, a divider, a section's other rows) as its breaks. Closes three of the differences #1215 left open against official anomalyco/opencode#66350. Verified on the Windows x64 CI build (run 45718637991, head 5c0188a71; before = 278f9aaf38): all 9 cases below held. Official paths are under packages/app/src/.

flowchart LR
  subgraph before["#1215: a strip per group"]
    H1["header"] --> S1["strip A"]
    H2["header"] --> S2["strip B"]
  end
  subgraph after["one strip with breaks"]
    S["strip: header A, tabs A, header B, tabs B"]
  end
  before --> after
Loading

What it changes

Behaviour Official Ours on dev Ours now
Top tabs: a 16 x 1 divider between two groups, and the tab after it has no hairline of its own shell/titlebar/tab-strip.tsx:1060-1068, tab-nav.css:260-261 no divider apps/desktop/src/shell/view/titlebar.rs: a break before each group's first tab but the first
A drag stays in its group: the other groups' tabs do not move aside tab-strip.tsx:1205-1206, :118-123 the drop in another group was refused after the tabs had moved aside (top), and each group's strip had to be told whose gesture it was (side) the strip stops a drag at a break; the stopgap (flush, own, same_group) is gone
Side tabs: the arrow keys go from a group's last tab to the next group's first tab-strip.tsx:1040-1047 (one tab list) they stopped at the group's last tab (a tab list per group) one tab list
Customize sidebar: a drag in one section lifts one tab shell/sidebar/sidebar-customized.tsx:481-496 (one strip with sections) a strip per section sharing the window's one drag: the tab at the same place in every other section lifted too apps/desktop/src/shell/view/sidebar/customized.rs sections: one strip, the section's header before its first tab and its other rows after its last
Customize sidebar: rows 3 apart tab-nav.css:179-181 no gap between a header and its tabs or between session rows, 16 under a section's tabs 3 between every row
  • 5 files, +144 -96. No manifest, lock, profile or plugin contract change. No setting changes: Group tabs stays None by default.
  • The keys the earlier cases use stay: a group's header auto-group-<key>, the divider auto-group-divider, the list consolidated-tabs. The side strip is now tabs (it was auto-tabs-<key> a group).

Still different from official

Difference Official Needs Size
Customize: an open tab's subagents stand after the section's tabs, not under their own tab sidebar-customized.tsx:522-532, tab-strip.tsx:968 (tabFooter) a row between two tabs would end the drag there: a tab footer in the kit's strip S in Rune
The server's tag gives way at the name's rate, not twice as fast shell/titlebar/auto-tab-sections.tsx:156 a shrink factor in Rune XS
The chevron shows and turns at once, not over 150 ms auto-tab-sections.tsx:174 the per-member curves, which this pin has: a few app lines, not in this change XS

Cases to run (headless, on this PR's Windows x64 build; before = a build of dev; scenes, no server)

  1. Side groups at rest. Scene sidebar-grouped. See what dev shows: the pinned session; a header over each project's tabs; the divider; the tab with no project. Sizes as before: a header 28 high, its top 11 under the tab above it, tabs 3 apart, the divider 1 high with 11 above and below.
  2. Collapsed. Scene sidebar-grouped-collapsed: as on dev: the open tab stays under its collapsed header, the other two show no tab and their ring or dot; a header pressed opens its group.
  3. Top divider. Scene top-grouped. See: between two groups a line 1 wide and 16 high (auto-group-divider), none before the first group. Before: no line.
  4. A drag inside a group (top). Scene top-grouped: drag the second tab of the first group one place right: it trades with the third. Then drag the first group's first tab onto a tab of the second group: while it is held over the second group that group's tabs do not move, and on release it clamps at the last place of its own group (matching official tab-strip.tsx:118-123, 1201-1208, where useSortable accepts same-section siblings up to the boundary and refuses the next section). Before: the second group's tabs stepped aside and the drop was refused.
  5. A drag inside a group (side). Scene sidebar-grouped: drag a tab of the first group down one place: it trades inside its group; the other groups do not move.
  6. Arrow keys across groups (side). Scene sidebar-grouped, the focus on the first group's last tab (t-ses_fx0005): Down leaves the first group and focuses the second group's header break (auto-group-project:sidecar ..., inside the single focus group; matching official's data-focus-scope list where headers sit between sections). Before: wrapped back to the first group's first tab (t-ses_fx0001).
  7. Close other tabs (the menu's action is unchanged; one sample). Scene sidebar-grouped-collapsed, the menu of "Fix footnote numbering in exported PDFs", Close other tabs: the open tab under the first group and the tab with no project close, the hidden tabs stay, the page is that tab.
  8. Customize: one drag. Scene sidebar-customized with two sections that each hold two or more open tabs: drag the first section's first tab down one place. See: that one tab moves; the tab at the same place in the other section stays. Before: both lift.
  9. Customize at rest. Scene sidebar-customized: the same rows in the same order as on dev; between every two rows 3 (before: 0 between a header and its tabs and between session rows, 16 under a section's tabs).

Verification results (Windows x64 CI build, run 45718637991, head 5c0188a71)

  • CI: guardrails, build-macos, build-windows (x64), build-windows (arm64), and build-linux (x64) passed (Linux arm64 skipped).
  • Cases 1-9: all 9 held against 278f9aaf38 (1: pixel-identical side groups at rest; 2: collapsed indicators and header expand; 3: four 1 x 16 auto-group-divider lines with zero hairlines after dividers vs 0 dividers / 6 hairlines before; 4: top drag trades inside group, holds harbor tabs still while hovering past divider, and clamps at end of lumen on release; 5: side drag trades inside group; 6: Down from lumen's last tab leaves lumen onto harbor's header break vs wrapping inside lumen before; 7: Close other tabs preserves collapsed hidden tabs; 8: Customize drag lifts only the dragged tab while other sections stay put vs multi-section lift before; 9: Customize row gaps uniform [3,3,...] across all 20 pairs vs [0,3,3,3,16,...] before).

Not run (by reading)

  • A Customize sidebar with no open tab at all: the headers and rows alone (cz-rows).
  • A narrow window (no groups there, unchanged).

Hona added 10 commits November 25, 2026 21:53
…66350)

Settings > Group tabs (None / By project / By server), effective under Consolidated: side tabs get a collapsible header per group, top tabs stand in group order, the saved tab order keeps each group's tabs together, pinned tabs stay out of every group, and the tab keys and Close other tabs follow what the strip shows.
…, a drag that stays in its group, arrows across groups (needs TabStrip::breaks in the Rune pin)
…breaks

dev now holds #1215 as one commit, #1258's fix and the Rune pin with TabStrip::breaks (rune#2291). The four files this branch rewrote keep this branch's side, with #1258's one line in auto_groups.rs project_of.
@Hona
Hona marked this pull request as ready for review November 26, 2026 02:45
@Hona
Hona merged commit 98f31f4 into dev Nov 26, 2026
7 checks passed
@Hona
Hona deleted the upstream-g/group-tabs-breaks branch November 26, 2026 02:45
Hona added a commit that referenced this pull request Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant