Skip to content

Keep collapsed tab groups collapsed when opening a launch config - #54

Open
zhixinwuu wants to merge 1 commit into
warpdotdev:masterfrom
zhixinwuu:zhixinwuu/launch-config-collapsed-groups
Open

zhixinwuu wants to merge 1 commit into
warpdotdev:masterfrom
zhixinwuu:zhixinwuu/launch-config-collapsed-groups

Conversation

@zhixinwuu

@zhixinwuu zhixinwuu commented Nov 9, 2026 •

Copy link
Copy Markdown

Description

Closes #53

Launch configs save whether each tab group is collapsed, and opening one creates the group with that value. The tabs are then added one at a time, though, and with the default "new tab after current tab" setting each new tab joins the previous tab's group. Joining a group expands it, so a collapsed group with two or more tabs opens expanded.

The same thing can happen to a group that was already in the window. If the active tab is in a collapsed group and a launch config is opened into that window, the first new tab joins that group for a moment and expands it before it gets its real group.

I note which groups are collapsed before the tabs are added and collapse them again afterward. I didn't change how new tabs join groups, since expanding the group is what someone wants when they open a tab by hand. This is the same kind of bug as #16 (session restore), but in a different code path, so fixing that one doesn't fix this.

This does change one case. If the config's active tab is inside a collapsed group, the group now stays collapsed with that tab active. Session restore does the same once #13 is in.

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

I added two unit tests. One opens a launch config with a collapsed two-tab group and checks the group is still collapsed. The other collapses a group that holds the active tab, opens a launch config into the same window and checks that group stays collapsed. Both fail on master and pass with this change. The other workspace tests, clippy on the warp crate and the format check pass too.

For the screenshots I opened a launch config with a collapsed group in a new window through the integration test runner with a real display, once on master and once with this change.

  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

Before (master), the group opens expanded:

before

After, it opens collapsed:

after

Agent Mode

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

CHANGELOG-BUG-FIX: Tab groups saved as collapsed in a launch config now open collapsed.

Opening a launch config adds its tabs one at a time, and each tab that
joins a group expands it. Groups saved as collapsed came back expanded,
and a collapsed group holding the active tab could expand too. Remember
which groups are collapsed before adding the tabs and collapse them
again afterward.
@warp-factories

warp-factories Bot commented Nov 9, 2026

Copy link
Copy Markdown

@zhixinwuu, your GitHub account is not connected to Warp. Connect your GitHub account, then retry GitHub PR opened from warp-terminal-factory.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collapsed tab groups open expanded from a launch config

1 participant