# agent_ui: Fix history view losing focus when empty \(\#42374\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ed61a79cc5a28f36f65f77b16ae6369822845d73

Requested commit: ed61a79cc5a28f36f65f77b16ae6369822845d73

Commit: ed61a79cc5a28f36f65f77b16ae6369822845d73

Tree: b788fafc239f883119f0a45c3b81ed28dd18229b

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Fix history view losing focus when empty (#42374)

Closes https://github.com/zed-industries/zed/issues/42356

This PR fixes the history view losing focus by simply always displaying
the search editor. I don't think it's too weird to not have it when it's
empty, and it also ends up matching how regular pickers work.

Release Notes:

- agent: Fixed a bug where navigating the agent panel with the keyboard
wouldn't work if you visited the history view and it was empty/had no
entries.
```

## Parents

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

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