fix: avoid loop-status index snapshot collision

This commit is contained in:
Affaan Mustafa
2026-04-30 11:53:29 -04:00
committed by Affaan Mustafa
parent 7627926216
commit 2715315438
2 changed files with 38 additions and 1 deletions

View File

@@ -658,7 +658,7 @@ function writeStatusSnapshots(payload, writeDir) {
const outputDir = path.resolve(writeDir);
fs.mkdirSync(outputDir, { recursive: true });
const usedNames = new Set();
const usedNames = new Set(['index.json']);
const sessions = payload.sessions.map(session => {
const snapshotPath = getSnapshotPath(outputDir, session, usedNames);
atomicWriteJson(snapshotPath, {