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

Anthony Eid created

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 ...

Change summary

crates/agent_ui/src/agent_panel.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/agent_ui/src/agent_panel.rs 🔗

@@ -626,7 +626,7 @@ impl StartThreadIn {
             Self::LocalProject => {
                 let suffix = project.active_repository(cx).and_then(|repo| {
                     let repo = repo.read(cx);
-                    let work_dir = &repo.work_directory_abs_path;
+                    let work_dir = &repo.original_repo_abs_path;
                     let visible_paths: Vec<_> = project
                         .visible_worktrees(cx)
                         .map(|wt| wt.read(cx).abs_path().to_path_buf())