anomalyco / anomalyco/opencode

New Window shortcut (Ctrl+Shift+N) does nothing on Windows desktop

Open
#41,592 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 10, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

The desktop menu shows File → New Window with a Ctrl+Shift+N keybind hint,
but pressing the shortcut does nothing. Clicking the menu item opens a new window
fine, so only the keyboard accelerator is dead.

Other shortcuts (settings Ctrl+,, zoom Ctrl+0/Ctrl++/Ctrl+-, and the edit
shortcuts) work correctly. Ctrl+Shift+N is the only broken one.

Root cause (from source)

The menu accelerators are defined in packages/app/src/desktop-menu.ts per
platform (macos: "Cmd+Shift+N", windows: "Ctrl+Shift+N"). macOS registers them
via a native Electron menu (packages/desktop/src/main/menu.ts), but that function
returns early on Windows (if (process.platform !== "darwin") return). Windows uses
an in-app dropdown (packages/app/src/components/windows-app-menu.tsx) where the
accelerator is only rendered as a label — nothing ever listens for the keystroke.
window.new is an action (not a command), so the renderer command keybind system
doesn't cover it either, and Electron's default menu (active on Windows) has no
"New Window" item. So Ctrl+Shift+N is never wired to createMainWindow().

Plugins

None

OpenCode version

1.18.16

Steps to reproduce
  1. Open the OpenCode desktop app on Windows.
  2. Press Ctrl+Shift+N.
  3. Nothing happens. (File → New Window via the menu works.)
Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.