From bcae6d57511c0f58e3d27d7df9c6c89fe29f019f Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 2 Apr 2026 12:05:29 -0400 Subject: [PATCH] Fix main_repo_path doc comment to match actual behavior --- crates/agent_ui/src/thread_metadata_store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent_ui/src/thread_metadata_store.rs b/crates/agent_ui/src/thread_metadata_store.rs index cbc5c2ae51799955bca96efb75403eb7c4ee77ca..9add4ea97724f48be247fc0ba96f2545f9a0ed3f 100644 --- a/crates/agent_ui/src/thread_metadata_store.rs +++ b/crates/agent_ui/src/thread_metadata_store.rs @@ -157,7 +157,7 @@ pub struct ArchivedGitWorktree { pub worktree_path: PathBuf, /// Absolute path of the main repository ("main worktree") that owned this worktree. /// Used when restoring, to reattach the recreated worktree to the correct main worktree. - /// (If that dir is missing, use worktree_path as the new main worktree.) + /// If the main repo isn't found in any open workspace, restoration fails. pub main_repo_path: PathBuf, /// Branch that was checked out in the worktree at archive time. `None` if /// the worktree was in detached HEAD state, which isn't supported in Zed, but