# Track the selected tab for every tab kind, not just providers · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/75f02fb95bfecbc9f2573c467496ce956278f4a3)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 75f02fb95bfecbc9f2573c467496ce956278f4a3

Requested commit: 75f02fb95bfecbc9f2573c467496ce956278f4a3

Commit: 75f02fb95bfecbc9f2573c467496ce956278f4a3

Tree: 4661ddc21dd0caf641bc32981404a093687d3dbf

Author: Simone

Committer: Simone

## Message

```
Track the selected tab for every tab kind, not just providers

Only provider delegates populated selectedTab, so activating Overview,
Usage & Spend or Sessions left it pointing at the provider tab that had
just been deselected. A later resize or tab-width change then scrolled
that stale provider back into view, hiding the tab the user had actually
picked.

Route selection through one claimSelectedTab(item, isSelected) on the
strip: a tab claims the slot when it becomes selected and releases it
when it stops being selected. Overview, the global tabs and the provider
tabs all report through it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

```

## Parents

- [c5a30472de9e21e2ef7c64728a9df16dfbc15893](https://git.cafe/lucenx/codexbar-plasma/commit/c5a30472de9e21e2ef7c64728a9df16dfbc15893?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/75f02fb95bfecbc9f2573c467496ce956278f4a3?format=markdown)
