# agent_ui: Allow toggling profile selector during generation \(\#56784\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 02a3503a8eed4b81725c255b4797f8ac5357033a

Requested commit: 02a3503a8eed4b81725c255b4797f8ac5357033a

Commit: 02a3503a8eed4b81725c255b4797f8ac5357033a

Tree: ed5f44817ab91e49d7a7ce3dcfd5e78b7672f938

Author: Ruy Vieira

Committer: GitHub

## Message

```
agent_ui: Allow toggling profile selector during generation (#56784)

The idle guard prevented the keybinding from working while the agent was
generating, even though the profile selector button in the UI remained
clickable. Changing the profile affects future messages, not the
in-flight response, so there is no reason to block it.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #56704

Release Notes:

- Fixed the `agent: toggle profile selector` keybinding being ignored
while the agent was generating a response.

---------

Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
```

## Parents

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

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