Some modern puzzle games (Stephen's Sausage Roll, Patrick's Parabox, A Monster's Expedition) let you "undo a reset": if you reset the puzzle and then press "undo", it will set the gamestate back to before you reset.
What was the first game with this feature?