Persist undo changes across sessions