Add group-scoped workspace cycle actions

Merged
AU
4mo ago
+515-32

Closes https://github.com/manaflow-ai/cmux/issues/9137.

Summary

  • Adds independently bindable nextSidebarTabInGroup and prevSidebarTabInGroup actions.
  • Keeps existing Next/Previous Workspace actions window-wide.
  • Resolves cycle destinations in the CmuxWorkspaces state model and runs every cycle through one TabManager selection path.
  • Exposes both actions in Keyboard Shortcut Settings, cmux.json schema, and English/Japanese documentation.

Behavior

  • Group-scoped cycling wraps through non-anchor members in sidebar order.
  • Starting from the group anchor enters at the first/last member based on direction.
  • An ungrouped focused workspace falls back to window-wide cycling.
  • A group with no non-anchor member is a no-op.

Coverage

  • App-level configured-shortcut routing regression coverage.
  • Pure CmuxWorkspaces destination-policy coverage for both directions, anchor skipping, wraparound, ungrouped fallback, empty groups, and unchanged flat cycling.
  • English and Japanese localization entries and shortcut documentation.

[!NOTE]
Low Risk
Navigation and shortcut wiring only; existing window-wide shortcuts keep default behavior via .window scope.

Overview
Adds Next/Previous Workspace in Group shortcut actions (unbound by default) alongside the existing window-wide workspace cycling. TabManager now routes all next/prev workspace selection through a shared cycleWorkspace path that asks WorkspacesModel for a destination via new cycleDestination APIs with WorkspaceCycleScope (window vs focusedGroupMembers).

Group-scoped cycling wraps through non-anchor members in sidebar order, enters from the anchor at the first/last member, falls back to window-wide order when focus is ungrouped, and no-ops when a group has no members. Settings, dock routing, schema, web shortcut data, and EN/JA strings document the new actions; tests cover model policy and app-level shortcut routing. RestoredPanelTitleBoundaryTests is refactored for clearer intermediate expectations (no behavior change).

Reviewed by Cursor Bugbot for commit d97ba240c8cc41558624ff53d67fd970394bf303. Bugbot is set up for automated code reviews on this repo. Configure here.