From 9817820af1f0468402934122538f658299ff71de Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 23 May 2026 15:11:48 +0300 Subject: feat: add worktree cli and socket api --- src/app/creation.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/app/creation.rs') diff --git a/src/app/creation.rs b/src/app/creation.rs index 2bfe389b..4d91e250 100644 --- a/src/app/creation.rs +++ b/src/app/creation.rs @@ -325,6 +325,15 @@ impl App { .public_tab_id(index, ws.active_tab) .unwrap_or_else(|| format!("{}:{}", ws.id, ws.active_tab + 1)), agent_status: pane_agent_status(agg_state, seen), + worktree: ws + .worktree_space() + .map(|space| crate::api::schema::WorkspaceWorktreeInfo { + repo_key: space.key.clone(), + repo_name: space.label.clone(), + repo_root: space.repo_root.display().to_string(), + checkout_path: space.checkout_path.display().to_string(), + is_linked_worktree: space.is_linked_worktree, + }), } } } -- cgit v1.2.3