From 7af8561677cfdcfd23d099a25783c7fef51d1ba6 Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 29 Jan 2026 02:30:16 +0000 Subject: Fix worktree cleanup to not run for shared worktrees --- makima/src/server/handlers/mesh.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'makima/src/server/handlers/mesh.rs') diff --git a/makima/src/server/handlers/mesh.rs b/makima/src/server/handlers/mesh.rs index 0dcab91..9ef6248 100644 --- a/makima/src/server/handlers/mesh.rs +++ b/makima/src/server/handlers/mesh.rs @@ -2623,6 +2623,7 @@ pub async fn reassign_task( checkpoint_sha: task.last_checkpoint_sha.clone(), branched_from_task_id: None, conversation_history: None, + supervisor_worktree_task_id: None, // Not spawned by supervisor }; let new_task = match repository::create_task_for_owner(pool, auth.owner_id, create_req).await { @@ -3397,6 +3398,7 @@ pub async fn fork_task( checkpoint_sha: Some(checkpoint.commit_sha.clone()), branched_from_task_id: None, conversation_history: None, + supervisor_worktree_task_id: None, // Not spawned by supervisor }; let new_task = match repository::create_task_for_owner(pool, auth.owner_id, create_req).await { @@ -3555,6 +3557,7 @@ pub async fn resume_from_checkpoint( checkpoint_sha: Some(checkpoint.commit_sha.clone()), branched_from_task_id: None, conversation_history: None, + supervisor_worktree_task_id: None, // Not spawned by supervisor }; let new_task = match repository::create_task_for_owner(pool, auth.owner_id, create_req).await { @@ -3891,6 +3894,7 @@ pub async fn branch_task( checkpoint_sha: None, branched_from_task_id: Some(source_task_id), conversation_history, + supervisor_worktree_task_id: None, // Not spawned by supervisor }; let task = match repository::create_task_for_owner(pool, auth.owner_id, create_req).await { -- cgit v1.2.3