Documentation / Projects and Collaboration

Version History & Rollback

Go back to an earlier version of your design with Undo, the chat, local history or Workspaces history.

The Trace app gives you several ways back to an earlier version of your design. Pick the one that matches how far back you need to go.

You want to undoUse
Your last few edits in the editorUndo in the schematic or board editor (Cmd+Z on Mac, Ctrl+Z on Windows and Linux).
What the assistant did after one of your messagesUndo to this point on that message in the chat.
A layout runRevert to pre-layout on the layout run's card. See Placement and routing.
Changes from earlier today or last weekLocal history on this computer.
A version your team pushedThe History tab in Workspaces.

This page covers the Trace app. In the Trace Plugin, use your design tool's own undo and backups; see Trace Plugin for KiCad, Trace Plugin for Altium and Trace Plugin for Autodesk Fusion.

Local history

Local history keeps earlier versions of your whole project on this computer. It works offline and doesn't need an account.

What it keeps

Trace records a version of the project:

  • when you save;
  • when Trace autosaves;
  • when you close the project;
  • before the assistant changes a design file.

Each version holds the project's design files, including each sheet's .trace_sch.xo drawing file, and the project settings. Versions are kept in a hidden .history folder in the project, or in your Trace user data folder if you choose that location. Local history is not shared through Workspaces and doesn't leave your computer.

Turn it on or change it

Local history is on for new installs. To check it, open Preferences > Common and look under Project Backup:

  • Automatically backup projects must be on.
  • Format must be Incremental. Zip archive makes zip copies when you save instead, and Trace stops adding to local history. You can still browse versions it already has.
  • Location is Project directory (the .history folder) or User data directory.
  • Maximum total backup size is 100 MB by default. When history grows past it, Trace removes the oldest versions when you close the project. Set it to 0 for no limit.

Restore from local history

  1. Save your work.
  2. Choose File > Restore Project from Local History....
  3. Pick a version by its time and what happened, such as a save, an autosave or an assistant edit, and press Restore.

You can also show the history as a panel with View > Panels > Local History. Right-click a version and choose Restore Commit.

Before it restores, Trace records the project as it is now, so you can go back if you picked the wrong version. If the assistant is working, Trace asks you to stop it first.

Let the assistant restore a file

New in Trace 3.2: if a schematic or board file is lost or damaged, the assistant can bring back an earlier version of that file from local history.

  1. In Agent mode, describe what happened, for example:

    The board file looks damaged since my last save. Show me the earlier
    versions in local history and restore the last good one.
    
  2. The assistant lists the versions it can find and restores the one you agree on. A schematic comes back with its drawing file.

  3. Check the restored file, then save.

Before it restores, Trace keeps the current version of the file in local history, so you can undo the restore itself: ask the assistant to put back the version from just before the restore. In Ask mode, the assistant can list versions but doesn't restore them.

Also new in Trace 3.2: the assistant can no longer wipe most of a schematic or board by mistake when it meant to add to it. It replaces a whole design only when that's the intent.

Undo the assistant's changes in chat

Each of your messages in the chat has an Undo to this point button. Press it to remove the replies after that message and put your design back to the version Trace recorded before them. Your message stays, so you can edit it and send it again.

  • Undo to this point works when the chat isn't busy. If another chat is editing the same file, wait until it finishes.
  • If the assistant didn't change the design after that message, only the chat goes back.
  • It puts back the design, not everything else the assistant did: a library it installed, a push you approved or the charge for a layout run stay as they are.

Workspaces history

For a project in Workspaces, the History tab lists every push to the branch. Select a push to see its files, then open its menu:

  • Create branch here starts a new branch from that push.
  • Restore on current branch… puts that version back on the branch you're on, as a new push. Trace asks you to confirm first.

Commits you haven't pushed don't appear in History. If a push, pull or branch switch didn't finish, see If something goes wrong, not this page.

Tips

  • Before a big change, such as a redraw, a layout run or a merge, save and check that local history has a recent version, or make your own copy of the project folder.
  • Keep each .trace_sch with its .trace_sch.xo drawing file when you copy files by hand. See Projects.
  • After any restore, run ERC and DRC before you continue.