anomalyco / anomalyco/opencode
New Window shortcut (Ctrl+Shift+N) does nothing on Windows desktop
@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
- Open the OpenCode desktop app on Windows.
- Press
Ctrl+Shift+N. - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.