Skip auto-closing tabs in excluded tab groups#2
Open
pajcho wants to merge 2 commits intolevelsio:mainfrom
Open
Skip auto-closing tabs in excluded tab groups#2pajcho wants to merge 2 commits intolevelsio:mainfrom
pajcho wants to merge 2 commits intolevelsio:mainfrom
Conversation
Adds a per-group exclusion list and a global "Exclude all tab groups" toggle to the Tab Cleaner page. Resolves group titles only when needed during cleanup, and refreshes the popup list live when groups are created, renamed, or removed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
b63349c to
f0c2278
Compare
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a way to exclude Chrome tab groups from the Tab Cleaner's auto-close, alongside the existing host-based exclusions. Two layered controls:
The popup also refreshes live: when a group is created, renamed, recolored, or removed (e.g. its last tab closed), the list updates without reopening the popup.
How it works
tabGroupspermission inmanifest.json.background.jsresolves group titles for any tabs in groups during cleanup (only when at least one group exclusion is configured) and skips excluded ones at the same point as the host check.excludeAllGroups,excludedGroupTitles) live inchrome.storage.localand are seeded with defaults on install.chrome.tabGroups.onCreated/onUpdated/onRemovedwhile open and re-renders the list on each event.Group exclusions are stored by title since group IDs reset on browser restart. As a side effect, untitled groups can't be excluded individually — the Exclude all toggle is the way to protect them, and the popup's empty-state message says so.
Demo
Screen.Recording.2026-04-28.at.10.03.41.mov
Test plan
chrome://extensions— it should prompt to accept the newtabGroupspermission.