# agent_ui: Fix profile selector not repainting after cycling with Shift\+Tab \(\#53126\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/77ee72e665da02d33ca661d97fc58b1c97d81ca2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 77ee72e665da02d33ca661d97fc58b1c97d81ca2

Requested commit: 77ee72e665da02d33ca661d97fc58b1c97d81ca2

Commit: 77ee72e665da02d33ca661d97fc58b1c97d81ca2

Tree: b26b3968e81afb82ca16e6378027d3d7639dca2b

Author: K4YT3X

Committer: GitHub

## Message

```
agent_ui: Fix profile selector not repainting after cycling with Shift+Tab (#53126)

Currently, when pressing Shift+Tab to change Zed Agent's profile, the UI
isn't immediately updated. This PR fixes this issue so the `Change
Profile` button updates immediately after pressing Shift+Tab.

The current behavior. Observe that the `Change Profile` button doesn't
update right after Shift+Tab changes the active profile:


https://github.com/user-attachments/assets/fa1e6488-0dc3-4cc9-a4f3-7f62da48cc19

After this fix, the button text is update immediately on profile change:


https://github.com/user-attachments/assets/93261b11-037a-42c9-b1b8-0ca1e1adb851

---

Release Notes:

- Fixed Zed Agent profile selector button not visually updating when
cycled with Shift+Tab.

Signed-off-by: k4yt3x <i@k4yt3x.com>
```

## Parents

- [5375ca0ae27bf11713cf319358ac289db16cc749](https://git.cafe/gitcafe/zed/commit/5375ca0ae27bf11713cf319358ac289db16cc749?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/77ee72e665da02d33ca661d97fc58b1c97d81ca2?format=markdown)
