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.
Where the button is
Section titled “Where the button is”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.
What happens when you click
Section titled “What happens when you click”- 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.
- 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.
- 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.
Automatic fix after an AI change
Section titled “Automatic fix after an AI change”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.
When it isn’t something the AI can fix
Section titled “When it isn’t something the AI can fix”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.
If the error persists
Section titled “If the error persists”- 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.
Related
Section titled “Related”A failed publish (rather than a broken preview) is handled differently — see Fixing publish failures.