Repository navigation
feat(app): group tabs by project or server in Consolidated (opencode#66350) - #1215
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)
When the page's own tab was among the closed, each closed tab handed the page to a neighbour in turn; with tabs the strip does not show still open (a pinned session's, a collapsed group's) the page ended on one of those. Official goes to the kept tab (packages/app/src/shell/tabs/tabs.tsx:671-680).
Hona
marked this pull request as ready for review
November 25, 2026 18:17
Hona
added a commit
that referenced
this pull request
Nov 25, 2026
Hona
added a commit
that referenced
this pull request
Nov 25, 2026
Hona
added a commit
that referenced
this pull request
Nov 25, 2026
Hona
added a commit
that referenced
this pull request
Nov 25, 2026
This was referenced Nov 25, 2026
Merged
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.
Port of official anomalyco/opencode#66350 (
204d38da8d): Settings › Group tabs (None / By project / By server) for Consolidated's open tabs. Official paths below are underpackages/app/src/.What it does
appearance.tabGrouping, default none, effective only under Consolidatedsettings/model.tsx:159-160,:538-543features/settings/src/{prefs,lib,stored}.rssettings/general/interface-mode.tsx:42-52,runtime/i18n/en.ts:924-927features/settings/src/pages/general.rs,navigation_mode.rs,search/mod.rsshell/titlebar/auto-tab-groups.ts:34-76apps/desktop/src/shell/tabs/auto_groups.rsbuildshell/titlebar/titlebar.tsx:680,auto-tab-sections.tsx:53auto_groups.rsgroupedauto-tab-groups.ts:82-88,auto-tab-sections.tsx:71-79auto_groups.rsgrouped_order,polltabs.autoGroups); only side tabs collapse; a collapsed group shows only the open page's tabauto-tab-sections.tsx:17,:34,:66-68;auto-tab-groups.ts:72auto_groups.rsrestore,toggle,groupsauto-tab-sections.tsx:83-181,:197-204;tab-strip.tsx:1060-1069apps/desktop/src/shell/view/sidebar/auto_sections.rs,pinned_area.rsside_tabsauto-tab-sections.tsx:194-195shell/view/titlebar.rstab-strip.tsx:943,:1205-1206shell/view/tab_strip.rson_reordertab-strip.tsx:715-719,:849-853,:917shell/tabs/actions.rsnav_ordertab-strip.tsx:948-954features/session-menu/src/{host,lib}.rsstrip_tabs,apps/desktop/src/session/menu.rstab-strip.tsx:869-895apps/desktop/src/session/meta/status.rs:381-395reads every open tab (by reading)shell/titlebar/tab-strip.tsx:715-719,:948-954). Case 9.sidebar-grouped,sidebar-grouped-collapsed,top-grouped.Cases to run (headless, on this PR's Windows x64 build; before = a build without the change)
Settings. Consolidated, navigation Tabs, Settings › Preferences. See: a row
settings-tab-groupingtitled "Group tabs" under "Tab position", showing "None"; its menu lists None, By project, By server. With navigation List the row is gone. Before: no such row.Side tabs by project. Scene
sidebar-grouped. See, top to bottom: the pinned session; a headerlumenover "Fix flaky reconnect in the event stream" (the open tab), "Add keyboard shortcuts to the command palette", "Profile scroll jank in long transcripts";harborover two tabs;tidepoolover one;quillover one; a dividerauto-group-divider; then "A session with no project". Sizes: each header 28 high; a header's top 11 under the tab above it; tabs 3 apart; the divider 1 high, 11 above and 11 below; tabs under a project header show no avatar, the last tab shows its own. Before (scenesidebar-consolidated): one flat list in the tabs' own order.Collapsed. Scene
sidebar-grouped-collapsed(or press the three headers in case 2). See:lumenkeeps only the open tab under it;harborshows no tab and a ring after its name (the fixture has one of its sessions working);tidepoolshows no tab and an amber dot (the fixture has a permission waiting in it);lumenshows an accent dot only if one of its hidden sessions is unread; the three chevrons point to the side when shown (pointer over a header, or Tab onto it);quillis open. Ctrl+1 opens the pinned session, Ctrl+3 opens "Fix footnote numbering in exported PDFs" (the hidden tabs take no number). Pressing a header again shows its tabs.Top tabs and the saved order. Scene
top-grouped. See the strip's tabs in this order: the threelumensessions, the twoharbor,tidepool,quill, then "A session with no project"; no header, nothing collapsed. Then set Group tabs to None: the order stays (the saved order was rewritten). Before (scenetop-consolidatedwithout the change): the tabs' own order,lumenandharbormixed.Close other tabs. Scene
sidebar-grouped-collapsed, right-click "Fix footnote numbering in exported PDFs", Close other tabs. See: the open tab underlumenand "A session with no project" close; the pinned session and the tabs hidden underlumen,harborandtidepoolstay (press the headers to see them); the page, which was the open tab underlumen, is now "Fix footnote numbering in exported PDFs", the tab the menu was on (officialshell/tabs/tabs.tsx:671-680). Before: every other tab closes.Drag. Scene
top-grouped: drag the secondlumentab one place to the right: it trades places with the third. Drag the firstlumentab onto aharbortab: it goes back. Scenesidebar-grouped: drag alumentab down one place: it trades places inside its group.By server. Group tabs › By server with one server: no header, the list as with None. With a second server added by address and a tab open on each: two headers with the server glyph and the servers' names. By project with the same project open on both servers: two headers for it; the one that is not the app's own server has the server's tag after the name (official
runtime/server/registry.tsx:345-348: no tag for the app's own server).Kept across a restart. Collapse a group, close the window with its close button, start again: the group is still collapsed.
Close other tabs leaves pinned sessions alone (no grouping). Scene
sidebar-consolidated. Press a pinned row whose session also has an open tab, so the page is a pinned session's. Right-click any tab of the strip under the pinned area, Close other tabs. See: the strip's other tabs close and the page stays on the pinned session. Before: the pinned session's tab closes too, so the page leaves it.What has run
Headless, on this PR's Windows x64 CI builds, scenes, no server. The before build is the Rune pin bump's own PR build (#1192, run
45629508899, headcc991c6505):devat the new pin;devhas since gained changes this PR's cases do not look at.The heads:
4f9e83703(the old pin);5ce06ccd8(the new pin taken in);e1663f565(the fix of case 5's page);1170f8b9f(devwith #1211 taken in, which shares four files with this change).5ce06ccd8(before that4f9e83703, read equal); the default, from a default profile:e1663f5651170f8b9f(the head that merges), read equal to5ce06ccd8's; before that4f9e837035ce06ccd8(before that4f9e83703, read equal); the header:e1663f5655ce06ccd81170f8b9f(the closing and the page), as one1663f565; the headers pressed after it:e1663f565lumenand the tab with no project close; every hidden tab and the pinned session stay; the page and the selected tab are the menu's tab. On5ce06ccd8the closing held and the page went to the pinned session: this change's own fault, corrected ine1663f565e1663f5655ce06ccd81170f8b9f, as one1663f565; beforecc991c6505e1663f565, top tabs, a default profile1170f8b9f, after the merge, with the test server and a second server1170f8b9f, after the merge, with the test serverNot run (by reading)
A project that loads after its tab joins its group where the tab was (
auto-tab-groups.ts:79-80; oursgrouped_orderleaves a tab with no project in place).A permission or question waiting in the open tab counts for its collapsed group's amber mark (
auto-tab-sections.tsx:107-129reads every tab's own state; oursauto_groups.rsmark).A finger's drag (which does not select the tab it lifts) reorders inside a group but draws no lift in a group's strip: the groups' strips share the window's one gesture and tell whose it is by the open tab (
tab_strip.rsstrip).A tab dragged in from another window while grouped: ours only (official keeps a drag inside its list:
tab-strip.tsx:1175); it lands by the pointer and then joins its group.A narrow window shows no groups, as official: its drawer is a strip given no sections, every tab in the saved order (
shell/titlebar/titlebar.tsx:840-855); ours' tab keys and Close other tabs there stay as they were before this change (auto_groups.rsgroups,session/menu.rsstrip_tabs).Open differences
tab-strip.tsx:1060-1068,tab-nav.css:260-261anomalyco/rune(a section boundary before a slot), a pin bump, then a few app linestab-strip.tsx:118-123,:943tab-strip.tsx:1040-1047auto-tab-sections.tsx:156restoreTab). Ours: Home's button, pressed again, stays on Home, as A is gone; B opens by a press on its tab. By readingshell/tabs/tabs.tsx:673,:684,:452-467apps/desktop/src/shell/tabs/actions.rstoggle_home) re-aimed at the kept tabauto-tab-sections.tsx:174anomalyco/rune, after the pin that has them