fix: preserve upgrade runner logs

This commit is contained in:
Codex
2026-05-09 07:55:12 +00:00
parent 8ae0f57488
commit e072f219e4

View File

@@ -271,7 +271,7 @@ function updateState(patch) {
...state, ...state,
...patch, ...patch,
updatedAt: new Date().toISOString(), updatedAt: new Date().toISOString(),
logs: state.logs || [], logs: patch.logs || state.logs || [],
}; };
ensureDir(path.dirname(stateFile)); ensureDir(path.dirname(stateFile));
const tempFile = `${stateFile}.tmp`; const tempFile = `${stateFile}.tmp`;