From bf9cea6bd6e99d5d9839cfad5878575057633ca6 Mon Sep 17 00:00:00 2001 From: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> Date: Tue, 7 Apr 2026 20:35:33 -0400 Subject: [PATCH] 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 ... --- crates/agent_ui/src/agent_panel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index c157fbb30925d2a49c72438e3b3bff62a987b175..5efa51739ccccce23bb9835b8ee99d644af60e9e 100644 --- a/crates/agent_ui/src/agent_panel.rs +++ b/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())