---
title: "AI-Built App Not Working? Where to Look First"
url: https://www.insulin.dev/blog/ai-built-app-not-working/
canonical: https://www.insulin.dev/blog/ai-built-app-not-working/
type: Blog
description: "AI-built app not working? Where to look first in Insulin's AppBuilder, from a preview that won't start to a refused change, and how to restore a version."
---

# AI-Built App Not Working? Where to Look First

> Canonical HTML version: https://www.insulin.dev/blog/ai-built-app-not-working/

1.  [Home](/)
2.  [Blog](/blog/)
3.  AI-Built App Not Working? Where to Look First

# AI-Built App Not Working? Where to Look First

When an app Insulin built won't load or won't take your change, start with what the AppBuilder already shows: the preview's error, the Terminal, the wording of a refusal and App History. Where to look for each symptom, and how to get back to a version that worked.

![Qiuyang Luo](/authors/qiuyang-luo.jpg)

Qiuyang Luo

Oct 19, 2026

 ![AI-Built App Not Working? Where to Look First](/images/blog/ai-built-app-not-working/hero.png?v=2026-10-28)

_Troubleshooting an AI-built app is reading what the builder already shows before you ask it for another change. In Insulin’s AppBuilder, a preview that can’t start shows the error the runtime reported, the Terminal shows the app server’s install and dev-server output, a refused request says why it was refused, and App History keeps the newest 50 versions to go back to._

* * *

The app the AI built for you won’t load this morning, or it loads but won’t take the change you asked for. The instinct is to send the request again, with more detail. Before you do, look at what the AppBuilder is already showing you. Its preview runs the real app rather than a mock, so a broken app leaves real evidence, the error the runtime reported and the app server’s output, and the versions you saved before it broke are still in App History.

This post is a checklist for an AI-built app not working in Insulin’s AppBuilder, written for the person building or changing it. It starts with a table of symptoms, then takes each kind in turn: an app that won’t load, a builder that won’t take your change, a feature that fails inside a running app, and the way back to a version that worked.

## Where should you look first when an AI-built app isn’t working?

**Start with what the AppBuilder already shows, in this order: the Preview tab, for an error or the launch step it stopped on; the Terminal, for the app server’s install and dev-server output; the exact wording of any refusal; and App History, for the last version that worked.** Preview is a tab of its own, the Terminal sits with Code and Data in the **More** menu, and **History** is a button in the builder header.

Find what you see in the first column; the other two say what it means and where to go next.

| What you see | What it means | Where to look, and what to do |
| --- | --- | --- |
| **Preview couldn’t start**, with an error | The AppBuilder couldn’t start the app in the preview; the error is the one the runtime reported | Read the error, then the **Terminal**. Try **Reload preview**, send the builder the error, or go back to the last version that worked |
| The preview stays on **Runtime**, **Prepare**, **Download**, **Unpack** or **Run** | The app is still starting. The first launch downloads the app’s packages; later launches reuse them | Read the app server’s latest output in the preview once the app is compiling, or open **Terminal** from the **More** menu |
| _The agent is already working on this app. Try again when it finishes._ | The builder works on one request per app at a time, and another editor, or you in another tab, already has it working | Wait for that request to finish, then send yours again |
| The builder keeps repeating a fix that doesn’t work | Your builder conversation has gone in circles | Send `/clear` in the composer for a fresh conversation. The app’s code stays as it is |
| The builder changed the wrong part, or changed the app when you only described a problem | Every message is a request the builder can act on; there’s no separate discussion mode | Point at the part you mean with **Draw annotation**, and undo an unwanted change from **History** |
| A model you picked is rejected | Your organization restricts which providers may be used. A model on a restricted provider stays in the picker under **Your key**, but is rejected when the app runs | Pick a model from an allowed provider with the sparkle icon in the composer |
| **Edit App** is missing, or a restore isn’t allowed | Changing an app, and restoring or discarding a version, takes **Editor** or higher on it | Ask the app’s owner, or anyone with **Admin** on it, for Editor. A personal app can’t be shared |
| A save is refused because the app’s migration failed, or the data looks wrong after a save or a restore | The app keeps its previous version, but changes the migration made before it failed aren’t undone; a restore brings back code, not data | Check **Data** in the **More** menu: each table’s rows and its **Structure**. [What survives a change to an AI-built app’s data](/blog/ai-built-app-data-storage/) walks through each event |
| A secret the code expects is missing in the preview | Secrets reach the preview only when the person previewing is an organization ADMIN or EDITOR with **Editor** or higher on the app | Preview as someone who holds both roles. Only the app’s Owner or an Admin sets a secret |
| The camera, microphone or location doesn’t work | Each needs your browser’s permission, which the browser remembers for the Fours console rather than for one app | Check that permission for the Fours console. No permission lets an app read your clipboard or capture your screen |
| Something meant to happen on a schedule never happens | Insulin’s documentation sends repeatable background work to Jobs, not to a Custom App | Ask for a scheduled job instead (below) |
| You need yesterday’s version back | Every save that changes the code is a version, and the newest 50 are kept | Open **History**, preview versions and **Restore** the one that worked; to drop unsaved edits instead, use **Discard draft to vN** |

## Why won’t an AI-built app load in the preview?

**Either the preview couldn’t start, and says so with the runtime’s error, or the app is still starting and the preview shows the step it has reached.** The preview runs the real app: the AppBuilder mounts the app’s npm project in the browser, installs or restores its dependencies and starts its dev server, so the app has its own front end and its own backend, an HTTP server backed by an in-browser database.

### Preview couldn’t start

**Preview couldn’t start is** the message the Preview tab shows when the AppBuilder can’t start the app, with the error the runtime reported in place of a blank screen. Work through it in order:

1.  **Read the error.** It’s the runtime’s own account of what failed.
2.  **Open the Terminal** from the **More** menu. It’s the app server’s own terminal, with its install and dev-server output. **New shell** opens another shell in the app’s workspace, and **Stop** interrupts the active one.
3.  **Open the file the error names**, if it names one. The **Code** surface, in the same menu, holds the project’s file tree, and if you can edit the app, every text file in it is editable, `package.json` and configuration included.
4.  **Reload the preview** with **Reload preview** on the Preview tab.
5.  **Tell the builder**, with the error in your message. The builder can run a visual review, which reads the rendered preview, screenshots, runtime logs and network activity to decide whether the app matches your request or needs another edit.
6.  **Go back** if a recent change broke it. The last version that worked is in App History, covered below.

### Stuck on a launch step

**A launch step is** one of the five stages the preview shows while the app starts: **Runtime**, **Prepare**, **Download**, **Unpack** and **Run**. Once the app is compiling, the preview also shows the app server’s latest output.

The first launch downloads the app’s packages, and later launches reuse them, so the first launch has the most to do. If the preview stays on one step, open the **Terminal** for the install and dev-server output. If the launch ends in **Preview couldn’t start**, work from that error instead.

## Why won’t the builder take your change?

**Check five things, in this order: whether another request already holds the app, whether your conversation has gone in circles, whether the change was aimed at the right part, whether your model is allowed, and whether your role on the app reaches Editor.** A sixth, a save refused because the app’s migration failed, concerns the app’s data and has its own row in the table above.

### Another request is already running

The builder works on one request per app at a time. If another editor, or you in another tab, already has it working on the app, your message is refused with _The agent is already working on this app. Try again when it finishes._ Wait for that request to finish, then send yours again.

You won’t see the other request. **A builder conversation is** one person’s chat with the builder about one app: each person who edits an app has a separate one, and nobody else sees what you asked. So if the refusal appears while you have no other tab open, the request is a teammate’s.

### The conversation has gone in circles

**Send `/clear` in the builder’s composer.** It stops any reply still being written, deletes your builder conversation for this app and opens a fresh one. Other editors’ conversations and the app’s own code are untouched.

That last sentence cuts both ways. A fresh conversation drops the dead ends, but not the code they left behind: if the circling also broke the app, go back to a version that worked first, then start the new conversation from there. And if a conversation you remember is simply missing, the builder keeps one per person, and an app’s earlier, shared builder conversation isn’t carried into anyone’s.

### The change landed in the wrong place

**Aim it with Draw annotation.** Once the app is running in the preview, the Preview toolbar has a **Draw annotation** button. Turn it on and drag a box over the part you mean, and the area and the elements inside it are attached to your next message as a reference, so you can write “make this chart taller” instead of describing the whole screen. Each box replaces the last, the reference shows above the composer where you can remove it, and **Esc** stops drawing and clears it. It needs a running app, so it can’t help while the preview won’t start.

The builder also has no separate discussion mode: every message you send goes to it as a request it can act on, so a message that only describes a problem can come back as a change. When a change you didn’t want lands, App History is the way back.

### The model was rejected

**The model you pick builds the app, and an organization administrator can limit which models may.** You choose it on the creation wizard’s Describe step, or later with the sparkle icon in the composer, and it’s pinned on the app, so saved apps keep building with the same model. The picker groups models by provider, and an administrator’s limits work in two ways:

-   **Turning off the Fours-hosted fallback** removes every Fours-hosted row from the picker, for everyone in the organization and in both kinds of app. Only your own connected keys remain.
-   **Restricting which providers may be used** removes the Fours-hosted rows served by a provider that isn’t allowed. Your own **Your key** rows are still listed, and a model on a restricted provider is rejected when the app runs rather than hidden from the picker.

Ownership changes the list too. An organization app lists **Your key** rows from your organization’s connected provider keys; a personal app lists them only for the providers you have connected, and never reads your organization’s keys. Pick a model that is both listed and allowed.

### Your role on the app is below Editor

**Changing an app takes Editor or higher on it.** The Owner, an Admin and an Editor can edit and save; a User or a Viewer can’t. **Edit App**, on the app’s right-click menu in the Custom Apps sidebar, opens the app in the builder and appears only for Editor or above, and restoring or discarding a version takes edit rights too.

To get Editor, ask the app’s owner or anyone with **Admin** on it, since they manage its sharing. Three details decide whether they can:

-   **Only organization apps can be shared.** A teammate’s personal app stays theirs alone.
-   **Access is the higher of two grants.** An app shared with the whole organization as Viewer can still give Editor, by name, to the people who maintain it.
-   **An org admin title on its own grants nothing.** An organization ADMIN who needs to change a colleague’s app needs a share on it like anyone else.

## Why does a feature fail when the app itself loads?

**Because the preview gives the app real access with real limits: secrets reach it only for some roles, devices need your browser’s permission, and some work belongs in a job rather than an app.**

### A secret is missing in the preview

**A secret is** a credential stored for an app, such as an API key, encrypted per organization. Secrets are injected into the preview as environment variables when the person previewing it is an organization ADMIN or EDITOR with **Editor** or higher on the app. Miss either half and the preview runs without them, so the same app can work in your preview and fail in a teammate’s.

Only an Owner or Admin sets a key, and anyone who can edit the app can use it. The preview’s code and the browser’s DevTools can read secrets, so sharing Editor on an app shares its credentials: give it to people you’d trust with the keys.

### Camera, microphone, location and the clipboard

The preview can use your location, camera and microphone, go full screen and copy to your clipboard. Location, camera and microphone still need your browser’s permission, and the browser remembers it for the Fours console rather than for one app: allowing it once allows it for every app you open there. If a device feature does nothing, check that permission first.

Two things no permission unlocks: an app can never read your clipboard or capture your screen. A feature that depends on either won’t work, so ask the builder for another way to do the job.

### Work that should happen on a schedule

Insulin’s documentation sends repeatable background work to Jobs, not to a Custom App. If you asked an app for a weekly digest or a reminder that fires on its own, ask an agent in chat or Slack for a [scheduled AI job](/jobs/) instead: a job runs an agent on demand, on a schedule or when an event arrives, and every run leaves a record.

## How do you get back to a working version?

**Open History in the builder header, preview versions until you find the one that worked, and restore it; if only unsaved edits broke the app, discard the draft back to a saved version instead.** **App History is** the list of an app’s saved versions. Every save that changes the app’s code is snapshotted, and the newest 50 per app are kept. A save that changes no code, such as saving the same source again or editing only metadata, doesn’t create a version.

|  | **Restore** | **Discard draft to vN** |
| --- | --- | --- |
| **What it does** | Saves a new version whose code is the chosen version’s | Puts the chosen saved version back in the editor, without a new version |
| **What it removes** | Nothing: every version between then and now stays | The working draft, which everyone editing the app shares, so unsaved edits are lost for every collaborator |
| **How you confirm** | A two-step confirmation | **Confirm discard** |
| **Use it when** | A saved change broke the app | Unsaved edits broke an app whose saved version worked |

Three rules hold either way:

-   **A restore deletes nothing.** Restore rolls forward, so a restore is itself undone by restoring the version you were on.
-   **Both take edit rights on the app.** Ask for Editor first if you don’t have it.
-   **Code comes back, data doesn’t.** A restore brings back the chosen version’s code, not its data: what the app has stored isn’t rolled back, and the restored version’s migration runs again and may change it.

To keep a way back, save each time the app works. Only a save that changes the code makes a version, so a working state you never saved isn’t in the list. And before you discard, tell anyone else editing the app: their unsaved edits go too.

## Frequently asked questions

### Why does my AI-built app say “Preview couldn’t start”?

The AppBuilder couldn’t start the app in the preview, and the message carries the error the runtime reported. Read it alongside the Terminal’s install and dev-server output, then reload the preview, send the builder the error, or restore the last version that worked.

### What does “The agent is already working on this app” mean?

The builder works on one request per app at a time, and another editor, or you in another tab, already has it working on the app. Wait for that request to finish, then send yours again. You won’t see a teammate’s request: builder conversations are private.

### Does /clear undo the builder’s changes?

No. /clear stops any reply still being written, deletes your builder conversation for the app and opens a fresh one. The app’s code and other editors’ conversations are untouched, so undo a change by restoring an earlier version from App History.

### How do I get back to the last version of my app that worked?

Open History in the builder header, preview versions until you find it, and Restore it behind a two-step confirmation. Restore saves a new version with that version’s code and deletes nothing, so you can undo it by restoring the version you were on.

### Why can’t I change an app a teammate shared with me?

Changing an app takes Editor or higher on it, and Edit App appears only for Editor or above. Ask the app’s owner or an Admin on it for Editor. An org admin title on its own grants nothing, and a personal app can’t be shared.

### Why can’t my app use the camera or microphone?

Location, camera and microphone need your browser’s permission, which the browser remembers for the Fours console rather than for one app, so allowing it once allows it for every app you open there. No permission lets an app read your clipboard or capture your screen.

## Takeaways

-   **Read before you retype.** The Preview tab’s error or launch step, the Terminal’s output and the wording of a refusal say where to look.
-   **One request per app at a time.** The busy message means someone, maybe you in another tab, already has the builder working.
-   **`/clear` resets your conversation, not the code.** Undo code from App History.
-   **Aim a change with Draw annotation.** Every message is a request the builder can act on.
-   **Secrets reach the preview only for an organization ADMIN or EDITOR with Editor on the app**, and sharing Editor shares them.
-   **History keeps the newest 50 versions.** Restore rolls forward and brings back code, not data; Discard draft replaces the shared draft for everyone.

The AppBuilder shows its work, from the launch steps to the server’s output to the versions you saved: read it before you ask for another change. To see how Insulin Apps plans, builds and versions an app in the first place, start with [Insulin Apps, the AI app builder for business apps](/custom-apps/); the [Custom Apps documentation](https://doc.fours.com/insulin/custom-apps/) is the reference for every control named here.

## Sources

Primary sources for the platform rules cited above. Last verified October 19, 2026. Providers change their products, prices and terms without notice — check the source before relying on a detail.

-   [Insulin Custom Apps — Fours Doc](https://doc.fours.com/insulin/custom-apps/) — When an app fails to render: Preview couldn't start with the error the runtime reported, instead of a blank screen; The Live Preview: the real app, its npm project mounted in the browser, dependencies installed or restored and the dev server started, with its own backend backed by an in-browser database, the launch steps Runtime, Prepare, Download, Unpack and Run, the app server's latest output once compiling, the first launch downloading the app's packages and later launches reusing them, secrets injected into the preview for an organization ADMIN or EDITOR with Editor or higher on the app and readable by preview code and browser DevTools, location, camera and microphone needing the browser's permission, remembered for the Fours console rather than one app, no clipboard reading or screen capture, and the visual review reading the rendered preview, screenshots, runtime logs and network activity; Studio surfaces: Preview and Settings tabs, Code, Terminal and Data in the More menu, Reload preview, the Terminal's install and dev-server output, New shell and Stop, the editable file tree, and the Data surface's tables, rows and Structure view; Starting the builder conversation over: a builder conversation per person that nobody else sees, the earlier shared conversation not carried over, /clear leaving the code and other editors' conversations untouched, and one request per app at a time with its refusal message; Discuss before you change and Mark an area of the preview: no separate discussion mode, and Draw annotation once the app is running; Choose the AI model: the sparkle-icon picker grouped by provider, the model pinned on the app, Your key rows by ownership, and an administrator turning off the Fours-hosted fallback or restricting providers, a model on a restricted provider rejected when the app runs; Ownership and Sharing: only organization apps shareable, effective access the higher of org-wide and individual grants, the role table, and Edit App for Editor or above; Data an app keeps for itself: a failed migration refusing the save and keeping the previous version without undoing its changes; App History and Restore: the History button, code-changing saves snapshotted and the newest 50 kept, preview and a two-step Restore that rolls forward and deletes nothing, Discard draft to vN replacing the shared draft for every collaborator without a new version, read-only roles unable to restore or discard, and a restore bringing back code, not data; When to Use a Custom App: repeatable background work belongs in Jobs
