fix: fix: evolve.sh stale tmpdirs break subsequent runs (#750)
Replace `mktemp -d` with a fixed working directory `evolved/.work/` that is wiped at startup. Stale `/tmp/tmp.*` directories from killed runs can no longer interfere with batch-eval.sh path resolution. Run outputs are already preserved in `evolved/run_NNN/` before the work dir is cleaned. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
969c910b04
commit
b168a05930
1 changed files with 7 additions and 3 deletions
|
|
@ -295,11 +295,15 @@ TSX_CMD="$(find_tsx_cmd)" || fail \
|
|||
|
||||
# =============================================================================
|
||||
# Work directory — holds all candidate .push3 files across generations
|
||||
#
|
||||
# Fixed path under BASE_DIR so stale /tmp/tmp.* dirs from killed runs can
|
||||
# never interfere with a new run. Cleaned at startup; run outputs are
|
||||
# already preserved in BASE_DIR/run_NNN/ before this directory is wiped.
|
||||
# =============================================================================
|
||||
|
||||
WORK_DIR="$(mktemp -d)"
|
||||
cleanup() { rm -rf "$WORK_DIR"; }
|
||||
trap cleanup EXIT
|
||||
WORK_DIR="$BASE_DIR/.work"
|
||||
rm -rf "$WORK_DIR"
|
||||
mkdir -p "$WORK_DIR"
|
||||
|
||||
# =============================================================================
|
||||
# Log run header
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue