Skip to content

agent_ui: Fix regression that made edited files unclickable#48362

Merged
danilo-leal merged 2 commits intomainfrom
fix-ag-clickable-edited-files
Feb 4, 2026
Merged

agent_ui: Fix regression that made edited files unclickable#48362
danilo-leal merged 2 commits intomainfrom
fix-ag-clickable-edited-files

Conversation

@danilo-leal
Copy link
Member

There was a when() condition here looking at hovered_edited_file_buttons, which is never turned to true when hovering over the edited file button, and given we started to pass the hover styles, tooltip, and on_click handler inside the condition, they would never work. The solution here is to make these three things unconditional, so edited files are always clickable.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 4, 2026
@danilo-leal danilo-leal merged commit e54480b into main Feb 4, 2026
27 checks passed
@danilo-leal danilo-leal deleted the fix-ag-clickable-edited-files branch February 4, 2026 14:04
adb-sh pushed a commit to adb-sh/zed that referenced this pull request Feb 5, 2026
…stries#48362)

There was a `when()` condition here looking at
`hovered_edited_file_buttons`, which is never turned to true when
hovering over the edited file button, and given we started to pass the
hover styles, tooltip, and on_click handler inside the condition, they
would never work. The solution here is to make these three things
unconditional, so edited files are always clickable.

Release Notes:

- N/A
rtfeldman pushed a commit that referenced this pull request Feb 5, 2026
There was a `when()` condition here looking at
`hovered_edited_file_buttons`, which is never turned to true when
hovering over the edited file button, and given we started to pass the
hover styles, tooltip, and on_click handler inside the condition, they
would never work. The solution here is to make these three things
unconditional, so edited files are always clickable.

Release Notes:

- N/A
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