Skip to content

feat(tabs): experimental side tab groups with 4-intent drag, dwell combine, filter, and tear-out - #259

Merged
Hona merged 4 commits into
devfrom
ws2/side-tab-groups
Nov 20, 2026
Merged

Hona merged 4 commits into
devfrom
ws2/side-tab-groups

Conversation

@Hona

@Hona Hona commented Nov 20, 2026

Copy link
Copy Markdown
Member

Summary

Ports experimental side tab groups (anomalyco/opencode#64407, UP-062) on dev behind Settings > Experimental > Tab groups (general.tabGroups, enabled by default in local/dev desktop builds):

  • Pure Layer-2 feature crate (features/tab-groups, #![forbid(unsafe_code)]):
    • model.rs: tabs.groups window persistence in Desktop's exact JSON schema (mode: none|server|project, groupOrder, collapsed, overrides, manualGroups, manualAssignments), stable hashed Fluent color assignment, inline filter matching, draft-promotion reconciliation, empty manual group pruning, and canonical contiguous tab ordering.
    • drag.rs: full 4-intent vertical drag state machine (MoveGroup, PlaceTab, JoinGroup, and CombineTabs with a 220 ms clock-driven dwell timer) plus slide-out shifts (tab_shift_y, group_shift_y, header_shift_y, lane_shift) — wasm32-safe with zero std::time::Instant.
    • lib.rs: per-window TabGroupsState (opencode_kernel::StateSlots, zero struct App fields added) and explicit Rename state machine with a dedicated scratch fallback (never mutating the filter input).
  • Desktop host & grouped side tabs view (apps/desktop/src/shell/tabs/groups.rs, shell/view/sidebar/tab_groups.rs):
    • Renders inline Filter tabs field (with clear button and Escape clear/blur) and Group tabs menu (None / Server / Project, plus New group in manual mode) above side tabs in One list.
    • Renders collapsible colored group headers with Fluent OKLCH chips, collapsed counts (included in accessible button names), inline header rename, right-click & ... group options menu (Rename, Group color, Ungroup, Close group), RTL-safe logical rails (pin(Some(8.0), ...)), and unique per-group accessible tablist / group labels.
    • Draws grouped tab rows directly inside one unified scroll container (eliminating nested 0-height first-frame collapse and shared-TabDragState cross-group bleed), preserves strip_laid_out + horizontal 48 pt tear-out handoff (workspace/windows/tear.rs), updates nav_order() to match visual grouped order for Mod+1..9 and #63089 Mod-held shortcut numbers, canonicalizes s.tabs immediately in assign()/create()/set_mode(None), and guards poll() so disabled tab groups have zero frame overhead and never reorder tabs or prune state.
    • Adds Add to group / New group / Remove from group to tab context menus in manual mode (session/menu.rs).
  • Settings (features/settings):
    • Adds Settings > Experimental > Tab groups switch (general.tabGroups in settings.v3) and Settings search index entry.

Captures

Settings > Experimental (Tab groups) & side tabs grouped by Project (dark 1x & light 1.5x):
Settings Experimental Tab groups
Tab groups by Project dark 1x
Tab groups by Project light 1.5x

Mod-held 1..9 shortcut numbers in grouped order, manual colored groups, and collapsed group with count:
Tab groups Mod-held shortcut numbers
Manual tab groups
Collapsed manual tab group

Verification

  • pwsh scripts/guardrails.ps1: 5/5 passed (arch-check 29 features, 94/94 App fields, file-size, folder-shape, dialog-size, tables-check).
  • tools/cargo.ps1 check --workspace, tools/cargo.ps1 build -p opencode-desktop, and scripts/web.ps1 -Check: all green, zero warnings.
  • Driven UI + 2-window saved-state persistence & downgrade proof (proof/ws2/pr3-proof.ts — all 4 suites passed):
    • Settings Experimental toggle present and searchable via Settings search.
    • Project grouping renders 4 unique accessible tablist labels (lumen, harbor, tidepool, quill) with non-zero frame-1 heights and 8/8 visible Mod-held 1..9 hints.
    • Manual grouping collapses Frontend (8 -> 6 tabs, count badge 2), and inline filter temporarily expands collapsed groups to show matches (1 match for "flaky").
    • Live 2-window persistence & downgrade (old dev 021663f1 -> PR 3 -> PR 3 reopen -> old dev 021663f1): pragma integrity_check == ok at every step; w1 persists tabs.groups independently while w2 remains ungrouped; manual group survives restart; older build reopens the profile with exit code 0 and zero lost tabs (w1 3 tabs, w2 2 tabs), pins, mutes, or order.

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

@Hona
Hona merged commit 3869c29 into dev Nov 20, 2026
7 checks passed
@Hona
Hona deleted the ws2/side-tab-groups branch November 20, 2026 09:55
Hona added a commit that referenced this pull request Nov 20, 2026
…..UP-117 (#284)

- Fold verified fleet PRs #259, #267, #268, #269, #270, #271, #272, #273,
  #275, #276, #277, #279, and #282 (Rune e6deb869: #1297, #1298, #1299, #1300)
  into docs/upstream-sync/ledger.{json,md}
- Split UP-095 (#63002) transparently across active browser streams (WS-1,
  BROWSER-UI, PREVIEWS, BROWSER-TOOLS, WS-9), reassign UP-100 to BROWSER-UI
  and PRE-08 to BROWSER-TOOLS
- Track open tab-groups packaged-default regression on UP-062 (fix PR #278
  open) and record closure of Settings > Shortcuts hidden-command regression
  on UP-064 (#279)
- Audit upstream anomalyco/opencode 92d35f8e18..bfee96a859 (+11 commits:
  7 skipped, 4 added: UP-114..UP-117) and update radar routing
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