Skip to content

Commit bf9cea6

Browse files
authored
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 ...
1 parent 7bcdb12 commit bf9cea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/agent_ui/src/agent_panel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ impl StartThreadIn {
626626
Self::LocalProject => {
627627
let suffix = project.active_repository(cx).and_then(|repo| {
628628
let repo = repo.read(cx);
629-
let work_dir = &repo.work_directory_abs_path;
629+
let work_dir = &repo.original_repo_abs_path;
630630
let visible_paths: Vec<_> = project
631631
.visible_worktrees(cx)
632632
.map(|wt| wt.read(cx).abs_path().to_path_buf())

0 commit comments

Comments
 (0)