suiss/ui ยท AI
Checkpoint
Marks a point in the conversation that you can return to, dropping every message after it.
Checkpoint is a point in the conversation you can return to. It is a Marker after a turn, with a Restore button. Restore keeps that turn and drops every message after it.
Installation
Checkpoint is built with the Marker and Button components.
Or use the suiss/ui CLI:
Usage
AI SDK
Restore replaces the thread with the messages up to and including that turn. Every later turn is removed. Send a new message to continue from there.
Write the checkpoint as a data part on the agent's turn. Send the same id again only when you mean to update that checkpoint.
Accessibility
- Name each Restore button after its checkpoint with
aria-label, such as "Restore to Button renamed", so several buttons can be told apart.
API Reference
Render a marker after the turn, with a button that restores it. Show the button only on checkpoints that have turns after them.