diff --git a/src/features/boulder-state/storage.ts b/src/features/boulder-state/storage.ts index 2b0d1bdec..f1dccf5b3 100644 --- a/src/features/boulder-state/storage.ts +++ b/src/features/boulder-state/storage.ts @@ -150,7 +150,8 @@ export function getPlanName(planPath: string): string { export function createBoulderState( planPath: string, sessionId: string, - agent?: string + agent?: string, + worktreePath?: string, ): BoulderState { return { active_plan: planPath, @@ -158,5 +159,6 @@ export function createBoulderState( session_ids: [sessionId], plan_name: getPlanName(planPath), ...(agent !== undefined ? { agent } : {}), + ...(worktreePath !== undefined ? { worktree_path: worktreePath } : {}), } } diff --git a/src/features/boulder-state/types.ts b/src/features/boulder-state/types.ts index f56dcdaa2..b1a225380 100644 --- a/src/features/boulder-state/types.ts +++ b/src/features/boulder-state/types.ts @@ -16,6 +16,8 @@ export interface BoulderState { plan_name: string /** Agent type to use when resuming (e.g., 'atlas') */ agent?: string + /** Absolute path to the git worktree root where work happens */ + worktree_path?: string } export interface PlanProgress {