Safe Mode

Recover an app that freezes the browser or loops in preview

What it is

Safe Mode opens an app in the App Builder without running its live preview. The app's files are loaded so you can edit them in the Code tab and chat with the agent to revert or fix the problem — but the iframe that runs the app is never mounted, so a broken app cannot freeze the page, loop infinitely, or trap you out of your own work.

Use it whenever an app becomes unresponsive in the editor and you can no longer reach the Properties, Code, or Chat tabs through the normal preview view.

When to use it

Two flavors

Mode Where it lives Scope Best for
Session Safe Mode ?safe=1 URL parameter This tab only — gone on next normal open A one-time rescue so you can edit and ship a fix
Persistent Safe Mode safe_mode flag on the app Every open, every device, until turned off Apps that need ongoing work before they're safe to run again

Both flavors block the preview the same way. The difference is only how long the block lasts.

Activating Safe Mode

Go to /apps, open the ⋯ (More) menu on the app's row, and choose one of:

Apps with the persistent flag on show a Safe Mode badge next to their name on this page.

From the URL

Append ?safe=1 to any /app/:id URL:

/app/cbd1fec9-806a-4d84-82ff-f2cbb3db79d4?safe=1

This works even if you cannot reach the Apps page menu — bookmark it for emergencies.

From inside the app (Properties tab)

If you can still reach the Properties tab, scroll to the Safe Mode card and flip the switch. This sets the persistent flag.

What you see in Safe Mode

Disabling Safe Mode

Avoiding confusion when both apply

If a one-time ?safe=1 session is active while the persistent toggle is off, the Properties card shows an amber notice explaining the situation. Closing the tab or opening the app without the URL parameter is enough — you don't need to touch the toggle.