# agent_panel: Fix bug where worktree picker showed linked tree as main \(\#53334\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bf9cea6bd6e99d5d9839cfad5878575057633ca6

Requested commit: bf9cea6bd6e99d5d9839cfad5878575057633ca6

Commit: bf9cea6bd6e99d5d9839cfad5878575057633ca6

Tree: 2e2e7946797800bd83ba89fa60ced56b30febb9f

Author: Anthony Eid

Committer: GitHub

## Message

```
agent_panel: Fix bug where worktree picker showed linked tree as main (#53334)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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