Repository navigation
feat(app): grouped tabs and the Customize sidebar in one strip with breaks (opencode#66350) - #1279
Merged
Merged
Conversation
…arch entry, strings
…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.
…ctions.tsx:39-49)
…ery tab (titlebar.tsx:840-855)
…, a drag that stays in its group, arrows across groups (needs TabStrip::breaks in the Rune pin)
… one drag state, rows 3 apart
Hona
marked this pull request as ready for review
November 26, 2026 02:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (run45718637991, head5c0188a71; before =278f9aaf38): all 9 cases below held. Official paths are underpackages/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 --> afterWhat it changes
devshell/titlebar/tab-strip.tsx:1060-1068,tab-nav.css:260-261apps/desktop/src/shell/view/titlebar.rs: a break before each group's first tab but the firsttab-strip.tsx:1205-1206,:118-123flush,own,same_group) is gonetab-strip.tsx:1040-1047(one tab list)shell/sidebar/sidebar-customized.tsx:481-496(one strip with sections)apps/desktop/src/shell/view/sidebar/customized.rssections: one strip, the section's header before its first tab and its other rows after its lasttab-nav.css:179-181auto-group-<key>, the dividerauto-group-divider, the listconsolidated-tabs. The side strip is nowtabs(it wasauto-tabs-<key>a group).Still different from official
sidebar-customized.tsx:522-532,tab-strip.tsx:968(tabFooter)shell/titlebar/auto-tab-sections.tsx:156auto-tab-sections.tsx:174Cases to run (headless, on this PR's Windows x64 build; before = a build of
dev; scenes, no server)sidebar-grouped. See whatdevshows: 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.sidebar-grouped-collapsed: as ondev: 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.top-grouped. See: between two groups a line 1 wide and 16 high (auto-group-divider), none before the first group. Before: no line.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 officialtab-strip.tsx:118-123, 1201-1208, whereuseSortableaccepts 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.sidebar-grouped: drag a tab of the first group down one place: it trades inside its group; the other groups do not move.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'sdata-focus-scopelist where headers sit between sections). Before: wrapped back to the first group's first tab (t-ses_fx0001).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.sidebar-customizedwith 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.sidebar-customized: the same rows in the same order as ondev; 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, head5c0188a71)guardrails,build-macos,build-windows (x64),build-windows (arm64), andbuild-linux (x64)passed (Linux arm64 skipped).278f9aaf38(1: pixel-identical side groups at rest; 2: collapsed indicators and header expand; 3: four1 x 16auto-group-dividerlines with zero hairlines after dividers vs 0 dividers / 6 hairlines before; 4: top drag trades inside group, holdsharbortabs still while hovering past divider, and clamps at end oflumenon release; 5: side drag trades inside group; 6:Downfromlumen's last tab leaveslumenontoharbor's header break vs wrapping insidelumenbefore; 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)
cz-rows).