Skip to content

The agent that grows with you

fix(desktop): ⌘1…⌘9 switch the tab under the pointer again, and profiles when there is none

Brooklyn Nicholson511a6b1c16ab
diff --git a/apps/desktop/src/app/hooks/use-keybinds-tab-slot.test.ts b/apps/desktop/src/app/hooks/use-keybinds-tab-slot.test.ts
new file mode 100644
index 00000000000..c3eb2628ab5
--- /dev/null
+++ b/apps/desktop/src/app/hooks/use-keybinds-tab-slot.test.ts
@@ -0,0 +1,122 @@
+import { renderHook } from '@testing-library/react'
+import { createElement, type ReactNode } from 'react'
+import { MemoryRouter } from 'react-router'
+import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest'
+
+vi.mock('@/themes/context', () => ({
+ useTheme: () => ({ resolvedMode: 'dark' as const, setMode: () => undefined })
+}))
+
+const switchProfileToSlot = vi.hoisted(() => vi.fn())
+
+vi.mock('@/store/profile', async importOriginal => ({
+ ...(await importOriginal<object>()),
+ switchProfileToSlot
+}))
+
+import { useKeybinds } from '@/app/hooks/use-keybinds'
+import { findGroup, group, split } from '@/components/pane-shell/tree/model'
+import { $activeTreeGroup, $hoveredTreeGroup, $layoutTree } from '@/components/pane-shell/tree/store'
+import { registry } from '@/contrib/registry'
+import { isMacPlatform } from '@/lib/platform'
+
+// ⌘1…⌘9 is one chord with two meanings: the Nth tab of the zone under the
+// pointer (else the focused zone, else the workspace's) when that zone is a
+// real tab strip, and the Nth profile otherwise. `view.tabSlot.N` runs first
+// and passes through to `profile.switch.N` when no rung is eligible — the
+// pre-#92569 behavior, expressed as two rebindable actions instead of one
+// handler that hardcoded the tab dispatch.
+
+const wrapper = ({ children }: { children: ReactNode }) => createElement(MemoryRouter, null, children)
+
+let unmountKeybinds: (() => void) | undefined
+
+function press(digit: number) {
+ window.dispatchEvent(
+ new KeyboardEvent('keydown', {
+ bubbles: true,
+ cancelable: true,
+ code: `Digit${digit}`,
+ ctrlKey: !isMacPlatform(),
+ key: String(digit),
+ metaKey: isMacPlatform()
+ })
+ )
+}
+
+function activePane(groupId: string) {
+ const tree = $layoutTree.get()
+
+ return tree ? findGroup(tree, groupId)?.active : undefined
+}
+
+beforeAll(() => {
+ for (const id of ['workspace', 'a', 'b']) {
+ registry.register({ area: 'panes', data: { placement: 'main' }, id, render: () => null, title: id })
+ }
+})
+
+beforeEach(() => {
+ switchProfileToSlot.mockClear()
+ unmountKeybinds = renderHook(
+ () =>
+ useKeybinds({
+ archiveSelectedSession: () => undefined,
+ openNewSessionTab: () => undefined,
+ startFreshSession: () => undefined,
+ toggleCommandCenter: () => undefined,
+ toggleSelectedPin: () => undefined
+ }),
+ { wrapper }
+ ).unmount
+})
+
+afterEach(() => {
+ unmountKeybinds?.()
+ $layoutTree.set(null)
+ $activeTreeGroup.set(null)
+ $hoveredTreeGroup.set(null)
+})
+
+describe('⌘N over a tab strip is a tab switch, elsewhere a profile switch', () => {
+ it('activates the Nth tab of the hovered zone and leaves the profile alone', () => {
+ $layoutTree.set(
+ split('row', [
+ group(['workspace', 'a'], { active: 'workspace', id: 'left' }),
+ group(['b'], { active: 'b', id: 'right' })
+ ])
+ )
+ $activeTreeGroup.set('right')
+ $hoveredTreeGroup.set('left')
+
+ press(2)
+
+ expect(activePane('left')).toBe('a')
+ expect(switchProfileToSlot).not.toHaveBeenCalled()
+ })
+
+ it('falls through to the profile switch when no zone is a tab strip', () => {
+ $layoutTree.set(
+ split('row', [
+ group(['workspace'], { active: 'workspace', id: 'left' }),
+ group(['b'], { active: 'b', id: 'right' })
+ ])
+ )
+ $activeTreeGroup.set('right')
+ $hoveredTreeGroup.set('right')
+
+ press(2)
+
+ expect(switchProfileToSlot).toHaveBeenCalledWith(2)
+ })
+
+ it('falls through when the strip has no Nth tab', () => {
+ $layoutTree.set(split('row', [group(['workspace', 'a'], { active: 'workspace', id: 'left' })]))
+ $hoveredTreeGroup.set('left')
+
+ press(3)
+
+ expect(activePane('left')).toBe('workspace')
+ expect(switchProfileToSlot).toHaveBeenCalledWith(3)
+ })
+})
diff --git a/apps/desktop/src/app/hooks/use-keybinds.ts b/apps/desktop/src/app/hooks/use-keybinds.ts
index 98b8e099395..07929a53645 100644
--- a/apps/desktop/src/app/hooks/use-keybinds.ts
+++ b/apps/desktop/src/app/hooks/use-keybinds.ts
@@ -19,6 +19,7 @@ import { onReleaseTypingFocus } from '@/components/ui/keyboard-first'
import { findBarClaimsCombo } from '@/lib/find-in-page'
import {
contributedKeybindHandler,
+ keybindAction,
PROFILE_SLOT_COUNT,
SESSION_SLOT_COUNT,
TAB_SLOT_COUNT
@@ -111,7 +112,9 @@ export interface KeybindRuntimeDeps {
archiveSelectedSession: () => void
}
-type HandlerMap = Record<string, () => void>
+/** A handler returns `false` to decline the chord (see `passthrough`); any other
+ * return value (void, a navigate() promise, …) means it ran. */
+type HandlerMap = Record<string, () => unknown>
// Mount once near the top of the app. Owns the single global keydown listener
// for every rebindable hotkey: it runs the matched action, or — while capture
@@ -142,11 +145,9 @@ export function useKeybinds(deps: KeybindRuntimeDeps): void {
}
for (let slot = 1; slot <= PROFILE_SLOT_COUNT; slot += 1) {
- // Unconditional (#92569): ⌘1…⌘9 are PROFILE switchers, period. The old
- // tab-first dispatch (activateTreeTabSlot before switchProfileToSlot)
- // lived inside this handler, so session tabs silently ate the chord and
- // rebinding could not change the semantics. Positional tab switching
- // moved to the unbound view.tabSlot.N actions below.
+ // Unconditional: the ⌘1…⌘9 tab dispatch is view.tabSlot.N, which sits
+ // ahead of this action on the same chord and passes through when no tab
+ // strip is eligible (#92569).
profileSwitchHandlers[`profile.switch.${slot}`] = () => {
switchProfileToSlot(slot)
}
@@ -168,18 +169,20 @@ export function useKeybinds(deps: KeybindRuntimeDeps): void {
}
}
- // view.tabSlot.N: activate the Nth visible tab in the focused zone's tab
- // strip. Ships unbound (#92569) — users who want positional tab switching
- // can assign chords in Settings → Keyboard Shortcuts.
+ // view.tabSlot.N: activate the Nth visible tab of the hovered / focused /
+ // workspace zone (`activateTreeTabSlot`'s ladder). Declines when no rung is
+ // a real tab strip, so the chord falls through to profile.switch.N.
const tabSlotHandlers: HandlerMap = {}
for (let slot = 1; slot <= TAB_SLOT_COUNT; slot += 1) {
tabSlotHandlers[`view.tabSlot.${slot}`] = () => {
const pane = activateTreeTabSlot(slot)
- if (pane) {
- leavePageForWorkspaceChat(pane)
+ if (!pane) {
+ return false
}
+
+ leavePageForWorkspaceChat(pane)
}
}
@@ -455,10 +458,10 @@ export function useKeybinds(deps: KeybindRuntimeDeps): void {
return
}
- const actionId = $comboIndex.get().get(combo)
+ const actionIds = $comboIndex.get().get(combo)
// Unbound printable → type-to-focus. Bound chords (shift+n, …) win above.
- if (!actionId) {
+ if (!actionIds) {
const typeChar = typeToFocusChar(event)
if (typeChar && composerFocusKeysAllowed(event, 'type')) {
@@ -469,33 +472,42 @@ export function useKeybinds(deps: KeybindRuntimeDeps): void {
return
}
- if (isEditableTarget(event.target) && !actionAllowedInInput(actionId, combo)) {
- return
- }
+ // Actions bound to the chord, in registration order. The first runs; a
+ // `passthrough` action that declines hands the chord to the next.
+ for (const actionId of actionIds) {
+ if (isEditableTarget(event.target) && !actionAllowedInInput(actionId, combo)) {
+ return
+ }
+
+ // Soft `/` / Enter: gated so dialogs/buttons/terminal keep those keys.
+ // Rebound chords fall through to the normal handler.
+ if (actionId === 'composer.focus' && isComposerFocusSoftCombo(combo)) {
+ if (!composerFocusKeysAllowed(event, combo)) {
+ return
+ }
+
+ event.preventDefault()
+ requestComposerFocus('active', { typeChar: combo === '/' ? '/' : undefined })
- // Soft `/` / Enter: gated so dialogs/buttons/terminal keep those keys.
- // Rebound chords fall through to the normal handler.
- if (actionId === 'composer.focus' && isComposerFocusSoftCombo(combo)) {
- if (!composerFocusKeysAllowed(event, combo)) {
return
}
- event.preventDefault()
- requestComposerFocus('active', { typeChar: combo === '/' ? '/' : undefined })
+ // Built-in handlers first (they carry React context); contributed
+ // actions bring their own `run` through the registry.
+ const handler = handlersRef.current[actionId] ?? contributedKeybindHandler(actionId)
- return
- }
+ if (!handler) {
+ return
+ }
- // Built-in handlers first (they carry React context); contributed
- // actions bring their own `run` through the registry.
- const handler = handlersRef.current[actionId] ?? contributedKeybindHandler(actionId)
+ event.preventDefault()
+
+ if (handler() === false && keybindAction(actionId)?.passthrough) {
+ continue
+ }
- if (!handler) {
return
}
-
- event.preventDefault()
- handler()
}
// Mac-app-switcher commit: lifting Ctrl with the overlay open lands on the
diff --git a/apps/desktop/src/components/pane-shell/tree/tab-key-hints.test.tsx b/apps/desktop/src/components/pane-shell/tree/tab-key-hints.test.tsx
index 26f070290f7..403fb193fda 100644
--- a/apps/desktop/src/components/pane-shell/tree/tab-key-hints.test.tsx
+++ b/apps/desktop/src/components/pane-shell/tree/tab-key-hints.test.tsx
@@ -76,7 +76,7 @@ it('reveals only the shortcut target after a hold and clears on release, blur or
expect(container.querySelector('[data-tab-key-hint]')?.nextElementSibling?.textContent).toBe('left dot')
const originalBindings = $bindings.get()
- act(() => $bindings.set({ ...originalBindings, 'profile.switch.1': [] }))
+ act(() => $bindings.set({ ...originalBindings, 'view.tabSlot.1': [] }))
expect(container.querySelector('[data-tab-key-hint]')).toBeNull()
act(() => $bindings.set(originalBindings))
diff --git a/apps/desktop/src/components/pane-shell/tree/tab-key-hints.tsx b/apps/desktop/src/components/pane-shell/tree/tab-key-hints.tsx
index e8acc85b61b..6d89715707c 100644
--- a/apps/desktop/src/components/pane-shell/tree/tab-key-hints.tsx
+++ b/apps/desktop/src/components/pane-shell/tree/tab-key-hints.tsx
@@ -27,7 +27,7 @@ function HeldTabKeyHint({ groupId, slot }: { groupId: string; slot: number }) {
useStore($registryVersion)
const bindings = useStore($comboIndex)
- if (slot > 9 || bindings.get(`mod+${slot}`) !== `profile.switch.${slot}` || treeTabSlotTarget()?.id !== groupId) {
+ if (slot > 9 || bindings.get(`mod+${slot}`)?.[0] !== `view.tabSlot.${slot}` || treeTabSlotTarget()?.id !== groupId) {
return null
}
diff --git a/apps/desktop/src/components/pane-shell/tree/tab-slot-shown.test.ts b/apps/desktop/src/components/pane-shell/tree/tab-slot-shown.test.ts
index 087e487b863..5b2f57ce293 100644
--- a/apps/desktop/src/components/pane-shell/tree/tab-slot-shown.test.ts
+++ b/apps/desktop/src/components/pane-shell/tree/tab-slot-shown.test.ts
@@ -4,9 +4,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
// pane (Focus layout's `files`) stays in `group.panes` but isn't a chip —
// indexing the raw array made ⌘2 land on the strip's first session tab.
//
-// NOTE: `activateTreeTabSlot` backs the `view.tabSlot.N` actions (shipped
-// unbound), NOT `profile.switch.N` — ⌘1…⌘9 switch profiles unconditionally
-// (#92569).
+// `activateTreeTabSlot` backs the `view.tabSlot.N` actions, which share
+// ⌘1…⌘9 with `profile.switch.N` and pass through to it when no tab strip is
+// eligible (#92569).
describe('activateTreeTabSlot indexes shown panes only', () => {
beforeEach(() => {
diff --git a/apps/desktop/src/lib/keybinds/actions.test.ts b/apps/desktop/src/lib/keybinds/actions.test.ts
index 9b595672305..ef0769602c9 100644
--- a/apps/desktop/src/lib/keybinds/actions.test.ts
+++ b/apps/desktop/src/lib/keybinds/actions.test.ts
@@ -87,24 +87,22 @@ describe('KEYBIND_ACTIONS', () => {
})
})
-describe('profile.switch.N vs view.tabSlot.N (#92569)', () => {
- it('profile switchers claim ⌘1…⌘9; tab-slot actions ship unbound', () => {
- // The bug: the profile handler dispatched tab-first, so open session
- // tabs silently ate ⌘1…⌘9 and rebinding the chord could not change the
- // semantics. The contract now: profile.switch.N owns the mod+N defaults
- // unconditionally, and positional tab switching is its own action with
- // no default chord.
+describe('view.tabSlot.N layers over profile.switch.N on ⌘1…⌘9 (#92569)', () => {
+ it('both actions ship on mod+N; the tab slot passes through, the profile switch does not', () => {
+ // Over a tab strip the chord is "tab N"; with no eligible strip the tab
+ // action declines and the same chord is "profile N". Two actions, one
+ // chord: rebinding either changes only that one.
for (let slot = 1; slot <= 9; slot += 1) {
- expect(defaultBindings()[`profile.switch.${slot}`]).toContain(`mod+${slot}`)
- expect(keybindAction(`view.tabSlot.${slot}`)).toMatchObject({ category: 'view', defaults: [] })
- expect(defaultBindings()[`view.tabSlot.${slot}`]).toEqual([])
+ expect(defaultBindings()[`view.tabSlot.${slot}`]).toEqual([`mod+${slot}`])
+ expect(defaultBindings()[`profile.switch.${slot}`]).toEqual([`mod+${slot}`])
+ expect(keybindAction(`view.tabSlot.${slot}`)).toMatchObject({ category: 'view', passthrough: true })
+ expect(keybindAction(`profile.switch.${slot}`)?.passthrough).toBeUndefined()
}
})
- it('tab-slot actions precede profile switchers so a rebind wins the combo race', () => {
- // defaultBindings builds its combo index in KEYBIND_ACTIONS order; a
- // user binding mod+2 to view.tabSlot.2 must win over profile.switch.2's
- // default claim of the same combo — first action to claim it wins.
+ it('tab-slot actions precede profile switchers so the chord reaches the tab first', () => {
+ // The combo index is built in KEYBIND_ACTIONS order; the passthrough
+ // action must sit ahead of the one it hands off to.
const ids = KEYBIND_ACTIONS.map(action => action.id)
const firstTabSlot = ids.indexOf('view.tabSlot.1')
const firstProfileSwitch = ids.indexOf('profile.switch.1')
diff --git a/apps/desktop/src/lib/keybinds/actions.ts b/apps/desktop/src/lib/keybinds/actions.ts
index b5608b7c88b..3e08ae91ba0 100644
--- a/apps/desktop/src/lib/keybinds/actions.ts
+++ b/apps/desktop/src/lib/keybinds/actions.ts
@@ -27,6 +27,12 @@ export interface KeybindActionMeta {
defaults: readonly string[]
/** Display label for CONTRIBUTED actions (built-ins use i18n). */
label?: string
+ /**
+ * The handler may decline (return `false`) when its context does not
+ * apply, handing the chord to the next action bound to it. Sharing a combo
+ * with a later action is then layering, not a conflict.
+ */
+ passthrough?: true
}
// Positional switch slots for *named* profiles: ⌘1…⌘9 for profiles 1-9, then
@@ -44,15 +50,19 @@ const PROFILE_SWITCH_ACTIONS: KeybindActionMeta[] = Array.from({ length: PROFILE
defaults: [comboForSlot(i + 1)]
}))
-// Positional tab-slot jumps — activate the Nth visible tab in the focused
-// zone's tab strip. No default chords: ⌘1…⌘9 belong to profile switching
-// (#92569), and users who want positional tabs can bind chords in the panel.
+// Positional tab-slot jumps — activate the Nth visible tab of the zone under
+// the pointer (else the focused zone, else the workspace's). They share
+// ⌘1…⌘9 with the profile switchers and pass through when no eligible tab
+// strip exists, so the same chord is "tab N" over a strip and "profile N"
+// anywhere else (#92569: the two are separate actions, so rebinding either
+// changes only that one).
export const TAB_SLOT_COUNT = 9
const TAB_SLOT_ACTIONS: KeybindActionMeta[] = Array.from({ length: TAB_SLOT_COUNT }, (_, i) => ({
id: `view.tabSlot.${i + 1}`,
category: 'view' as const,
- defaults: []
+ defaults: [comboForSlot(i + 1)],
+ passthrough: true
}))
// Positional jumps — ^1…^9, mirroring profiles' ⌘1…⌘9.
@@ -82,8 +92,8 @@ export const KEYBIND_ACTIONS: readonly KeybindActionMeta[] = [
{ id: 'composer.dictate', category: 'composer', defaults: [] },
// ── Profiles ─────────────────────────────────────────────────────────────
- // Tab-slot actions BEFORE profile switchers so a user rebinding a chord to
- // a tab slot wins the combo-index race (first action to claim a combo wins).
+ // Tab-slot actions BEFORE profile switchers: they claim ⌘1…⌘9 first and
+ // pass through to the profile switch when no tab strip is eligible.
...TAB_SLOT_ACTIONS,
{ id: 'profile.default', category: 'profiles', defaults: ['mod+d'] },
...PROFILE_SWITCH_ACTIONS,
diff --git a/apps/desktop/src/store/keybinds.test.ts b/apps/desktop/src/store/keybinds.test.ts
index 90a2a17218c..6e053d8d22e 100644
--- a/apps/desktop/src/store/keybinds.test.ts
+++ b/apps/desktop/src/store/keybinds.test.ts
@@ -75,6 +75,30 @@ describe('keybinds store persist vs late-registered contributed actions', () =>
expect(reloaded.$comboIndex.get().get('mod+b')).toBeUndefined()
})
+ it('indexes every action on a shared chord in order, tab slot ahead of profile switch', async () => {
+ const { $comboIndex, conflictsFor, setBinding } = await import('./keybinds')
+
+ const chord = (combo: string) => $comboIndex.get().get(combo) ?? []
+
+ // Off macOS `ctrl+2` (session.slot.2) folds onto the same canonical chord;
+ // the contract is the tab slot leads and the profile switch follows it.
+ expect(chord('mod+2').slice(0, 2)).toEqual(['view.tabSlot.2', 'profile.switch.2'])
+
+ // The layered pair is by design — neither side reports the other.
+ expect(conflictsFor('view.tabSlot.2', 'mod+2')).not.toContain('profile.switch.2')
+ expect(conflictsFor('profile.switch.2', 'mod+2')).not.toContain('view.tabSlot.2')
+
+ // Rebinding either one changes only that one.
+ setBinding('view.tabSlot.2', ['mod+alt+2'])
+ expect(chord('mod+2')[0]).toBe('profile.switch.2')
+ expect(chord('mod+alt+2').slice(0, 2)).toEqual(['view.tabSlot.2', 'profile.switch.11'])
+
+ // A non-passthrough action landing on someone else's chord still conflicts.
+ setBinding('session.new', ['mod+2'])
+ expect(conflictsFor('session.new', 'mod+2')).toContain('profile.switch.2')
+ expect(conflictsFor('profile.switch.2', 'mod+2')).toContain('session.new')
+ })
+
it('treats Backspace and Delete during capture as a cleared binding', async () => {
const keybinds = await import('./keybinds')
diff --git a/apps/desktop/src/store/keybinds.ts b/apps/desktop/src/store/keybinds.ts
index 0c2b3f52c50..597a6c80942 100644
--- a/apps/desktop/src/store/keybinds.ts
+++ b/apps/desktop/src/store/keybinds.ts
@@ -91,19 +91,23 @@ export function bindingsFor(id: string, bindings: KeybindBindings = $bindings.ge
return bindings[id] ?? storedOverrides[id] ?? [...(keybindAction(id)?.defaults ?? [])]
}
-// Reverse lookup combo → actionId for dispatch. First action wins on conflict;
-// the panel/edit overlay surface conflicts so users can resolve them. Keys go
-// through `canonicalizeCombo` so a `ctrl+…` binding resolves everywhere.
-// Recomputes on registry mutations so contributed actions dispatch live.
+// Reverse lookup combo → action ids for dispatch, in KEYBIND_ACTIONS order.
+// The first action runs; a `passthrough` action that declines hands the chord
+// to the next one. Keys go through `canonicalizeCombo` so a `ctrl+…` binding
+// resolves everywhere. Recomputes on registry mutations so contributed
+// actions dispatch live.
export const $comboIndex = computed([$bindings, $registryVersion], bindings => {
- const index = new Map<string, string>()
+ const index = new Map<string, string[]>()
for (const action of allKeybindActions()) {
for (const combo of bindingsFor(action.id, bindings)) {
const key = canonicalizeCombo(combo)
+ const ids = index.get(key)
- if (!index.has(key)) {
- index.set(key, action.id)
+ if (ids) {
+ ids.push(action.id)
+ } else {
+ index.set(key, [action.id])
}
}
}
@@ -138,13 +142,25 @@ export function resetAllBindings(): void {
$bindings.set(defaultBindings())
}
-// Other actions that already use `combo` (excluding `actionId` itself).
+// Other actions that already use `combo` (excluding `actionId` itself). A
+// `passthrough` action layered over a later one shares the chord by design,
+// so that pair is not reported from either side.
export function conflictsFor(actionId: string, combo: string): string[] {
const bindings = $bindings.get()
+ const actions = allKeybindActions()
+ const self = actions.findIndex(action => action.id === actionId)
- return allKeybindActions()
+ return actions
+ .filter((action, index) => {
+ if (index === self || !bindingsFor(action.id, bindings).includes(combo)) {
+ return false
+ }
+
+ const earlier = index < self ? action : actions[self]
+
+ return !earlier?.passthrough
+ })
.map(action => action.id)
- .filter(id => id !== actionId && bindingsFor(id, bindings).includes(combo))
}
// ── Capture ─────────────────────────────────────────────────────────────────
diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.md
index 80625c23d19..7e19d4324d4 100644
--- a/website/docs/user-guide/desktop.md
+++ b/website/docs/user-guide/desktop.md
@@ -363,7 +363,7 @@ chats decide who replies: [Bot Mode: A Roster of Agents](./bot-mode.md).
### Keyboard & navigation
- **Command palette** — press **Cmd+K** or **Cmd+P** (Ctrl+K / Ctrl+P on Windows/Linux) to jump to actions and navigate the app from the keyboard: open any page or settings section, jump to a session by title or id, switch model/theme/color mode, spawn a terminal, restart the gateway, update Hermes, and more.
-- **Rebindable shortcuts** — **Settings → Keyboard Shortcuts** (or **Cmd/Ctrl+/**) opens the shortcuts panel where you can remap almost every binding — profile switching, session navigation, view toggles, and any shortcuts contributed by desktop plugins. Duplicate assignments are flagged as conflicts. A few defaults worth knowing: **Cmd/Ctrl+N** new session, **Cmd/Ctrl+.** Command Center, **Cmd/Ctrl+,** Settings, **Cmd/Ctrl+Shift+F** search sessions, **Cmd/Ctrl+1–9** switch profiles, **Shift+X** toggle light/dark.
+- **Rebindable shortcuts** — **Settings → Keyboard Shortcuts** (or **Cmd/Ctrl+/**) opens the shortcuts panel where you can remap almost every binding — profile switching, session navigation, view toggles, and any shortcuts contributed by desktop plugins. Duplicate assignments are flagged as conflicts. A few defaults worth knowing: **Cmd/Ctrl+N** new session, **Cmd/Ctrl+.** Command Center, **Cmd/Ctrl+,** Settings, **Cmd/Ctrl+Shift+F** search sessions, **Cmd/Ctrl+1–9** switch to the Nth tab of the pane under the pointer (or the focused pane) and switch profiles when no pane has a tab strip, **Shift+X** toggle light/dark.
- **Custom zoom shortcuts** — zoom the interface in half-step increments for finer control over text size.
- **UI language switcher** — change the app's interface language in-app: English, Simplified Chinese (zh-Hans), Traditional Chinese (zh-Hant), Japanese, Arabic (RTL), and Russian.
diff --git a/website/docs/user-guide/multi-connection-desktop.md b/website/docs/user-guide/multi-connection-desktop.md
index d636f78e6de..294d2ddeabc 100644
--- a/website/docs/user-guide/multi-connection-desktop.md
+++ b/website/docs/user-guide/multi-connection-desktop.md
@@ -214,7 +214,7 @@ that live on one gateway.
- Selecting a gateway restores the last profile used there. The home pill
returns to its default profile and the layers pill shows **All profiles on
this gateway**. **Cmd/Ctrl+1–9** continue to switch profiles within the
- active gateway.
+ active gateway whenever no pane has a tab strip to claim them.
- With several gateways the profile rail is a **fleet rail**: every registered
gateway's profiles sit on the one strip, each group headed by that gateway's
kind glyph (device, network, terminal, cloud) — the same glyph the gateway