Repository navigation
feat(desktop): open more windows that share the main window's connection - #4
Open
na0s-fleet-agents[bot] wants to merge 7 commits into
Open
na0s-fleet-agents[bot] wants to merge 7 commits into
na0s-fleet-agents[bot] wants to merge 7 commits into
Conversation
This was referenced Nov 20, 2026
Secondary windows are thin clients: the main window's renderer is a hub that relays each environment's RPC over a MessagePort and shares its subscription streams, so a new window opens without its own sockets or auth. The desktop shell opens them from New Window (command palette, Window menu, and mod+alt+shift+n), trusts IPC from every app window, scopes preview tabs to the window that shows them, and keeps the main window hidden rather than closed while it serves other windows. Windows merge their shared UI state and composer drafts instead of overwriting each other's saves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reuses its supervisor Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ir window Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mponent state Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
na0s-fleet-agents
Bot
force-pushed
the
feat/desktop-multi-window-hub
branch
from
November 23, 2026 15:09
b4b4943 to
bfcf1b2
Compare
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.
Use case
From the multi-window use case behind this stack (#2):
Problem
The desktop app has one window, so you can't put one set of projects on one desktop or Space and another set on the next. A second window that worked like the first would open its own connection to every environment, sign in again, and hold its own server subscriptions, doubling the work for each thread it shows. It would also write the same stored UI state and composer drafts as the first window, so one window's save would overwrite the other's.
Change
window.new).User docs:
docs/user/multiple-windows.md.Scope and approval
This is a feature with no maintainer approval yet. It is filed on my fork and proposed upstream in an Ideas discussion: link added after posting.
Verification
vp fmt,vp lint, the web and desktop typechecks, andvp run check:changedagainst forkmainall pass. The affected tests also pass: client-runtime hub, relay and session; desktop window, menu, IPC and preview; web stores and keybindings; and the CommandPalette and ElectronBrowserHost browser tests.Evidence
Electron desktop dev build (
vp run dev:desktop) on Xvfb, light theme, isolated--home-dirand Electron profile, one syntheticnorthwindproject with a replayed thread, driven over CDP. Captured at 5a5dc93dd4; the commits after it on this branch are refactors, a test change and a docs change. All captures are after only: main has no second window to compare with.Step 3 (no server WebSocket from the second window) has no screenshot.
Known limitations
Seen on the earlier combined branch (636249f) and not rechecked on this head:
Stacked PR
This is the base of a stack.
feat/desktop-multi-window(#2) builds on it with saved windows, per-window project filters and themes, the project-colour tint, the Windows settings section and Mini Mode.🤖 Generated with Claude Code