Repository navigation
feat(desktop): multiple windows that share the main window's connections - #2
Open
na0s-fleet-agents[bot] wants to merge 21 commits into
Open
na0s-fleet-agents[bot] wants to merge 21 commits into
na0s-fleet-agents[bot] wants to merge 21 commits into
Conversation
|
This PR changes the test suite by +58 test cases (browser +4, unit +54, server 0). New browser test files: Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
na0s-fleet-agents
Bot
changed the base branch from
main
to
feat/desktop-multi-window-hub
November 20, 2026 04:49
na0s-fleet-agents
Bot
changed the base branch from
feat/desktop-multi-window-hub
to
main
November 21, 2026 22:29
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>
…ared hub Saved window profiles (project filter, bounds, theme), the close prompt, the Multiple windows switch and Windows settings, project-colour themes, and Mini Mode, built on the shared-connection window hub. Replays the branch's history up to da2ba7c as one commit. That history carried its own copy of the window hub and merged the hub branch three times, so its commits no longer apply one by one on the rebased hub. Squashed commits: - 5fa6d22 feat(desktop): multiple windows that share the main window's connections - cac0fe8 fix(desktop): shared hub subscriptions keep flow control and retain nothing - ddbc66c fix(desktop): previews, focus and captures stay with their window - 636249f fix(desktop): a reloaded secondary window keeps its current filter and profile - 68836c8 feat(desktop): Mini Mode leads with usage limits in a compact layout - 6b66dac feat(desktop): secondary windows take on their projects' icon colours - d0f7871 feat(desktop): multi-window toggle and saved windows in Settings - bf9f316 fix(desktop): Mini Mode offers no New Window while multiple windows are off - 6c10b48 feat(desktop): project colours tint the sidebar banner; window settings round - ac5136e feat(desktop): Mini Mode becomes a tabbed accessory panel - 7017392 refactor(client-runtime): keep connect in place and reuse canonicalJson for the shared config match - 8e84740 refactor(desktop): one way to add a window profile, and no stored window context - edeea98 refactor(web): project icon swatches read Tailwind's colour variables - d2a438b refactor(desktop): drop focusedMainOrFirst, which IPC senders replaced - cabc407 refactor(desktop): window context schema lives in contracts - 8150b1d refactor(web): hub link messages are schemas - 5168f0e docs: multiple windows guide covers tasks, not every control - 6b59152 refactor(web): Mini Mode Usage reuses the composer's compact limit rows - 44f9902 refactor(web): register the window commands at startup - acd5bab docs: multiple windows guide keeps the hidden main window note - 1891a8c docs: the hidden main window stays open on macOS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ntent The browser test no longer copies the panel's tab switch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… them Each gradient had one caller, and its tests pinned exact CSS strings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
windowCloseDecision and the theme select-value helpers each had one caller. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…urrentWindowProfile Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…les normalize once Settings already normalizes a new profile's project filter, so the window service no longer does it first. Both unsaved-name lookups share one helper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…profile to write Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ws check Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ondary windows The project-colour wash across a secondary window's sidebar banner read as noise. It goes; a saved window's theme options and the colour on its settings entry stay. Mini Mode opened at 320x460, which made a persistent accessory panel feel like a second app window. It now opens at 320x184, like a menu-bar panel, and can be dragged down to 160px or taller for more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…its two accounts At 184px tall the panel had room for one tab's content between two bars, and the Settings tab's switch was hard to use there. Settings goes; the full settings are a search away. The tabs (Windows, Pull requests, Usage, Update) move into the top bar on the left; Search becomes an icon beside New Window and Expand on the right. Windows takes a layers icon so it doesn't repeat New Window's. Usage showed one account's rows per screen. It now draws each limit as a small bar with its percent left, two to a line, so Claude and OpenAI show together. The bar keeps its tooltip with the reset time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…x window controls On Windows and Linux the title bar overlay keeps its buttons in the panel's top right, and at 320px the tabs ran under Search. In Mini Mode the window is no longer maximizable or minimizable, which drops Maximize on Linux; the tabs take the top bar's 28px buttons instead of the sidebar footer's 32px ones. The bar now fits with Minimize and Close beside it, and the sidebar footer item goes back to how it was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s from the copy module The app's UI is now translated. Saved windows, Windows settings, the close prompt, Mini Mode, the Window menu entries and unsaved window names use gt(), <T> and msg(), with keys in en and every locale catalog for web and desktop. Mini Mode's Usage tab takes collectLimitNotices and collectExternalUsageLinks from usageLimitsCopy, which moved there to translate, and its update and pull request rows pass the active resolver. The Mini Mode test fixtures are renamed to mini.test-fixtures.ts so the untranslated-copy rule skips them. The Window menu test expects Minimize and Zoom too, which now carry translated labels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
na0s-fleet-agents
Bot
force-pushed
the
feat/desktop-multi-window
branch
from
November 23, 2026 15:22
d68b216 to
76a95e9
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
Problem
With #4 the desktop app can open more windows, but a window is gone once you close it. Nothing remembers that one window was "client work" and another "hobby": the project filter, position and theme have to be set up again every time, and nothing tells the windows apart at a glance. While other windows are open, the main window is also a full-size window you have to keep somewhere, even when all you want from it is an overview.
Change
mainWindowBoundskeys still hold the main window's placement, so downgrading still works.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
Window and settings captures: Electron desktop dev build (
vp run dev:desktop) on a 1600×1000 Xvfb screen, every window 1280×800, light theme, synthetic projects (storefront;northwind/api, holdingapiandapi-v2grouped by repository;pixel-dungeon;synth-rack; andbrand-site, whose icon is an SVG favicon) with replayed threads, isolated home and Electron profile, captured over CDP. Mini Mode captures are noted per row.Rebase onto main, 76a95e98bc
Rebased onto main at 1368854 with #4 at bfcf1b2. The branch's history up to its last hub merge is one commit; the twelve commits after it are replayed unchanged. A new last commit translates the multi-window UI and reads Mini Mode's usage notices from
usageLimitsCopy. The captures and commit links below predate the rebase and were not retaken.Round before the rebase, 7800f01d05
Secondary windows lose the banner tint; the theme options and list colours in Windows settings stay. Mini Mode opens at 320×184.
Previous round: changes since bf9f316
The banner tint shown here was removed in 7800f01.
Against main
The close-prompt capture and the recording below are from 636249f. They predate the sidebar-banner tint and the Windows settings changes; the prompt itself is unchanged since. Recordings start after the app has loaded and are shown as GIF previews; click one for the H.264 MP4.
Mini Mode
At d68b216cf4, 320×184. The component captures render the panel with the test's synthetic fixtures in Chromium; the Linux capture is the Electron app on Xvfb, grabbed from the X display so the native buttons show, with an isolated home and no provider credentials.
Earlier rounds, superseded (Settings tab removed, tabs moved to the top). At 320×184 from 7800f01d05:
At 320×460:
The Usage captures are from the Electron app at 4116885. It read real limits from this machine's provider CLIs, so every figure, bar, reset time and plan label was covered in the page before capture. The before shows the unavailable state; the before with readable limits shows plan labels and is left out.
Other tabs, after only:
Observed in the running app at 636249f, not rerun on the current head:
Focused tests on 4116885, all passing:
DesktopWindow,DesktopWindowProfiles,DesktopAppSettings,DesktopApplicationMenu(4 files, 82 tests)src/multiWindow, includingwindowsState,windowTint.logicandwindowProfiles.logic(4 files, 18 tests)MiniMainWindow.browser(9 tests)Not captured: the native Window menu. On Linux the app draws its own title bar and shows no menu bar; its entries are covered by
DesktopApplicationMenu.test.ts.Not verified
vp run check:changedand the i18n catalog check passed on 76a95e9.The model and harness that did the work: Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code