Skip to content

gpui: Fix bug on on_hover callbacks (#46371) (cherry-pick to stable)#46831

Merged
zed-zippy[bot] merged 1 commit intov0.219.xfrom
cherry-pick-v0.219.x-f18b288f
Jan 14, 2026
Merged

gpui: Fix bug on on_hover callbacks (#46371) (cherry-pick to stable)#46831
zed-zippy[bot] merged 1 commit intov0.219.xfrom
cherry-pick-v0.219.x-f18b288f

Conversation

@zed-zippy
Copy link
Contributor

@zed-zippy zed-zippy bot commented Jan 14, 2026

Cherry-pick of #46371 to stable


Tackling this as I noticed a bug in the agent panel where the button to
delete a thread, which appeared only on hover, stopped showing up. PRs
#43324 and #45437 fixed stuff in applying hover styles through
.hover() but broke the .on_hover() callback. Problem was that both
methods were sharing the same element_state.hover_state but running at
different phases. The solution here was to add a new independent state
field for the hover listener (hover_listener_state) while the hover
style method keeps using hover_state.

Release Notes:

  • Agent: Fixed a bug where the button to delete a thread stopped showing
    up.

Tackling this as I noticed a bug in the agent panel where the button to
delete a thread, which appeared only on hover, stopped showing up. PRs
#43324 and #45437 fixed stuff in applying hover styles through
`.hover()` but broke the `.on_hover()` callback. Problem was that both
methods were sharing the same `element_state.hover_state` but running at
different phases. The solution here was to add a new independent state
field for the hover listener (`hover_listener_state`) while the hover
style method keeps using `hover_state`.

Release Notes:

- Agent: Fixed a bug where the button to delete a thread stopped showing
up.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 14, 2026
@zed-zippy zed-zippy bot merged commit d136bb0 into v0.219.x Jan 14, 2026
24 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.219.x-f18b288f branch January 14, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant