fix: generation_N.jsonl candidate_id format mismatch vs filenames (#669)

This commit is contained in:
openhands 2026-03-14 04:07:00 +00:00
parent 12253d6ee8
commit 0aa819f168

View file

@ -452,7 +452,8 @@ for gen in $(seq 0 $((GENERATIONS - 1))); do
CAND_IDX="${CAND_FILE##*candidate_}"
CAND_IDX="${CAND_IDX%.push3}"
CID="gen${gen}_c${CAND_IDX}"
# Canonical candidate_id format: "candidate_XXX" (matches source filename and batch-eval IDs).
CID="candidate_${CAND_IDX}"
# Read mutations_applied from sidecar; default 0 if missing.
OPS_FILE="${CAND_FILE%.push3}.ops"