Repository navigation
Open repositories in new windows - #22382
Closed
hewigovens wants to merge 2 commits into
Closed
hewigovens wants to merge 2 commits into
hewigovens wants to merge 2 commits into
Conversation
Add an "Open Repository in New Window" action to the repository list context menu and the minimum multi-window plumbing needed to support it safely. The same action is available on worktree list items via the worktree dropdown's context menu. Also updates native window titles with the selected repository name and reveals hidden/minimized windows when notification clicks focus them. Broadcast OAuth callbacks to all windows so sign-in completes regardless of which window initiated the flow. Only hide the last window on macOS; close secondary windows to avoid resource leaks.
Each Electron renderer has its own localStorage, so account changes in one window are not visible to others. Forward serialized account data through the main process to other windows, which import it directly and fetch tokens from the shared OS keychain. An isSyncing flag prevents re-broadcasting back to main.
hewigovens
marked this pull request as ready for review
June 25, 2026 09:27
Contributor
|
Thanks for your pull request! This is a large change (1310 lines across 21 files) that doesn't reference a Large feature PRs require prior discussion in an issue before implementation — this helps the team assess whether the feature aligns with the project's direction before significant effort is invested. Please open an issue to discuss this feature first. This PR will be automatically closed in 3 days if requirements are not met. Full contribution requirements
|
|
would love to see this, or something like this, get merged! |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3606.
I’ve been using this regularly in my fork for a while, including published test builds at https://github.com/hewigovens/github-desktop/releases.
The recent worktree support made this worth revisiting: it is increasingly common to have multiple repositories and worktrees active at the same time, especially when using coding agents or using GitHub Desktop for serious code review and code browsing.
This PR keeps the scope narrow: it does not introduce a general blank “New Window” command. Instead, it adds explicit “Open Repository in New Window” actions for repository/worktree entries and the main-process plumbing needed to keep those windows isolated and synchronized.
Demos are attached at the the bottom, there are 3 ways to open a repo in a new window:
Summary
Notes for review
release-3.6.0.Validation
yarn test app/test/unit/accounts-store-test.ts app/test/unit/main-process/open-repository-window-router-test.ts app/test/unit/repository-list-item-context-menu-test.ts app/test/unit/worktree-list-item-context-menu-test.ts app/test/unit/ipc-contract-test.tsyarn prettieryarn lint:srcyarn compile:prodDemos
from-repo-list.mp4
from-cli.mp4
from-worktree.mp4