# fix\(panel\): normalize stored provider IDs when toggling selection \(\#265\) · lucenx/codexbar-plasma

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

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

Visibility: public

Requested revision: a72e4abd71e5839e645af48c817047c9722b1b96

Requested commit: a72e4abd71e5839e645af48c817047c9722b1b96

Commit: a72e4abd71e5839e645af48c817047c9722b1b96

Tree: abd2958d32a1ce64bebc7f94e18d4cc1e52fac86

Author: Simone

Committer: GitHub

## Message

```
fix(panel): normalize stored provider IDs when toggling selection (#265)

PanelProviders.toggledSelection built its lookup from raw stored IDs, so a
stored raw CLI spelling (e.g. groqcloud) never matched its canonical key
(groq): unchecking it left a stale non-canonical entry behind and re-adding
kept the wrong order. Normalize stored IDs on the way in and when carrying
absent providers forward, mirroring OverviewProviders.

Regression coverage in tst_panel_providers mirrors the overview alias cases.
```

## Parents

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

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