Skip to content

mod+shift+w and mod+o do nothing in the new layout #39785

Closed as not planned
Closed as not planned

Description

@ProdigyRahul

describe the bug

two keyboard shortcuts do nothing in the new layout, and their commands are missing from the palette:

  • mod+shift+w (new workspace) on the new session page
  • mod+o (open project) anywhere in the new layout

root cause

both commands are registered in exactly one place, packages/app/src/pages/layout.tsx, which only mounts inside LegacyServerLayout.

in Routes, the draft page is declared as a sibling of that tree rather than a child of it, and new layout session routes go through TargetSessionRoute, also outside it:

<Route component={LegacyServerLayout}>
  <Route path="/:dir" component={DirectoryLayout}>...</Route>
</Route>
<Route path="/new-session" component={DraftRoute} />

so in the new layout that shell never mounts, neither command is ever registered, and both keybinds resolve to nothing.

workspace.new had been registered on the draft page in c9a5556, but that was dropped when the page's commands moved into use-new-session-commands.tsx.

not a keybind matching problem. the command context only suppresses keybinds inside a contenteditable when no modifier is held, and both of these hold one, so the prompt editor never swallowed them.

steps to reproduce

  1. enable the new layout
  2. open the new session page
  3. press cmd+shift+w, nothing happens, the workspace chip stays on local
  4. press cmd+o, nothing happens, no directory picker opens

both commands are also absent from the command palette.

expected behavior

  • mod+shift+w sets the workspace chip to new workspace, same as picking it from the chip menu
  • mod+o opens the directory picker and opens the chosen project
  • both appear in the command palette under their categories

screenshots

(screenshots to be added)

environment

  • desktop app, dev build, new layout
  • macos

Activity

  1. github-actions commented on Jul 31, 2026

    @github-actions
    Contributor

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  2. changed the title [-]mod+shift+w does nothing on the new session page[/-] [+]mod+shift+w and mod+o do nothing in the new layout[/+] on Jul 31, 2026
  3. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions