Skip to content

[Feature]: Detachable panes — drag tabs into separate windows (docked to parent) #4623

Description

@songlairui

The Floating Terminal (Cmd+Option+A) can be dragged around inside the main window, but it can't leave the window.

I'd like to be able to drag it outside — onto a second monitor. If keeping the relationship to the main window matters, it could stay docked as a child window (close main → close floater). But it should be able to break out of the parent window bounds.

Activity

  1. added
    size/xl
    on Jun 9, 2026
  2. added
    enhancement
    on Jun 25, 2026
  3. added theissue type on Jul 12, 2026
  4. Javiervinus commented on Jul 31, 2026

    @Javiervinus

    I'd like to take this on. I spent some time mapping how it could work within the current architecture — sharing the design here before the first PR in case any of it collides with internal plans.

    Proposed approach: detach the floating workspace into a real OS window (movable to a second monitor), built as a viewer window on two patterns the codebase already has, rather than a second graph publisher:

    • The window shell follows dashboard-popout-window.ts: singleton BrowserWindow with its own renderer entry (like popout.html), isolated partition, denied permissions, privileged navigation policy, and bounds persisted main-side and validated against visible displays.
    • Terminals ride the existing terminalPreview:* transport (per-webContents subscription, atomic snapshot + live replay with ack/backpressure, fit claims). Since writeTerminalPreviewInput goes through the real input pipeline, detached terminals are fully interactive — and the main renderer remains the sole runtime-graph publisher, so the authoritativeWindowId invariant stays intact. The only main-side gate change is admitting the new window in isTerminalPreviewRenderer. I verified the hidden-delivery gate doesn't starve this path: preview streams subscribe at the runtime model level, upstream of the renderer-delivery gate.
    • The in-window panel and the OS window are mutually exclusive (a floatingDetached flag broadcast via ui:stateChanged); the floating-terminal toggle shows/focuses the OS window while detached. Focus routing gets simpler in detached mode: main derives it from window.isFocused() instead of the DOM-reporting path.

    Phasing, to keep each PR reviewable:

    1. Detach/reattach with terminal tabs, fully interactive. Browser/markdown/emulator tabs stay docked in this phase.
    2. Optional always-on-top pin (+ visible-on-all-workspaces behind a darwin runtime check) — the "companion window" use case.
    3. Non-terminal tabs in the detached window.
    4. This issue's full title: dragging individual tabs out into their own windows.

    Questions before I get too far:

    • Any objection to the viewer-over-terminalPreview architecture, vs. making pty delivery window-aware?
    • Phase 1 terminals-only acceptable, with non-terminal tabs staying docked?
    • Frameless window reusing the panel's existing chrome, or a native frame like the dashboard popout deliberately chose?

    I'll start with phase 1 in small slices — happy to adjust course on any feedback.

  5. Javiervinus commented on Jul 31, 2026

    @Javiervinus

    @brennanb2025 tagging you since both pieces this design builds on are yours — the dashboard popout window and the terminalPreview transport. Before I sink real time into phase 1: any objection to admitting a second trusted window in isTerminalPreviewRenderer and driving a fully interactive detached terminal over that transport? If this should wait for internal multi-window plans, happy to hear that too.

  6. w1010k commented on Aug 6, 2026

    @w1010k

    Adding a user-side data point, and one scope request.

    Already covered by the open PRs, noting it so nobody re-litigates: #10644 adds a
    "Detach Tabs to Window" context-menu action on tabs and a "Return to main window"
    control, so both the docked entry point and reattach are handled there. #10710 adds
    drag-to-detach on top of that.

    Scope: non-terminal panels. Both PRs are scoped to terminal tabs, and
    @Javiervinus's phase plan likewise puts non-terminal tabs in phase 3. Re your phase-1
    question ("Phase 1 terminals-only acceptable, with non-terminal tabs staying
    docked?") - from the user side: yes as a first cut, but it's half the use case. My
    setup is the editor full-screen on the primary display and, on the secondary display,
    either the Terminal or the AI Chat panel. AI Chat is the one I reach for more often,
    so phase 3 is what completes this for me.

    Prior art for the end state: IntelliJ IDEA's "Move to Window" - any tool window
    (Terminal, Run, Debug) moves into its own native OS window and back, from a menu
    action on the docked panel. Worth matching, since that is the mental model most people
    arrive with.

    Status question: #10644 (non-draft) has been idle since 2026-07-31 and #10710 is
    still a draft, last touched 2026-07-28. Is anything blocking review? Happy to test
    builds on a Windows multi-monitor setup if that helps.

  7. emmahyde commented on Aug 8, 2026

    @emmahyde
    Contributor

    Status question: #10644 (non-draft) has been idle since 2026-07-31 and #10710 is
    still a draft, last touched 2026-07-28. Is anything blocking review?

    It seems to be taking maintainers a long time after I've pushed up the most recent merge conflicts and re-tag them to actually run the builds and test it out before it has conflicts again. Please feel free to QA, personally I am just waiting for the next step. Just merged in conflict resolution so should be ok for a couple of hours 😆

  8. AmethystLiang commented on Oct 19, 2026

    @AmethystLiang
    Contributor

    This is still planned work!

  9. wer2956 commented on Nov 3, 2026

    @wer2956

    +1 for this. I use Orca on a multi-monitor setup, and right now everything has to live inside a single window.

    What I'd like: tear off an individual tab (terminal, editor, browser, agent chat) into its own OS window, move it to another monitor, and drag it back to re-dock. Tab-level granularity matters more to me than whole-workspace windows, e.g. keeping an agent session on one screen while editing on the other.

    Related: #6074 (multiple windows), #32091 (drag tab into pop-out window).

  10. neogent-dev commented on Nov 5, 2026

    @neogent-dev

    we really need this feature!!

  11. umitcekirge commented on Nov 10, 2026

    @umitcekirge

    I really need this feature too. Being able to move tabs to a second monitor would be incredibly useful for my workflow. Looking forward to seeing this implemented.

  12. lafraia commented on Nov 18, 2026

    @lafraia
    Contributor

    +1. I would like to detach a tab from the main Orca window into its own native window, for example by dragging the tab outside the window.

    Related: #32091 requests the same drag-to-pop-out interaction, specifically for browser tabs. Linking these requests so the broader detachable-tab feature and the browser use case can be considered together.

  13. marcinkubica commented on Nov 20, 2026

    @marcinkubica

    yes, please. for those with multiple monitors and terminal as default it's useful

  14. ninjaforhire commented on Nov 20, 2026

    @ninjaforhire

    I’d love to help get this working. I want to be able to drag a running Claude or Codex terminal onto my second monitor and bring it back without interrupting the session.

    I saw the earlier work on this and would rather contribute to it than start a competing implementation. Is there a branch folks are working from or a specific piece I could pick up?

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

Metadata

Metadata

Assignees

Labels

enhancementsize/xl

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions