From b0d0b4848b2fc8a44c2575e09a08b34aaf6e1484 Mon Sep 17 00:00:00 2001 From: soryu Date: Tue, 27 Jan 2026 01:25:29 +0000 Subject: Default to shared worktree and add worktree endpoint --- makima/src/daemon/api/supervisor.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'makima/src/daemon/api/supervisor.rs') diff --git a/makima/src/daemon/api/supervisor.rs b/makima/src/daemon/api/supervisor.rs index e79a9bb..6b99de0 100644 --- a/makima/src/daemon/api/supervisor.rs +++ b/makima/src/daemon/api/supervisor.rs @@ -17,6 +17,10 @@ pub struct SpawnTaskRequest { pub parent_task_id: Option, #[serde(skip_serializing_if = "Option::is_none")] pub checkpoint_sha: Option, + /// If true, create a separate worktree for the task (requires merge after). + /// If false (default), the task shares the supervisor's worktree. + #[serde(default)] + pub use_own_worktree: bool, } #[derive(Serialize)] -- cgit v1.2.3