Skip to content

CheckpointList

Stable

A list of earlier steps you can go back to, with restore and summarize buttons and a confirm step.

Also known as checkpoints, restore points, snapshots

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Rewind list

  1. Make the upload try again if it fails

    2 min ago · 2 files changed

    Current
  2. Split the settings form into sections

    14 min ago · 5 files changed

  3. Set up the project

    1 hr ago · 0 files changed

Changes made outside the assistant are not tracked.

In this demo, restoring moves the marker to the chosen step. A step with no changed files cannot use Restore work only.

When to use it

Lets people go back to an earlier step of their work or chat. Restores ask for confirmation inside the row, so people see what they are about to undo.

Made of: Request · Time and file count · Current marker · Rewind button · Choices · Confirm step · Note about what is not covered

Use it for

  • An agent or coding session where each request changes files.
  • Undoing the conversation, the work, or both, back to one request.
  • Shortening a long chat from one point with Summarize from here.

Not for

Do and avoid

  1. Add a tip line to the invoice

    2 min ago · 1 file changed

    Current
  2. Round totals to two decimals

    10 min ago · 2 files changed

  3. Make the invoice template

    25 min ago · 3 files changed

Do. Each earlier step can be restored, with a check before anything is undone.
  • Add a tip line to the invoice
  • Round totals to two decimals
  • Make the invoice template
Avoid. Restoring in one press, with no check, undoes work by surprise.

Do

  • Keep the confirm step in the row so the person sees what they are acting on.
  • Show the file count so people see what a restore will change.
  • Fill in the limitations note when some changes are not tracked, so people know before they restore.

Avoid

  • Do not skip the confirm step for the restores.
  • Do not use a pop-up window for the confirmation.
  • Do not offer choices on the current step. There is nothing to restore.

On a phone

  • Each row shows the prompt on one line and cuts it off with an ellipsis. The full text is in a title attribute, which a touch screen does not show, so on a phone it is not available.
  • Rewind opens the restore choices under the row; they wrap, and every button has a 44px tap area on a touch screen.
  • The confirm text and its warning wrap, so the destructive step stays readable on a narrow screen.

Seen in products

  • Claude Code creates a checkpoint at every prompt and retains 100. Esc Esc or /rewind opens a list of prompts with the actions Restore code and conversation, Restore conversation, Restore code, Summarize from here, Summarize up to here and Never mind.
  • In Claude Code the restored prompt returns to the input field and a Summarized conversation marker appears in the transcript.
  • Claude Code does not track Bash and subagent edits, and it skips symlinks with a warning.
  • Cursor lets people click a checkpoint in the chat timeline to preview files and then restore.
  • Windsurf has named snapshots and its reverts are irreversible. Replit can roll back to any savepoint.
  • Vercel AI Elements ships a Checkpoint component.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started