# agent: Fix profile menu hover flicker after settings update \(\#30109\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 22ad207bafa9f11b764858203095ce028cc806d2

Requested commit: 22ad207bafa9f11b764858203095ce028cc806d2

Commit: 22ad207bafa9f11b764858203095ce028cc806d2

Tree: 79ba1226562cf40e2867256e4ac1b7d43f29b21d

Author: Finn Evers

Committer: GitHub

## Message

```
agent: Fix profile menu hover flicker after settings update (#30109)

Closes #30091
Follow-up to #29958

This PR fixes the profile menu flickering due to the documentation aside
after updating the agent dock position over the settings file.

The problem arose because the `documentation_side` could get out of sync
with the actual agent panel dock position. The `documentation_side` was
only updated whenever the user changed the agent panel position using
the UI, but not when updating the position in the settings file.

You can reproduce this easily by changing the `agent.dock` position to
the opposite site in your settings, which will make the profile menu
flicker again in some scenarios due to the de-sync.

This PR fixes this behavior by computing the position during render,
thus the actual set panel position and the documentation position can
never get out of sync

Release Notes:

- Fixed the agent profile menu flickering after updating the assistant
panel dock position in the settings.
```

## Parents

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

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