# agent: Show delete thread icon buttons on hover/focus \(\#30370\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 00292450e06f2caa3a3749dcf399cd85c6b6c3e7

Requested commit: 00292450e06f2caa3a3749dcf399cd85c6b6c3e7

Commit: 00292450e06f2caa3a3749dcf399cd85c6b6c3e7

Tree: 28898245b05bceddc8c2c644bf00d27461a0a163

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Show delete thread icon buttons on hover/focus (#30370)

This PR's main goal is to show the delete thread button when the list
item is either focused or hovered. In order to do that, we ended up
refactoring (i.e., merging) the `PastThread` and `PastContext` elements
into a single `HistoryElementEntry` that already matches to the entry
type (i.e., context or thread).

Release Notes:

- agent: Simplify the UI by showing the delete thread icon button only
on hover or focus.

---------

Co-authored-by: Agus Zubiaga <hi@aguz.me>
```

## Parents

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

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