How you undo depends on how far back you want to go: the last thing you typed, one change the AI made, or the whole draft as it stood earlier.
Undo what you just did
Press ⌘Z to take back your last edit, and press it again to keep going back. ⌘⇧Z puts it back. Replace all in Find undoes as one step.

An edit on the page, then Undo bringing back the words it replaced. Undo one AI change
While you review changes from a skill or an Agent Mode run, each change you accept or reject keeps an Undo where it was. Choose it and the change goes back up for review, with its own Accept and Reject. Once the review closes, go back with Restore instead (next step). See Review a skill's changes.
Go back to an earlier version
Open the History tab in the right sidebar and select the save point from before the change. Read it, then choose Restore to make it the current draft. The draft you leave is kept as a save point first.


The History tab: every save point in order, newest first (1). The draft-line switcher above the page (2) names the line whose history you are reading.