Skip to content
MyAppBuilder
StableGuide

Review and undo AI changes

Every AI instruction that changes your app is applied as one transaction : a single, all-or-nothing group of edits that is saved as a version. That makes AI changes easy to review and safe to undo. Nothing the AI does reaches your published app until you publish.

Every AI instruction that changes your app is applied as one transaction: a single, all-or-nothing group of edits that is saved as a version. That makes AI changes easy to review and safe to undo. Nothing the AI does reaches your published app until you publish.

When to use

  • Check what the AI actually changed before moving on.
  • Revert an AI change you did not like, right away or later.
  • Find out which versions of your app came from the AI.

The change list

After an instruction, the result card above the AI bar shows:

  • A one-line description written by the AI ("Added a Booking page with a Booking Form").
  • A list of changes, prefixed with + (added), − (removed) or ~ (updated), for example + Page "Booking", ~ Theme primary color, − Field "Fax".
  • Storyboard-only changes (groups, positions) are listed as ~ Storyboard group … and never affect the app.

Click the × to dismiss the card. The same change list is stored with the version so you can see it again later.

Undo right away

Click Undo on the result card, or press Ctrl+Z (Cmd+Z on Mac). The whole transaction is reverted at once; you never end up with half of an AI change. Ctrl+Shift+Z or Ctrl+Y redoes it. Undo works across manual and AI edits in the order they happened.

Review later: Versions

  1. Open Versions › Version history. Each AI transaction appears as a version with the AI badge and the description ("AI: Added a Booking page…").
  2. Use the AI filter to show only AI versions.
  3. Open the row menu and choose View changes to see a diff of that version, or Compare with current draft.
  4. Restore this version replaces your draft with the state of that version (saved as a new version, so it is itself undoable). To go back to just before an AI change, restore the version right before it.

Versions › AI history lists the latest 50 instructions with their status (Applied, Rejected, No changes, Failed), the engine that answered, the time and any error message. It is a log of what you asked, including requests that produced no change.

Example

Example
Versions › Version history
v42  AI       AI: Renamed Jobs to Work orders.                 10:14
v41  Edit     Resize Customers table                            10:12
v40  AI       AI: Added the Phone field to Customers.          10:09

Restoring v41 removes the rename but keeps the Phone field.

Common mistakes

  • Undoing with the browser's Back button. That leaves the editor. Use Undo or Ctrl+Z.
  • Expecting Undo to touch the live app. Undo changes the draft only. If a bad change was published, use Versions › Deployments › Roll back.
  • Looking for an AI change in AI history to undo it. AI history is a log; undo and restore happen in Version history (or Ctrl+Z).

Advanced

AI transactions are recorded with source: "ai" in the project's transaction log and in the ai_transactions table (instruction, model, attempts, duration, status, resulting transaction id). The editor adds the transaction to its undo stack through pushExternalTransaction, so Ctrl+Z calls the server's undoTransaction for it exactly as for manual edits.

Related

Was this helpful?