Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

Anthony Eidbf9cea6bd6e9
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs
index c157fbb3092..5efa51739cc 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())