Repository navigation
Refresh multi-window support with isolated clients and stable terminal layouts - #36045
Draft
tpmeredith wants to merge 10000 commits into
Draft
tpmeredith wants to merge 10000 commits into
tpmeredith wants to merge 10000 commits into
Conversation
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.
ELI5
One Orca profile can keep different projects and tabs open in separate desktop windows. Enable Settings > Experimental > Multiple windows, then choose File > New Window. Accounts, files, and running sessions stay on the original profile.
What Changed
This contribution targets the branch behind #5329 so its author can incorporate the refresh into that PR. It merges a pinned main snapshot (
bc228ff5cb) into the June branch and ports the feature onto that runtime. The original PR head and upstream main are both ancestors.There were 80 conflicted files, including PTY/SSH/runtime modules that main has replaced. The refreshed implementation uses existing paired-client navigation and terminal streams for additional native windows, instead of restoring the old multi-authority renderer graph.
Feature-only review: tpmeredith/orca@bc228ff...864ff92
The branch refresh necessarily includes upstream history; the comparison above isolates the 102-file implementation and tests. This is an updated implementation of the original feature, not a claim that its old terminal routing can be merged unchanged.
Why
The practical workflow is one project on each monitor while retaining one account/project/session setup. Current Orca already has connected-client isolation and terminal streaming; reusing that code avoids reviving superseded daemon and SSH implementations.
Linked Issue
Fixes #6074 through the multi-window work in #5329.
Visual Proof
Before: original window, with the experimental entry disabled.
After: two additional native windows, each filtered to a different project and showing shell output from real keyboard input.
Mirrored terminal resize fix
Resizing or moving an additional window previously claimed the shared terminal's rows and columns, rewrapping text in the original window. When the same terminal is visible in two native windows, its existing grid now stays fixed and each window scrolls its own view. Separate tabs and projects still fit their respective windows. This continues using one running shell or agent.
The follow-up runtime, frontend, security, and test reviews found and repaired retained phone-hold reclamation, silent-input cursor visibility, reused-slot cleanup, stale host-frame reports, and ANSI redraw/handoff ordering. Re-review found no further confirmed P1/P2 defect in the reviewed changes.
Earlier review fixes
The six findings in the first review are addressed:
The reload journey now checks the same active workspace, tab, PTY, and a shell variable retained in the original process. The real serve journey covers a native unload veto followed by a successful retry.
Testing
76acade7e9: the new regression observed one terminal changing from 94×56 to 136×54 when the mirror opened.pnpm tcpassed after the final type/test cleanup.3889850f43to0360339bb3): all 27 selected checks passed, including related units, main/web/CLI typechecks, lint, format, and structural gates.0360339bb3to864ff92904): all 13 selected checks passed. The resize journeys also passed two consecutive runs with settled native/DOM/process geometry.864ff92904: all four Linux Electron journeys passed, with no skips, retries, or flaky results.Resize regression and runtime regressions use process-side sizes, real terminal content, and actual provider effects. Native visibility and focus are explicitly simulated while test windows remain hidden on isolated Xvfb; physical monitor/DPI transitions, real macOS/Windows runtimes, and live SSH remain unverified. The screenshots above show the earlier window-launch feature; they are not new resize evidence.
Earlier review-fix validation at
76acade7e9passed its 29-check aggregate and 38-step full lint. The older whole-feature affected expansion exceeded 15 minutes, and the full E2E TypeScript check had unrelated cloud/mobile diagnostics. Those historical results are not represented as a current whole-feature CI pass. This remains a draft for human review.Manual check: enable Multiple windows in the original desktop, open another window, select the same terminal, type in both and resize each. Wrapping should stay fixed while the smaller view scrolls. Select another tab/project and confirm independent fitting; switch back, then navigate away or close either window and confirm the survivor fits normally.
AI Disclosure
Prepared using OpenAI Codex (GPT-6 based agent). Human review is requested.
Review
Self-reviewed for cross-platform APIs, local/SSH routing, existing agent/integration behavior, default-off performance impact, UI capability boundaries, and credential cleanup. New windows use the existing connected-client interface; desktop-only integrations remain in the original window. Additional windows are not restored after application exit.
Agent skill upstream boundary
Notes
This contribution does not update #5329 directly. Its author or another maintainer must merge it into the source branch.
Linux release backport updated 2026-11-04
The separate v1.4.248 release backport produces preview 1.4.248+multiwindow.5329.3 and includes the mirrored-terminal resize fixes. It adapts the current settings/persistence module paths and feature-owned settings composition. Database schemas and dependency lockfiles remain unchanged.
Validation for this release backport, separately from the PR-head evidence above:
81b9e671630b389f74ee3cdc29eef6c9ab5195d6: 288 targeted unit tests passed, one existing skip; all seven isolated Electron journeys passed with no retries. The journeys cover paired-client navigation, project creation, independent native windows, reload/session survival, mirrored-grid resize isolation, independent terminal tabs, and serve Quit.builtinModules. Commit0a81705f566c304efcb81a884a60eaadc307960eusesmodule.isBuiltin()sonode:sqliteis accepted while unknown builtins and missing packages are still rejected. Its regression and all 13 incremental checks passed.The older v1.4.244 backport remains available as rollback history. These release branches are separate from this PR's main-based contribution; the PR remains a draft for maintainer and cross-platform review.
Linux secondary-window split fix, 2026-11-05
The release-only follow-up backports upstream #38336 into preview 1.4.248+multiwindow.5329.4. Targeted session-tab deliveries already contain their client's navigation projection; applying it twice changed the publication epoch and revision, causing secondary windows to fence later layout updates as stale. The original desktop still split immediately because it owns the host layout. This release follow-up is separate from the main-based PR head above.
Checklist