Auto-collapse

Automatically collapse other tab groups when you expand one — keep your workspace focused without manual tidying.

Overview #

Auto-collapse watches for tab group expansions and collapses competing groups automatically. The feature ships in two tiers: a same-window mode available to all users and a cross-window mode for Premium subscribers.

Both settings are off by default. You must opt in via SettingsTAB GROUPS. Each toggle starts disabled; you must turn it on manually.

The settings are global toggles — they apply across all profiles and all windows. There is no profile-specific auto-collapse override.

How it works #

When auto-collapse is enabled, Takt listens for tabGroups.onUpdated events. Whenever a group transitions to expanded (collapsed: false) and it is the only expanded group in its window, Takt collapses all other groups in the same window. The predicate is stateless — no suppression flag is stored. This means:

Cross-window auto-collapse is triggered by tabs.onActivated events instead. When you switch to a tab in window A, Takt collapses all tab groups in every other open window after a debounce of 300 ms (DEBOUNCE_MS = 300 in src/shared/constants.js). The debounce prevents thrashing when switching tabs in quick succession.

Free vs Premium #

Premium Auto-collapse has two independent toggles, each controlling a different scope.

Tier Same-window collapse Cross-window collapse
Free ✓ (opt-in)
Premium ✓ (opt-in) ✓ (opt-in)

Enable same-window auto-collapse in SettingsTAB GROUPS → "Auto-collapse other groups when one expands".

Enable cross-window auto-collapse in SettingsTAB GROUPS → "Also collapse groups in other windows" (this toggle is disabled and labelled Premium for free users).

The two settings are independent. A Premium subscriber with only same-window enabled gets same-window behavior only — enabling the Premium toggle is a separate opt-in.

Edge cases and gotchas #