[FEATURE] Auto-cleanup Chrome tab groups when Claude in Chrome sessions end
Open 💬 21 comments Opened Dec 26, 2025 by asheppard47
When Claude Code sessions end, the Chrome tab groups created by "Claude in Chrome" persist indefinitely. This results in accumulated orphaned tab groups over time.
Current behavior: Each session creates a new Chrome tab group labeled "Claude" (with status icons ✅/⏳/❌) that remains after disconnect/session completion.
Problem: Over multiple sessions, these accumulate and clutter the browser tab bar (see screenshot in comments - I have 7+ orphaned groups).
Requested behavior:
- Option to auto-close/ungroup tabs when session ends normally
- Option to cleanup on session disconnect/timeout
- Or: a command to list and clean up orphaned Claude tab groups
Environment:
- macOS Sequoia
- Chrome (latest)
- Claude Code (latest)
🤖 Generated with Claude Code
21 Comments
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
re open
still occurring
This is really annoying. Multiple Claude tab groups are piling up, and no way to manage them. +1 for this feature request!
+1 on prioritizing this — it’s a pretty significant usability gap right now.
In addition to prioritization, it would be really helpful to have an option to disable or control automatic group creation. The current behavior can quickly lead to cluttered or unintuitive organization, especially in larger or iterative workflows.
A simple solution could be:
Same issue here. One thing I haven't seen mentioned: the tab group status icons (✅/⏳/❌) others reported no longer appear — orphaned groups just show grey square emojis now.
is there any stop gap solutions? seems you need to call chrome API
This Chrome extension will auto close tab groups, and it doesn't seem to break Claude. I've used it with the side panel and Claude Code terminal. So far no problems.
https://chromewebstore.google.com/detail/cfbnfkpaoldidigecaidbidijnhbgbll?utm_source=item-share-cb
Yes, this is annoying to me as well.
Super annoying - please fix this
hey folks, just use official chrome MCP https://github.com/ChromeDevTools/chrome-devtools-mcp rather than the Claude chrome extension, no problem on that one
Experiencing this in production with Nuvaus (growth automation platform built on Claude Code). Over multiple sessions, tab groups accumulate rapidly and consume significant RAM. This is a real blocker for continuous integration workflows where Claude Code runs frequently. Auto-cleanup on session end would be critical for production reliability.
any progress on this matter? Really impairs the UX when working with the extension, having previous open Tabs grouped up all the time.
Also finding it really annoying and makes me not want to use the extension unless absolutely necessary.
This is really annoying, my chrome is full of claude mcp tab groups and i have to manually remove them each time. I guess this would be an easy fix: Either create one single group and reuse, or just close the group after session ends (with a hook, and maybe with a timeout).
This is super annoying for scheduled tasks as you end up with lots of useless tab groups cluttering the browser. Please can fix it so that it is possible for it to clean up after itself. I get that you might not want it to always clean up when finished in case the user needs to inspect after a failed run. But it should at least have the ability to clean up if that is explictly part of its task.
This problem is exacerbated by using Claude Cowork which doesn't reuse it's own tab groups and just keeps spawning new ones over and over again and there's no good way to clean them out of the browser.
Facing this too. I use the Claude in Chrome integration with Claude Code (
claude --chrome) for live debugging, and every new session spins up a fresh "Claude" tab group instead of reusing the existing one. After a day of work I end up with a stack of orphaned groups that I have to right-click → "Close group" one by one.Beyond the clutter, the bigger pain is the visibility model: since only tabs inside Claude's group are visible to it, tabs I prepared in a previous session's group aren't seen by the new session, so I have to keep re-dragging tabs into the current group.
Two things that would fully solve it for me:
claudecommand to list/clean up orphaned groups)Environment:
Possibly related: #23861 and #15193.
This is a major impediment to working with Chrome-based browsers. I have to disable this and use other means that are not as good because my browser window gets overwhelming clutter from these tab groups. Hoping for a fix...
I am not sure how this got labeled a FEATURE. Are you saying it's normal behavior to do this and the 'FEATURE' is a toggle to turn it off?
We hit this from the cleanup side and ran into a hard wall worth flagging.
I built a small MV3 extension to vacuum up the leftover
Claude/Claude (MCP)tab groups. It works fine for open groups (close their tabs and Chrome removes the group). But the ones that actually pile up over a day of sessions end up as Chrome saved tab groups — the chips pinned in the bookmarks bar that have no open tabs — and those cannot be removed by any extension:chrome.tabGroups.query()does not return saved/closed groups, and there is no delete API for them (API ref).So a third-party extension genuinely can't clean these up — it has to be fixed where they're created. The practical fix is on the Claude-in-Chrome / Cowork side: reuse a single session group and/or close the group's tabs when the session ends, so Chrome never persists a saved chip in the first place. Today the only recourse is manually right-clicking each chip → Delete group, which doesn't scale when every new session spawns another group.
🤖 _This comment was written by Claude Code_
+1 — hitting this daily. My tab strip currently has ~10 orphaned "Claude" groups from past sessions.
Worth noting the cleanup can't be done from within Claude Code today: the
claude-in-chromeMCP tools (tabs_close_mcp) are scoped to the current session's own tab group, so a session can't reach groups left behind by earlier sessions, and SessionEnd/Stop hooks run shell commands that can't touch Chrome tab state. So the extension itself is the only place this can be fixed — either auto-close on clean session end or a "clean up orphaned Claude groups" action in the extension menu would cover it.🤖 Generated with Claude Code