Complete session-only manifest migration
This commit is contained in:
@@ -447,10 +447,9 @@ func persistPostPublishCleanupFailure(
|
||||
if sessionManifest != nil {
|
||||
sessionManifest.RecordFailure(nowUTC(), operationErr.Error())
|
||||
}
|
||||
// Do not rewrite the run manifest here: cleanup may have deliberately
|
||||
// removed the directory that contains it. The completed run record remains
|
||||
// the authoritative evidence of the remote publish; the session manifest
|
||||
// records the outstanding local cleanup for the next invocation.
|
||||
// Cleanup may have deliberately removed the selected run directory. The
|
||||
// committed remote snapshot remains authoritative, while the session
|
||||
// manifest records the outstanding local cleanup for the next invocation.
|
||||
sessionErr := sessionStore.Save(ctx, sessionManifestPath, sessionManifest)
|
||||
return errors.Join(operationErr, wrapTerminalPersistenceError("save terminal session manifest", sessionErr))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user