diff --git a/tools/autoplay-batch.sh b/tools/autoplay-batch.sh index f48379ae..3635f66b 100755 --- a/tools/autoplay-batch.sh +++ b/tools/autoplay-batch.sh @@ -200,12 +200,13 @@ _run_remote() { echo "[seed $seed] Running via SSH on $AUTOPLAY_HOST..." - # REMOTE_HOME is resolved once upfront by the main loop and exported. + # Write remote batch artifacts OUTSIDE the dev tree to /tmp so they cannot + # trigger auto-commit divergence on the remote host's working copy. # Derive a unique remote dir from RESULTS_DIR's basename to avoid per-clan # path collisions when multiple batches run in parallel with the same STAMP. local results_basename results_basename="$(basename "$RESULTS_DIR")" - local remote_game_dir="$REMOTE_HOME/Code/@projects/@magic-civilization/.local/batches/${results_basename}/game_${STAMP}_seed${seed}" + local remote_game_dir="/tmp/@magic-civilization/builds/.local/batches/${results_basename}/game_${STAMP}_seed${seed}" local remote_runner="$REMOTE_HOME/bin/run_ap3.sh" ssh "$AUTOPLAY_HOST" "