# agent_ui: Close search when hitting escape from message editor \(\#59705\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cf93437d6a4d64c4ab1ac5c2961d14ec6d756f97

Requested commit: cf93437d6a4d64c4ab1ac5c2961d14ec6d756f97

Commit: cf93437d6a4d64c4ab1ac5c2961d14ec6d756f97

Tree: 4cc9d957e3b334372eba010397a799e32343e953

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Close search when hitting escape from message editor (#59705)

This PR makes the search-closing behavior consistent with regular
buffers, where hitting escape when focused in the message editor will
close it (before it cancels the message). Also, made the whole search
bar height match the toolbar for perfect grid alignment.

Release Notes:

- Agent: Fixed the closing behavior of the in-thread search by enabling
`escape` to close it when focused in the message editor.
```

## Parents

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

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