# agent_ui: Fix expand message editor button not always working \(\#41845\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cb5055aaec6ab033918a38bfd6035c765501ea23

Requested commit: cb5055aaec6ab033918a38bfd6035c765501ea23

Commit: cb5055aaec6ab033918a38bfd6035c765501ea23

Tree: 6cea959f6bebc0563f728d866cbb86d8f55d2fdb

Author: Finn Evers

Committer: GitHub

## Message

```
agent_ui: Fix expand message editor button not always working (#41845)

The button could not be clicked whenever the editor was currently not
focused. This PR fixes this and also registers the action on a more
global level, similar to how this is done for all the other agent
actions.

Release Notes:

- Fixed an issue where the `Expand message editor` button would not work
in agent threads if the message editor was not focused.
```

## Parents

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

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