When I run a browser agent, I log every action to a local SQLite file before it happens. If a run fails halfway through, the log tells me exactly where it stopped and whether the action actually completed. That makes retrying safe without accidentally doing the same thing twice.