Checkpoints, Undo & recovery

Experiment freely with automatic turn checkpoints, 1-click Undo, isolated Preview testing, and immutable Live rollbacks that protect real customers.

Three independent safety nets in ExaSpark

Builders hesitate to try ambitious layouts or major pricing refactors when one misstep might tangle a working app or disrupt live customers. ExaSpark removes that risk with three completely separate protection layers.

text
Layer 1: Turn Checkpoints (Preview)
  Every completed Agent turn saves an immutable code snapshot.
  → 1-click Undo restores your exact earlier workspace cleanly.
                      │
Layer 2: Preview vs Live Isolation
  Edits, test accounts, and Stripe Test checkouts run in Preview only.
  → Real visitors, live Cloud tables, and Stripe Live stay untouched.
                      │  (Explicit click on "Publish")
                      ▼
Layer 3: Immutable Live Release History
  Every published deployment creates a permanent production release.
  → 1-click Rollback restores a prior live version in seconds.

Together, these layers turn every experiment into a reversible bet. You can test bold changes in Preview, step back cleanly whenever an approach misses, and protect live revenue after launch.

What Undo reverts — and what stays intact

Knowing the exact scope of 1-click Undo prevents surprises when iterating on apps with real Cloud data and external assets.

Project layerAffected by 1-click Undo?Exact behavior
UI pages, components & stylesYes — reverted cleanlyRestores exact prior screens, tokens, and component code
Server routes, validation & rolesYes — reverted cleanlyRestores previous API handlers, checks, and role rules
Config & `PROJECT_RULES.md`Yes — reverted cleanlyReturns project configuration and rules brief to the prior snapshot
Preview Cloud test recordsPreserved separatelyTest rows stay in isolated Preview tables; edit or clear them in Cloud
Live site, users & Stripe LiveCompletely untouchedPaying customers and live Cloud tables never change until Publish
Uploaded files & GitHub commitsPreservedAttached media and pushed Official GitHub App commits remain intact

Undo vs patch forward vs Ask AI to fix

Choosing the right recovery move within ten seconds saves credits and keeps your codebase clean.

Situation after a turnBest recovery moveWhy it wins
Build, preview, or deploy error banner appearedClick Ask AI to fixFeeds the exact compiler or runtime log directly to the Agent for targeted repair
Feature is 90% right; one label or minor rule is offPatch forward (click-to-edit or short chat turn)Preserves working backend wiring and fixes the detail in seconds
Visual direction feels cluttered or wrongClick Undo, then rephrase or open Design CanvasLayering CSS fixes onto a flawed layout creates brittle overrides
Database tables or links were misunderstoodClick Undo, then state exact table and field namesClean table creation beats piling migrations onto wrong relationships
Two consecutive repair turns keep loopingClick Undo back to the last green checkpointStops fix loops immediately and protects credits before splitting the task
A bug surfaces on Live after clicking PublishTrigger 1-click Live rollback, then fix in PreviewRestores paying users in seconds so you can debug calmly without pressure

Recovering cleanly from a dead-end turn

When an ambitious turn introduces overlapping bugs or takes an unexpected path, follow this five-step reset routine instead of pushing deeper into a tangle.

  1. Stop patching after two misses

    If two focused follow-ups fail to resolve a regression, stop stacking corrective turns onto unstable code.

  2. Click Undo to your last green checkpoint

    Step back to the most recent turn where Preview rendered cleanly and primary flows worked.

  3. Inspect Preview Cloud tables

    If the undone turn altered schemas or inserted test records, clean up stray test rows in the Cloud tab before retrying.

  4. Split the request into smaller slices

    Break multi-system prompts ("Add invites, seat billing, and reminders") into two vertical turns: schema + core flow first, billing + emails second.

  5. Verify the fresh checkpoint in Preview

    Run the updated flow end to end and confirm Cloud rows persist accurately before continuing.

After clicking Undo, send a narrower, anchored retry that states exact tables and limits scope:

Starter prompt · App

Retry adding class waitlists with tighter scope: create a Cloud waitlist_entries table linked to classes and members (fields: class_id, member_id, position, created_at). When a class reaches capacity, show a Join Waitlist button on the schedule card that adds the signed-in member once. Do not add email notifications yet — we will wire those next turn.

When you want to test a bold dashboard redesign without risking working full-stack code, branch visually on Design Canvas first:

Starter prompt · Design

Explore two redesigned layouts for our member dashboard without changing app code: one single-column schedule timeline with an inline membership strip, and one split two-column view pairing upcoming classes with attendance streaks. Keep our locked warm alabaster and forest-green tokens.

Safe recovery habits for live businesses

Once paying customers depend on your published site, disciplined checkpoint habits keep shipping both fast and calm.

Branch visual experiments on Design Canvas first

Avoid experimenting with major layout changes directly inside production screens carrying checkout logic and role checks. Switch to Design mode to compare concepts side by side, refine details with click-to-edit, and adopt only the winner into code.

Protect structural schema changes before running them

Renaming columns or altering status enums carries higher blast radius than editing copy. Before requesting a structural Cloud migration on a live app, verify your last checkpoint is clean so existing Live records stay safe when you next click Publish. See Safe schema migrations.

Use Live rollbacks during production incidents

If a visitor reports a broken checkout button or clipped mobile menu right after a release, skip rushed hotfixes. Open your Live deployment history, click Rollback to restore the previous verified version immediately, then reproduce and test the repair safely inside isolated Preview.

Push milestone snapshots via the Official GitHub App

Before major version transitions — such as a seasonal launch or pricing overhaul — connect the Official GitHub App to push a clean repository snapshot to your GitHub account. That gives technical collaborators pull-request diffs and permanent history alongside ExaSpark's built-in checkpoints. See Code & GitHub App.

Recovery troubleshooting matrix

Resolve stubborn checkpoint and rollback scenarios quickly using this table.

SymptomWhat happenedExact resolution
Clicked Undo, but Preview still shows test entriesUndo reverts code, while Preview database rows live separately in CloudOpen the Cloud tab in Preview and delete or edit the test rows directly
Ask AI to fix cleared one error, then sparked anotherA multi-concern prompt left conflicting assumptions across filesClick Undo to the last green checkpoint and split the change into two turns
Accidentally published a layout bug to LiveClicked Publish before checking mobile views or checkoutClick Rollback in Live deployment history immediately, then fix in Preview
Want to keep one great section from a messy turnOne part worked well while navigation or data brokeCopy the crisp requirement you liked, click Undo, and request only that clean piece
Unsure if Preview edits touched paying usersConfusion between live Preview updates and explicit publishesReview Preview vs Live: Live never changes until you click Publish

Next steps

Still have a question?Ask our team and other builders on Discord.

From the blog