From f6bc346663ae8db32489d098190dda8bcc23cac4 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 1 Mar 2026 22:27:56 -0500 Subject: [PATCH] Fix remote parallel worktree path to mirror host structure Replace hardcoded /home/daytona/workspace/.arc-parallel path with {working_directory}/.arc/logs/{run_id}/parallel/{node_id}/{branch_key}, matching the host worktree layout and scoping worktrees per-run. Co-Authored-By: Claude Opus 4.6 --- crates/arc-workflows/src/handler/parallel.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/arc-workflows/src/handler/parallel.rs b/crates/arc-workflows/src/handler/parallel.rs index 71d5315e0..0b12d8bfe 100644 --- a/crates/arc-workflows/src/handler/parallel.rs +++ b/crates/arc-workflows/src/handler/parallel.rs @@ -312,8 +312,11 @@ impl Handler for ParallelHandler { } GitCheckpointMode::Remote(_) => { let wt_path_str = format!( - "/home/daytona/workspace/.arc-parallel/{}/{}", - node.id, branch_key + "{}/.arc/logs/{}/parallel/{}/{}", + services.execution_env.working_directory(), + gs.run_id, + node.id, + branch_key ); let ok = crate::engine::git_create_branch_at_remote( &*services.execution_env,