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 <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-01 22:27:56 -05:00
parent ae72cd059d
commit f6bc346663

View file

@ -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,