Preserve snapshot refresh seed boundaries

This commit is contained in:
Tianyi Cui
2026-07-10 01:04:06 +08:00
parent 5f7177a0a9
commit af242dbae5
2 changed files with 2 additions and 2 deletions

View File

@@ -245,7 +245,7 @@ export function refreshFixtureReplacements(logs: HarvestedLog[], fixtures: strin
function preserveFixtureVolatiles(record: Record<string, unknown>, existing: Record<string, unknown> | undefined): void {
if (existing === undefined || existing.type !== record.type) return
if (record.type === 'session') {
for (const field of ['id', 'createdAt', 'cwd', 'parentSession', 'seedLength'] as const) {
for (const field of ['id', 'createdAt', 'cwd', 'parentSession'] as const) {
if (field in record && field in existing) record[field] = existing[field]
}
return