Skip to content

Support merging selected tabs - #13401

Closed
senseFy wants to merge 1 commit into
warpdotdev:masterfrom
senseFy:sensefy/merge-selected-tabs
Closed

senseFy wants to merge 1 commit into
warpdotdev:masterfrom
senseFy:sensefy/merge-selected-tabs

Conversation

@senseFy

@senseFy senseFy commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a Merge selected tabs action to the multi-tab context menu. When multiple tabs are selected, Warp can merge the source tabs into the first selected tab by moving each selected source tab's visible terminal panes into the destination pane group and then removing the emptied source tabs.

This intentionally keeps the first implementation narrow:

  • available from the selected-tabs context menu
  • destination is the first selected tab by tab order
  • only tabs whose panes are all visible terminal panes are eligible
  • source panes are appended to the right of the destination tab
  • source tabs are removed after their panes are moved

Closes #8959.

Linked Issue

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Testing

Automated:

  • ./script/format --check
  • ./script/check_no_inline_test_modules
  • cargo clippy --workspace --exclude warp_completer --all-targets --tests -- -D warnings
  • cargo clippy -p warp_completer --all-targets --tests -- -D warnings
  • ./script/run-clang-format.py -r --extensions 'c,h,cpp,m' ./crates/warpui/src/ ./app/src/
  • find . -name "*.wgsl" -exec wgslfmt --check {} +
  • cargo nextest run -p warp -E 'test(test_merge_selected_tabs)'
  • cargo nextest run -p warp_completer --features v2
  • cargo test --doc
  • git diff --check

Attempted:

  • ./script/presubmit

./script/presubmit passed formatting, linting, clang-format, and wgslfmt, then reached the full workspace nextest run. The workspace nextest run executed 8552 tests: 8547 passed, 4 failed, and 1 timed out. The remaining failures were SSH/GCP integration tests that require access to Warp's warp-ssh-integration-testing GCP project and failed locally with gcloud IAP tunnel error 4033: not authorized. GitHub CI excludes these SSH/GCP tests for fork PRs.

Manual:

  • I have manually tested my changes locally with ./script/run
  • Manually tested in a freshly bundled WarpOss.app opened from target/debug/bundle/osx/WarpOss.app.
  • Verified locally in a freshly bundled WarpOss.app that selected vertical tabs can be merged from the tab context menu.

Screenshots / Videos

merge-selected-tabs-demo.mp4

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-IMPROVEMENT: Add a context menu action to merge selected tabs into a split pane.

@cla-bot

cla-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: fengyangsen.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email [email protected]
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label Jul 6, 2026
@senseFy senseFy changed the title Add Merge selected tabs action Support merging selected tabs Jul 6, 2026
@senseFy
senseFy force-pushed the sensefy/merge-selected-tabs branch from afd4b98 to 9215516 Compare July 6, 2026 09:21
@cla-bot cla-bot Bot added the cla-signed label Jul 6, 2026
@senseFy
senseFy marked this pull request as ready for review July 6, 2026 09:29
@warp-for-oss

warp-for-oss Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

@senseFy

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @vkodithala.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@warp-for-oss warp-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR adds a selected-tab merge action that moves eligible visible terminal panes from selected source tabs into the first selected tab, wires the action into the multi-tab context menu, and adds workspace-level tests for pane ordering and destination selection.

Concerns

  • No blocking correctness, security, or spec-alignment concerns found in the annotated diff.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@warp-for-oss
warp-for-oss Bot requested a review from vkodithala July 6, 2026 09:33
@vkodithala

Copy link
Copy Markdown
Contributor

Hey @senseFy, thanks so much for the contribution. This implementation roughly makes sense, and I appreciate the recording. Posted a clarification back to the original issue and re-marked needs-info: #8959 (comment), would love for you to chime in here.

Mainly I'm unsure of whether it's worth implementing a bespoke solution to the "merge tabs" case when the same can roughly be achieved by dragging panes from one tab into another. Would like a little more color on the user story where this is relevant :) thanks and apologies for the back-and-forth here!

@vkodithala vkodithala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to re-request review once you've chimed in to the thread here with some justification on the user story here!

@senseFy

senseFy commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor Author

@vkodithala Added more context on the user story and vertical-tabs drag limitations in the issue thread: #8959 (comment)

@github-actions

Copy link
Copy Markdown
Contributor

Hi @senseFy — a reviewer requested changes on this PR and it hasn't had activity from you in 7 days. When you get a chance, please push updates or reply to the review so a reviewer can take another look. Without activity, this PR will be automatically closed after 14 days of inactivity.

@senseFy

senseFy commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@vkodithala I added the requested user-story context in #8959, including why the selected-tabs action complements the existing drag workflow. I do not have permission to formally re-request review from the fork, but would appreciate a follow-up when you have a chance.

@github-actions

Copy link
Copy Markdown
Contributor

Hi @senseFy — a reviewer requested changes on this PR and it hasn't had activity from you in 7 days. When you get a chance, please push updates or reply to the review so a reviewer can take another look. Without activity, this PR will be automatically closed after 14 days of inactivity.

@senseFy
senseFy force-pushed the sensefy/merge-selected-tabs branch from 9215516 to 03b42f5 Compare July 23, 2026 13:03
@senseFy

senseFy commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

/oz-review

@warp-for-oss

warp-for-oss Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

@senseFy

Every PR must be linked to a same-repo issue before Oz can review it.

This PR is linked to #8959, but no linked issue is marked ready-to-implement yet. Only repository maintainers apply that label, so please wait for a maintainer to mark the issue. Once it is marked, push a new commit or comment /oz-review to re-trigger review.

See the contribution guidelines for the full readiness model.

Powered by Oz

@warp-for-oss warp-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@senseFy

Every PR must be linked to a same-repo issue before Oz can review it.

This PR is linked to #8959, but no linked issue is marked ready-to-implement yet. Only repository maintainers apply that label, so please wait for a maintainer to mark the issue. Once it is marked, push a new commit or comment /oz-review to re-trigger review.

See the contribution guidelines for the full readiness model.

Powered by Oz

@senseFy

senseFy commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor Author

@oss-maintainers This PR has been rebased onto the latest master and is mergeable. Formatting, all current presubmit clippy commands, and the focused merge-selected-tabs tests pass.

I added the requested user-story context in #8959, but Oz is now blocked because the issue no longer has the ready-to-implement label. Could someone re-evaluate the issue readiness and, if the direction is acceptable, restore the label or route this to another reviewer?

@github-actions

Copy link
Copy Markdown
Contributor

Hi @senseFy — a reviewer requested changes on this PR and it hasn't had activity from you in 7 days. When you get a chance, please push updates or reply to the review so a reviewer can take another look. Without activity, this PR will be automatically closed after 14 days of inactivity.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Hi @senseFy — final reminder: a reviewer requested changes on this PR and it has been inactive for 11 days. It will be automatically closed in about 3 day(s) unless you push updates or reply. Maintainers can apply the no-autoclose label to keep it open.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because the requested changes have gone unaddressed for over 14 days. If you'd like to continue, push your updates and reopen the PR (or comment to ask a maintainer to reopen) — we'd be glad to pick it back up.

@github-actions github-actions Bot closed this Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow merging existing tabs into split pane

2 participants