Repository navigation
Description
Problem
LastCode exposes two useful thread-navigation models:
- the default inbox-style sidebar, with a flat active/settled workflow; and
- the legacy sidebar, with per-project thread trees.
The existing Settings → General → Legacy features → Sidebar (legacy) toggle makes this a durable preference, but switching requires leaving the current workflow and navigating through Settings. Users who move between inbox triage and project-oriented work cannot switch efficiently from the keyboard.
Upstream recently made the inbox-style sidebar the default and treats the old sidebar as a legacy escape hatch. Acceptance research found this is unlikely to be accepted upstream as a first-class workflow, so this request belongs in LastCode's independent integration track.
Proposed behavior
Add a static, user-configurable keybinding command:
sidebar.mode.toggle
When invoked on web or desktop, the command toggles the existing client-local legacySidebarEnabled setting:
- inbox/default sidebar → legacy sidebar
- legacy sidebar → inbox/default sidebar
The command should appear in Settings → Keybindings. Leave it unbound by default unless a clearly collision-free, appropriate default chord is identified during implementation. The existing Settings toggle remains the pointer-accessible control and reflects changes made by the keybinding.
Use user-facing labels that make the destination clear, such as Switch to inbox sidebar and Switch to legacy sidebar. The persisted setting remains the single source of truth.
Relevant implementation seams
packages/contracts/src/keybindings.ts— add the static command ID.apps/web/src/components/AppSidebarLayout.tsx— handle the command alongside the existingsidebar.togglecapture listener.apps/web/src/hooks/useSettings.ts— reuseuseLegacySidebarEnabledanduseUpdateClientSettings.apps/web/src/components/settings/KeybindingsSettings.logic.ts— the static command should be listed automatically; add a specific label only if the generated label is unclear.apps/web/src/components/settings/SettingsPanels.tsx— retain the existing legacy-sidebar switch as the visible setting.docs/user/keybindings.md— document the command and whether it has a default shortcut.
Acceptance criteria
sidebar.mode.toggleis available in Settings → Keybindings on web and desktop.- Assigning a shortcut and pressing it switches between the inbox/default and legacy sidebars.
- The existing
legacySidebarEnabledpreference is updated and survives reload. - The Settings toggle immediately reflects keyboard-triggered changes.
- The keybinding does not fire while the keybinding recorder is capturing input.
- Repeated presses do not lose updates or leave the rendered sidebar inconsistent with the persisted setting.
- Focused tests cover command decoding, shortcut dispatch, both toggle directions, and persistence.
- One integrated web or desktop pass verifies switching with active drafts and threads present.
Scope boundaries
- LastCode-only. Do not propose or couple this to an upstream T3 Code contribution.
- Do not add a second sidebar-mode setting, compatibility layer, or migration.
- Do not redesign either sidebar or attempt to reconcile their internal view state.
- Do not add mobile settings synchronization or a mobile keyboard workflow in this issue.
- Do not assign a default chord without checking the complete current default keymap for collisions.
- Do not turn this into general workspace-layout profiles or a view-mode framework.
Activity
lastobelus commentedon Aug 16, 2026
Phase: requirements and protocol discovery
Summary: Add the LastCode-only
sidebar.mode.togglestatic command, preservinglegacySidebarEnabledas the single persisted source of truth and leaving the command unbound by default unless the complete keymap proves an appropriate collision-free chord.Touch points:
packages/contracts/src/keybindings.ts; web keybinding dispatch and sidebar layout; settings/keybinding labels; focused contract and web tests;docs/user/keybindings.md.Blocked by: Nothing known.
May block: Concurrent edits to static keybinding IDs,
AppSidebarLayout, or legacy-sidebar settings behavior.Branch:
lastcode/sidebar-mode-keybindingThread/owner token:
t3code/9f15b178/lastobelusfeat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
25 remaining items
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)
feat(web): toggle sidebar mode with a keybinding (#23)