Agent Builder preview takes a very long time to load after every agent modification (self-hosted)

  1. My goal: Let non-technical users vibe-code with Agent Builder, iterating quickly through the chat and the live preview of the modified app.
  2. Issue: After every agent modification, the preview takes a very long time to load. The same happens with small apps, so it doesn't seem related to app size. For engineers using the Retool CLI this is not a blocker, but for non-technical users it breaks the iteration loop. The preview goes through: Building runtime → Installing dependencies → Rendering preview → Almost there... and then stays blank.
  3. Steps I've taken to troubleshoot: Tested with a small app: same loading time.
  4. We don't want to cut app features, and app size doesn't seem to be the cause.
  5. Additional info: Self-hosted
  6. Questions:
    • Is this a known issue, and is the Retool team working on a fix?

    • Is there a recommended configuration or workaround for self-hosted to speed up the preview?

Summary

On a self-hosted instance, the new app builder (Agent Builder) preview takes a very long time to reload after every agent modification — cycling through 'Building runtime → Installing dependencies → Rendering preview → Almost there…' before often going blank — which breaks the fast iteration loop for non-technical builders, and this happens even with small apps.

AI Response

This matches a documented self-hosted performance pattern with the new app builder rather than an app-size problem. On self-hosted deployments, the preview sandbox rebuilds against the app's git-backed storage, and one reported root cause is that the backend reloads every loose git object from blob storage on each request, which slows (or stalls) preview provisioning independently of app size. Because the AI app builder only became generally available for self-hosted in the Q4 stable release, running the latest stable self-hosted version and ensuring your blob/git storage and backend pods are adequately resourced is the most reliable way to improve preview rebuild times today. There is no documented self-hosted toggle that eliminates the per-modification rebuild, so confirming you're on the newest stable release and watching the linked storage-load report are the best current steps.

Sources

:bookmark: New app builder: app's git storage loads every loose object from S3 on each request, so a large repo takes down self-hosted backend pods
A self-hosted new-app-builder performance report identifying that the app's git storage reloads every loose object from blob storage on each request, which slows preview/runtime provisioning regardless of app size.
:bookmark: General availability of app builder
The changelog confirming the new app builder only reached general availability for self-hosted in the Q4 stable release, so running the latest stable version is important for preview performance.

The Community Team is testing out a new automation. Let us know if it's helpful (or not) by leaving a :heart:, :+1:, or :-1:. Or by marking this post as the "Solution"! Let us know if you have any feedback here. :rocket: