From 6f3252fd2ebfad6d4c49057a6390ddec8aa7c510 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 2 Apr 2026 11:19:11 -0400 Subject: [PATCH] Add doc comments to ArchivedGitWorktree fields --- crates/agent_ui/src/thread_metadata_store.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/agent_ui/src/thread_metadata_store.rs b/crates/agent_ui/src/thread_metadata_store.rs index d85c441cb2500c764e80a45ea658929a488f3072..b0e85e71f4c009811b372a89c998cea2c13cbebc 100644 --- a/crates/agent_ui/src/thread_metadata_store.rs +++ b/crates/agent_ui/src/thread_metadata_store.rs @@ -149,11 +149,19 @@ impl From<&ThreadMetadata> for acp_thread::AgentSessionInfo { /// Record of a git worktree that was archived (deleted from disk) when its last thread was archived. pub struct ArchivedGitWorktree { + /// Auto-incrementing primary key, used for the git ref name and join table. pub id: i64, + /// Absolute path where the worktree directory lived on disk before deletion. pub worktree_path: PathBuf, + /// Absolute path of the main (non-linked) repository that owns this worktree. 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 shouldn't normally happen + /// for user-created linked worktrees but is possible via the terminal. pub branch_name: Option, + /// SHA of the WIP commit that preserves the worktree's file state. pub commit_hash: String, + /// Whether this worktree has been restored by a prior unarchive. pub restored: bool, }