Skip to content

Fixing errors

Sometimes a change breaks the preview — an error screen instead of your page. Genesis has a repair path for exactly this, and it checks the result instead of taking the AI’s word for it.

A broken preview shows the error in two places, each with a button that does the same thing:

  • On the preview: Your site crashed while rendering. with Ask AI to fix this error.
  • In the chat panel: a Build error detected card with Fix this error.

You can also type “fix this” in chat, but the button sends the captured error and stack with the request, so it’s the better route.

  1. Known repairs first. Common breakages have known signatures. When the error matches one, Genesis repairs it on the spot, for no credits and without an AI turn, and shows Fixed.
  2. Otherwise, an AI turn. The AI gets the real error message and stack, reads the files it points to, and makes the smallest change that clears it — a missing import, an unclosed tag, a package version — rewriting more only when a file is genuinely broken. The fix goes ahead of anything you had queued.
  3. The result is checked. When the turn ends, Genesis checks that the preview builds and the page actually renders. You see either Fixed — the preview renders again or Still not fixed, with the current error on the preview.

If the preview breaks within a few seconds of an AI turn finishing, Genesis sends one fix turn by itself, as long as you aren’t typing and no question is waiting for your answer. It does this once per request; if the fix breaks too, the button is there for you to decide.

Some failures have nothing to do with your code — a service your site calls not responding, for example. Those show A service your site uses did not respond. with Reload the preview instead of a fix button, so you don’t spend a turn on a repair that couldn’t work.

  • Click the button again: the next attempt starts from the current error.
  • After three failed attempts at the same error within a day, Genesis stops spending turns on it and shows Tried 3 times without fixing it. Send the error to support, or undo the change that introduced it and ask for it differently.

A failed publish (rather than a broken preview) is handled differently — see Fixing publish failures.