Skip to content

Switch between inbox and legacy sidebars with a keybinding #21

Closed

Description

@lastobelus

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 existing sidebar.toggle capture listener.
  • apps/web/src/hooks/useSettings.ts — reuse useLegacySidebarEnabled and useUpdateClientSettings.
  • 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.toggle is available in Settings → Keybindings on web and desktop.
  • Assigning a shortcut and pressing it switches between the inbox/default and legacy sidebars.
  • The existing legacySidebarEnabled preference 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

  1. added
    enhancement
    on Aug 16, 2026
  2. self-assigned this
    on Aug 16, 2026
  3. lastobelus commented on Aug 16, 2026

    @lastobelus
    OwnerAuthor

    Phase: requirements and protocol discovery

    Summary: Add the LastCode-only sidebar.mode.toggle static command, preserving legacySidebarEnabled as 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-keybinding

    Thread/owner token: t3code/9f15b178 / lastobelus

  4. 25 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions