Skip to content

[Bug] ⌘N in the macOS desktop app opens a new app window instead of a new session (#70) - #85

Open
jan21deepak wants to merge 1 commit into
mainfrom
cursor/fix-cmd-n-new-session-48f7
Open

[Bug] ⌘N in the macOS desktop app opens a new app window instead of a new session (#70)#85
jan21deepak wants to merge 1 commit into
mainfrom
cursor/fix-cmd-n-new-session-48f7

Conversation

@jan21deepak

@jan21deepak jan21deepak commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Opened automatically by Cursor Forge as a same-repo PR on jan21deepak/omnigent
after the Cloud Agent pushed cursor/fix-cmd-n-new-session-48f7 (not against an upstream parent).

Fixes #70.

Cursor agent: bc-2d807766-87e5-48aa-9785-a07f1cae48f7


Note

Low Risk
Menu accelerator and routing-only changes in the Electron shell; behavior is covered by wiring regression tests and matches existing sendOpenPath navigation.

Overview
Fixes #70: on macOS/desktop, ⌘N / Ctrl+N no longer spawns another OS window.

The Server menu adds New Session on CmdOrCtrl+N, which calls newSession()sendOpenPath(activeWindow(), '/') so the SPA navigates in-place (same omnigent:open-path path as deep links and notification clicks). New Window is remapped to CmdOrCtrl+Shift+N and still uses newWindow().

main.test.js adds source-string guards so New Session keeps CmdOrCtrl+N + newSession(), and New Window cannot reclaim that shortcut.

Reviewed by Cursor Bugbot for commit bd07138. Bugbot is set up for automated code reviews on this repo. Configure here.

Remap the standard new shortcut (Cmd/Ctrl+N) from opening an OS-level
window to navigating the current window's SPA to the new-session
landing via sendOpenPath. Move New Window to Cmd/Ctrl+Shift+N so the
multi-window workflow remains accessible from the menu.

Co-authored-by: jan21deepak <jan21deepak@users.noreply.github.com>
@jan21deepak

Copy link
Copy Markdown
Owner Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit bd07138. Configure here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] ⌘N in the macOS desktop app opens a new app window instead of a new session

2 participants