warp icon indicating copy to clipboard operation
warp copied to clipboard

Tab configs / warpctrl: place tabs in a named group without activating them

Open ereid7 opened this issue 2 months ago • 3 comments

Summary

There is no way to put a newly opened tab into a named tab group without driving the UI or changing which tab is active. Requesting two small, model-only additions so external tools (tab configs, warpctrl) can place tabs in groups without stealing focus.

Use case

A local orchestrator opens one tab per task via warp://tab_config/<name> and wants each tab to land in a named, colored group (e.g. "QA Lab", "PR Desk"), without changing the user's active tab, keyboard focus or foreground app.

Current gaps (master 3f37d69, installed stable 0.2026.09.02)

  • TabConfig (app/src/tab_configs/tab_config.rs) has name, title, color, panes, params with deny_unknown_fields; no group field.
  • add_tab_with_pane_layout (app/src/workspace/view.rs) inherits the active tab's group (NewTabPlacement::AfterCurrentTab) and always calls activate_tab_internal, so the new tab becomes active and focused.
  • warpctrl (crates/local_control/src/catalog.rs) has no group actions; tab.create takes only tab_type, tab.move only a direction. Targeted actions run activate_target first, which switches the visible tab.
  • warp://launch supports tab_groups but always opens a new window (open_in_active_window: false), so it cannot join existing groups.

Proposal

  1. Tab config key group = { name = "QA Lab", color = "green" }: resolve by name in the target workspace, create if missing, append the new tab to that group, and do not inherit the active tab's group.
  2. Tab config key (or ?activate=0 on warp://tab_config/...) activate = false: insert the tab without activate_tab_internal/focus_active_tab, leaving the active tab and responder unchanged.
  3. For existing tabs, warpctrl actions tab.group.set {name, color?} and tab.group.clear, targeted by explicit tab id and not routed through the activating workspace_action.

Happy to send a PR for 1 and 2 if the direction is acceptable.

ereid7 avatar Oct 02 '26 15:10 ereid7

@ereid7

Here's what I found while triaging this issue:

I confirmed this is not currently covered by the documented Tab Config or URI scheme behavior. The request is well-specified as a feature gap for programmatic grouping plus non-activating tab creation, not a crash or regression.

Maintainer details

I concluded that feature request to let Tab Configs and warpctrl place tabs into named tab groups without activating or focusing those tabs..

Triage summary

This is a feature request for programmatic tab grouping and non-activating tab creation across Tab Configs / warp://tab_config/... and warpctrl. The report is well-specified: the user wants new tabs to be inserted into a named, optionally colored group without stealing focus, plus group set/clear operations for existing tabs through local control.

Evidence

  • app/src/tab_configs/tab_config.rs currently deserializes TabConfig with deny_unknown_fields and only supports name, title, color, panes, params, and the skipped source_path, so a group or activate key would be rejected today.
  • app/src/workspace/view.rs opens a tab config via open_tab_config_with_params(...), which calls add_tab_with_pane_layout(...). That path computes insertion/group membership from the active tab and NewTabPlacement, inserts the tab, and then calls activate_tab_internal(...), which focuses the active tab.
  • app/src/uri/mod.rs handles warp://tab_config/<name> by resolving the config and dispatching workspace.open_tab_config(...); it supports new_window=true but not an activation or group query parameter.
  • crates/local_control/src/catalog.rs and crates/local_control/src/protocol.rs define tab actions and params for create, activate, move, close, rename, and color, but no group set/clear action or group parameter shape.
  • Existing launch configs support tab_groups / per-tab group indices in app/src/launch_configs/launch_config.rs, but the warp://launch/... URI path opens with open_in_active_window: false, so that mechanism does not satisfy the requested existing-window tab placement workflow.

Duplicate check

I scanned all open issues in the repository and found related but non-duplicate requests: #15252 asks for Tab Configs to create a tab group containing multiple tabs, #11545 is the broader original warpctrl/local-control feature request, and #16111 asks for additional inspection data for safe target staging. None cover the same combination of named-group placement for a newly opened single Tab Config, non-activation, and warpctrl group set/clear actions, and there are fewer than two strong duplicate candidates.

Routing

No regression, crash, data loss, or security impact is described, so high-priority escalation is not warranted. This likely needs product/API design for the exact Tab Config TOML shape, URI parameter behavior, and local-control action contract before implementation.

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

Powered by Oz

warp-for-oss[bot] avatar Oct 02 '26 15:10 warp-for-oss[bot]

+1 from a second real-world use case, and a data point on the "join an existing group" case.

Use case. I run a local launcher (a small macOS app) that opens my coding-agent sessions in Warp. I keep ~20 sessions organised in 6 named, coloured groups (e.g. "ORCHESTRATOR", "PROSPECTION", "APPS"). The launcher lets me pick which sessions to start, and it needs to put them in the right group of a window that is already open.

What I tested on stable 0.2026.10.21 (macOS):

  • warp://launch/<name> with tab_groups works well, but it always opens a new window. It can't add a group to a window that already has one.
  • warp://tab_config/<name> adds the tab to the active window, but the tab lands in the group of the active tab (always right after it). So with two groups in a window, I can't choose where a new tab goes without first clicking a tab of the target group by hand.
  • A group key in a Tab Config TOML is rejected today (deny_unknown_fields), consistent with the triage notes above.

What would solve it for me, in order of importance:

  1. group = { name = "...", color = "..." } in a Tab Config, resolved by name in the target window and created if missing, without inheriting the active tab's group (point 1 of the proposal).
  2. activate = false (or ?activate=0 on the URI), so that opening several tabs in a row doesn't keep stealing focus (point 2).

I'd be happy to test a build or a branch for this. Thanks for the triage!

Celtiore avatar Nov 06 '26 10:11 Celtiore

+1 for this feature. I'd also like to suggest extending it to Warp's URI scheme.

Tab groups are a great way to organize terminal sessions, especially when working across multiple projects. However, when opening tabs programmatically using warp://tab_config/<name>, there's currently no way to place them directly into an existing group. Having to move each new tab manually becomes repetitive.

Launch Configurations are helpful, but they create new groups rather than reuse existing ones.

A few additions that would make this much more useful:

  • Group assignment in saved Tab Configs, for example group = { name = "Development", color = "blue" }.
  • Group targeting through the URI scheme, for example warp://tab_config/<name>?group=Development.
  • Reuse existing named groups, with the option to create one if it doesn't already exist, without producing duplicates.

The non-activating insertion suggested above would also be useful, allowing new tabs to open in the background without interrupting the current workflow.

Thanks for considering this. It would make tab groups much more practical for anyone who regularly opens terminal sessions programmatically.

Khalid-Hariry avatar Nov 30 '26 05:11 Khalid-Hariry