Undo & snapshots

Byte-exact snapshots before agent changes, a history of every step with its diff, and a rewind that refuses to overwrite your own edits.

Agents change many files quickly. Undo makes that cheap to get wrong: before PaneScale lets an agent change your workspace on your behalf, it takes a checkpoint — shown in the app as a snapshot — and you can go back to it exactly.

When a checkpoint is taken

SituationCheckpointWhere you undo it
A turn in Agent mode or Chat with Edit accessBefore the turnRewind step under the answer
A Guided turn after you click Approve & applyBefore the editsRewind step under the answer
A card on the tasks boardBefore the runUndo in the card details
Applying an autopilot resultBefore applyingUndo apply in the report
Applying a Point & Fix changeBefore applyingUndo in the Point & Fix panel
Replace all in project searchBefore replacingUndo in the notice

Every one of them also appears in Snapshots.

Interactive terminal panes are your own sessions; isolate them with worktrees instead. Checkpoints for Agent mode and Chat belong to the Undo for agents feature in Labs, which is on by default.

Snapshots

More → Snapshots — or Snapshots in the command palette and the Workspace hub — lists every agent step that took a checkpoint, newest first: its label, age and status, plus its project when All projects is selected.

ActionWhat it does
ChangesThe files the step added, modified or deleted, each with its diff
RewindPuts every file the step changed back to how it was before — see Rewind
RestoreAfter a rewind: brings the step’s changes back

The filter at the top shows All projects or a single one. Rewind refused marks a step whose files all changed afterwards.

How checkpoints are stored

A checkpoint is a snapshot commit stored under a private ref in your repository, refs/panescale/checkpoints/<id>. It is written with a temporary index and without line-ending filters, so the stored content is byte for byte what was on disk — including files you haven’t committed yet.

Your HEAD, your index and your branches are never moved. Checkpoints don’t show up in git log of your branches and are never pushed.

When the step ends, PaneScale records a second snapshot of what the step left behind. Comparing the two tells it exactly which files the step added, changed or deleted.

Changes

Changes shows the files a step added, modified or deleted, each with its diff, so you can decide before rewinding.

Rewind

Rewind step restores the state from before the step — every file the step touched.

A rewind never overwrites your edits: for every file, PaneScale first compares what is on disk with what the step left behind. If you edited a file yourself afterwards, that file is not overwritten — it is listed as edited after this step and kept. All other files are restored, and every restored file is read back to verify it.

ResultMeaning
RewoundEvery file is back to its earlier state
Partly rewoundSome files were restored, others kept because they changed later
Rewind refusedNothing could be restored safely

The notice after a rewind says how many files were restored and how many were skipped.

Good to know

  • Checkpoints need a Git repository. In a folder without Git, agents can still work — there is just nothing to rewind to.
  • A rewind only touches the files the step changed. Your other uncommitted work stays as it is.
  • Rewinding a step doesn’t undo later steps. Rewind them in reverse order — newest first — if you want to go further back.
Something unclear or missing? Tell us — we improve these pages every week.