All guides

Verify and Restore a Change with Replit Checkpoints

After a bad change, find the right checkpoint in the Agent tab, check the description and database option, roll back, verify, and roll forward if needed.

AINavWritten / Updated Sources checked
On this page

At a glance

This tutorial covers the case where Agent made a change, the result is worse than before, and you want the project back in an earlier working state. The official documentation says Agent automatically creates checkpoints at key milestones, capturing a snapshot of project files, conversation context, environment configuration and database contents, and a rollback can restore any of them. Confirm the scope before you roll back, especially because the database is not changed by default.

Workflow

  1. Locate layer

    Use checkpoint descriptions and timestamps to find the last good point before the problem appeared.

  2. Scope layer

    A rollback removes every change made after that point, including code edits. The database stays as is unless you opt in to restoring the development database.

  3. Verify layer

    After rolling back, check files and Agent context against the selected checkpoint. If Database was selected, check that the development database was restored too; otherwise verify that its current contents were preserved. Then decide whether to continue or roll forward.

Each stage cites official sources.

Before you start

  • The project already has checkpoints created by Agent, and you can open the Agent tab in the Project Editor.
  • You can say which feature used to work and what is wrong now, so you can choose the target checkpoint.
  • You know whether you also need the development database restored; the production database is not restored automatically by this feature.

1. Write down the problem and expected state

Note which page or feature is broken and how it behaved when it last worked. For example, in a fictional reading-club list project the read marker stopped working after a change. Use this note to compare against checkpoint descriptions.

2. Open the Agent tab and list checkpoints

In the Project Editor open the Agent tab to see the checkpoints Agent created, each with a description, timestamp and change scope. You can also click the history icon in Agent chat for the full timeline.

3. Pick the target checkpoint

Read the descriptions and choose the one before the problem, ideally described as a completed or validated feature. If unsure, preview it where your interface supports it. The docs say only some interfaces do, and a preview does not roll back.

4. Decide about the development database

Decide whether the development database needs restoration and record that decision before touching the UI option. Rollback leaves the database unchanged by default. Preserve existing data for a code-only issue; for a database issue, prepare to inspect the Database option. Handle production databases using the separate point-in-time recovery documentation.

5. Choose Rollback to here and read the warning

Select Rollback to here on the target checkpoint, review the warning and available Additional rollback options, set Database according to the recorded decision, and then confirm. Later changes are removed; coordinate with collaborators first.

6. Verify the restoration

After rolling back, check files and Agent context against the selected checkpoint. If Database was selected, check that the development database was restored too; otherwise verify that its current contents were preserved. Then open the app and repeat the action that failed to check whether it works again. Save a restoration record: checkpoint description and timestamp, rollback reason, Database choice, file/context/database verification findings, failed-action retest result and final status. Leave recovery incomplete if a required check fails.

7. Roll forward or stop

If you went back too far, open the history view in Agent chat and select a later checkpoint to roll forward. If you make new changes after a rollback, the later checkpoints become an alternate branch and may not be reachable. When the state is right, stop.

Original example

Fictional scenario: you asked Agent to add filtering by recommender to the book list, and now marking a book as read no longer saves. Your note says the earlier checkpoint was described as completing the read marker and the next one as adding the filter. In the Agent tab you pick the earlier one. The few sample books in the database are intact, so first record the decision to retain the database, select Rollback to here, review the warning and Additional rollback options, leave Database unselected, and then confirm. Afterward you open the app, mark Sample Book One as read, refresh, and the state persists; the files no longer contain the filter changes. You then ask Agent for the filter again in a smaller request. Save a restoration record: checkpoint description and timestamp, rollback reason, Database choice, file/context/database verification findings, failed-action retest result and final status. Leave recovery incomplete if a required check fails.

Completion checks

  • The target checkpoint's description and timestamp match the last good state.
  • You made an explicit choice about including Database rather than trusting a guess.
  • The failing action works again after the rollback.
  • After the rollback, files and Agent context match the selected checkpoint; the development database is restored if Database was selected, and its current contents are preserved if not.
  • If you rolled forward, the target was after your position and you had made no new changes since the rollback.
  • Save a restoration record: checkpoint description and timestamp, rollback reason, Database choice, file/context/database verification findings, failed-action retest result and final status. Leave recovery incomplete if a required check fails.

Limits

  • A rollback removes all changes after the chosen point, including code edits, so it is lossy; check the scope first.
  • The database is not restored by default, and the production database is not restored automatically by this feature.
  • Rollbacks do not replace long-term version tracking; the docs suggest manual Git commits alongside them.
  • Only some interfaces support previews. The source also describes cross-session history for advanced builders and team administrators, and cross-user-session rollback controls for administrators; check the actual entry points and permissions for the current project.

Verification scope

Based only on reading the official documentation. Login, installation, product API execution, file upload and generated output were not tested; actual interface details may differ, and the scenario is a fictional illustration.

Article sources

Original editorial content; official descriptions and checking suggestions are distinguished.

  1. Replit Agent · Official sources
    View details