Undo a revert: restore the pre-revert state and the rolled-back turns.
Revert is non-destructive: this restores the session FORWARD to the pre-revert state (returned by the revert as redo_checkpoint_id), restores the document to that state while still merging any concurrent edits from other sessions (keeping both where they conflict), and un-archives exactly the chat turns the revert hid. Intended for use immediately after a revert; once a new message is sent the timeline diverges and the web app stops offering it.
Authorizations
Body
Undo a revert — restore the captured pre-revert state and the rolled-back conversation + document. Meant for use immediately after a revert (before sending a new message, which would diverge the timeline); the web app gates it to that window.
Response
Successful Response
Result of a session revert: restored document state and compose-box prefill.
Per-document (slug -> change-set) revert diff. Applying these merges the revert onto any concurrent live edits — a conflicting section is surfaced for you to resolve rather than replacing the whole document. On dry_run this is the preview; on a real revert it is what was committed.