Skip to content

Support dragging/transferring tab groups between windows #14152

Open

Description

@oz-for-x

🤖 Filed automatically by @ozdotdev on behalf of @vikvang1.
Source: https://x.com/vikvang1/status/2080030589026246993

Summary

Warp supports dragging/transferring an individual tab from one window to another (detach into a new window, or drop onto another window's tab bar). This request asks to extend that same drag/transfer behavior to tab groups, so an entire named tab group can be moved to another window as a single unit.

Current behavior

  • Individual tabs can be moved between windows via drag-and-drop (see https:​//docs.warp.dev/terminal/windows/tabs).
  • Tab groups can be created, named, colored, collapsed, and pinned, but a whole group cannot be dragged/transferred to another window.

Requested behavior

  • Drag a tab group (via its header) out of the tab bar to detach it into a new window, and onto another window's tab bar to move it there.
  • Preserve the group's name/color and membership, and each member tab's running session, panes, and state, consistent with single-tab drag behavior.
  • Support this from both the horizontal tab bar and the vertical tabs panel.

Additional context

Reported via X by @​vikvang1: https:​//x.com/vikvang1/status/2080030589026246993
Related: #466 (Rearrange / drag tabs/panes into windows and vice-versa).

Activity

  1. added
    enhancement
    on Jul 22, 2026
  2. warp-for-oss commented on Jul 22, 2026

    @warp-for-oss
    Contributor

    @oz-for-x[bot]

    Here's what I found while triaging this issue:

    This looks like a feature gap rather than a bug. Existing tab drag support is for individual tabs, while tab-group drag currently appears scoped to reordering a group within the same window; this is related to #466 but distinct because it asks to transfer an entire group as a unit.

    Maintainer details

    I concluded that feature request to extend existing cross-window tab dragging so an entire tab group can be transferred between windows as one unit..

    Triage summary

    This is a valid feature request for extending tab drag-and-drop from individual tabs to whole tab groups. The requested behavior is related to #466, but it is distinct because it asks to transfer the group header/block as a unit while preserving group metadata and all member tab state.

    Code findings

    • app/src/workspace/cross_window_tab_drag.rs models cross-window transfer around a single source tab index and a preview/target workflow for one TransferredTab.
    • app/src/workspace/view.rs builds and inserts one TransferredTab at a time, and clamps single-tab drops around existing groups so cross-window drops do not split a group.
    • app/src/workspace/view.rs plus app/src/workspace/view/vertical_tabs.rs wire StartGroupDrag, DragGroup, and DropGroup, but those actions call on_group_drag to reorder the group block only within the current workspace.
    • app/src/workspace/tab_group.rs stores the group identity, name, color, collapsed state, draggable state, and pinned state separately from member tabs, so a group-level cross-window implementation would need to transfer both the member tab data/view trees and the owning TabGroup metadata.

    Likely implementation direction

    A future implementation likely needs a group-aware cross-window drag path rather than trying to reuse the current single-tab payload directly. That path would need to create a preview for multiple member tabs, preserve group metadata such as name/color/collapsed/pinned state, transfer every member pane group without restarting sessions, remove the source group only after successful handoff/finalization, and insert the group as a contiguous block in the target window without splitting pinned or grouped regions.

    Duplicate check

    I enumerated the open issue list and found related issues such as #466 and #9030 for individual tab tear-off/move behavior, plus separate tab-group requests, but no open issue specifically requesting dragging/transferring whole tab groups between windows.

    Follow-up

    No reporter follow-up is needed for initial triage; the desired workflow and target surface are clear enough for product/engineering evaluation.

    This is my automated analysis and may be incorrect. A maintainer will verify the details.

    Powered by Oz

  3. added
    area:window-tabs-panes
    repro:high
    triaged
    on Jul 22, 2026
  4. added
    ready-to-implement
    on Jul 22, 2026
  5. warp-for-oss commented on Jul 22, 2026

    @warp-for-oss
    Contributor

    This issue has been labeled ready-to-implement and is open for contributions involving code changes. If you'd like to tackle it, feel free to open a pull request against this issue. You can also comment @oz-agent on this issue to have the bot draft an implementation PR automatically.

  6. warp-for-oss commented on Jul 22, 2026

    @warp-for-oss
    Contributor

    @vikvang

    I'm implementing this issue with no spec context.

    You can view the conversation on Warp.

    I created a new draft implementation PR for this issue.

    Next steps:

    • Review the implementation changes in the PR.
    • Complete any manual verification needed for this issue before merging.

    Powered by Oz

  7. 2solarmax commented on Jul 27, 2026

    @2solarmax

    Picking this up, I'll open a PR off master.

    @vikvang, you kicked off #14164, so shout if you're already iterating on it and I'll stay out of the way.

    I read that PR while working out the approach, and I'm starting from master rather than building on it. Three things in it looked structural to me rather than review nits: source-tab cleanup keys off the drag-start index rather than the group id, so it removes N tabs by position; there's no put-back, so dragging a group out and dropping it back on its own tab bar leaves you with a new window instead of cancelling; and the group drop path never clears the per-tab detached flag, so after an aborted drag those tabs won't start a new drag until some later, unrelated single-tab drop happens to reset them. I've read that last one rather than reproduced it, so take it with a pinch of salt.

    One piece of it I'm keeping: the group-aware preview rect lookup that replaces the hard-coded tab_position_id(0). Members of a collapsed group keep stale per-tab rects, so that part is right.

    The rest I'll write up in the PR description where it sits next to a diff. Planning on integration tests for the detach, cross-window drop and cancel paths, plus a narrated recording, since drag behaviour is hard to judge from a diff alone.

  8. 2solarmax commented on Jul 27, 2026

    @2solarmax

    Update on this: while working out the source-cleanup half I found the same path is already broken for single tabs, so I've split that out first as #14346 / #14347.

    Short version: the source window records the dragged tab's index at drag start and the drop removes whatever is at that index. If a shell exits and closes a tab while you're mid-drag, the drop closes the wrong tab. That's on in stable today for single-tab drags.

    It matters here because a group transfer removes several source tabs at once, so the same index-based cleanup gets worse at higher arity, and I'd rather not build the group path on top of it. The group work continues on top of that fix.

  9. 2solarmax commented on Aug 18, 2026

    @2solarmax

    There is a complete implementation of this in #14415 — single-drag and whole-group cross-window moves, horizontal and vertical tab bars, put-back to the source, preview-window detach, and 10 integration tests covering detach/attach/reorder/whole-window paths. Screenshots of the working feature in a real build: mid-drag, after drop.

    It has the green light from Oz's technical pass (0 criticals, 0 suggestions), but sits at CHANGES_REQUESTED because one earlier finding had already been fixed when that review ran — the fix landed in 4e28d4c, before the review that repeated it. If a maintainer has a moment: @oss-maintainers, the re-review request on #14415 has been ready since July 28. The bot draft #14164 implementing this has been idle since July 22, and per the guidelines "the best implementation wins" — happy to iterate on whatever review feedback comes.

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

Metadata

Metadata

Labels

area:window-tabs-panesauto-implementenhancementready-to-implementrepro:hightriagedwarp:auto-triage-review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions