Build and customize
Undo changes and restore a version
Undo the last change from the chat, or open Version history to go back to an earlier version of your website. Steps, limits and what to do if a restore fails.
Every time the agent changes your website, eComGear saves a restore point. If you do not like a change, you can go back. There are two ways:
| Way | Use it when |
|---|---|
| Undo this change under a reply | You want to take back one change you just saw. |
| Version history | You want to go back to an earlier version, several changes ago. |
Both restore the files of your website. They do not change your published site until you publish again.
Undo one change
- Find the reply that made the change you do not want.
- Under the reply, click Undo this change.
- Wait a moment. A message says "Rolled back" and that the project is restored to its previous state.
- Look at the preview. Your site is back.
The button disappears from that reply once you use it. It is also greyed out while the agent is working. Wait for the request to finish, or stop it first.
Restore an earlier version
- Click the clock icon in the top bar. Its tooltip is Version history. On a small screen, open More actions and choose Version history.
- A panel slides in from the right. Its title is Version History, with a number badge showing how many versions it lists.
- Read the banner at the top. It explains that each version is a restore point saved before an AI request, and how many versions are kept.
- Find the version you want. See "Read a version card" below.
- Click Restore to v3 (the number matches your version).
- The card changes. It asks: "This will overwrite all current files. Confirm?"
- Click Yes, restore to go ahead, or Cancel to stop.
- Wait. The panel says "Restoring. This can take a couple of minutes on a large project. Keep this panel open."
- When it finishes, you see "Project restored to this version. Preview is refreshing..." The panel closes and the editor reloads itself after a moment.
Read a version card
Each card shows:
| Part | Meaning |
|---|---|
| v1, v2, v3 | The version number. The newest has the highest number and a Latest badge. |
| Time | How long ago, such as "5m ago" or "2d ago". Point at it to see the exact date and time. |
| Description | What the agent did, in plain words. If it has none, your own request is shown. For a change to a part you picked with Inspect, it says "A change to the part of the page you selected". |
| "3 files written" | How many files this change created or changed. |
| "1 deleted" | How many files it removed, if any. |
| Snapshot pruned | The saved copy of this version is gone. |
Use the refresh button (Refresh) to reload the list, and the cross (Close) to close it. Close is greyed out while a restore runs.
What the list includes
- Only requests that changed files. Plans, questions and answers that changed nothing have no restore point, so they are not listed.
- A limited number of the newest versions. The banner shows the number kept.
- A new version appears automatically after every change. You do nothing to create it.
If you see "No versions yet", the agent has not changed anything. Versions are created automatically before every AI generation, so the list fills as you build.
What restoring does and does not do
| It does | It does not |
|---|---|
| Put your site's files back to that version | Change data in your database, such as orders or sign-ups |
| Refresh the preview | Change your published website. Publish or update again to put it live. See Update a site that is already live |
| Keep your later versions in the list, so you can go forward again | Remove them |
If you restore by mistake, open Version history again. The version you came from is still in the list. Restore it.
Messages you may see
| Message | What it means | What to do |
|---|---|---|
| "That version is identical to your current files, so nothing changed." | The version you picked matches what you already have. | Pick an older version. |
| "Your files were restored, but the preview could not be updated. Reload the page to see it." | The files are back. Only the preview did not refresh. | Reload the page. |
| "Restore failed" | The restore did not finish. Nothing was changed. | Try again. If it keeps failing, see Troubleshooting. |
| "Could not load your versions" | The list did not load. | Click Try again. |
| Snapshot unavailable on the button, and "This version has no restore point" | That version cannot be restored. | Pick a version just before or after it. |
| "Not authorized to roll back this version" | The version was created by a request from another person. | Ask that teammate to restore it, or pick a version you created yourself. |
| "Rollback failed" under a reply | Undo this change did not work. | Try again, or use Version history. |
Good habits
- Ask for one change at a time. Each becomes its own version, so you can go back to the exact point you want.
- Use Undo this change for the change you just made. Use Version history when you want to go further back.
- Keep the Version history panel open while a restore runs. Closing it hides the only progress you can see.
- Your code can also be saved to GitHub as a second backup. See Save your code to GitHub.