Since around Dec 2, every time we publish a React app from the editor, a new branch appears under Change History › Branches, labeled "New branch". Behind the label it's a branch named retool-agent/<uuid>. We can rename these, but we can't archive or delete them, so they pile up with every publish.
Our workflow, unchanged for months:
We build with the Retool CLI and push drafts with retool push to one named branch per app (cli/<app>).
We review the preview, then publish from the editor.
Nothing on our side creates branches.
What we see:
Each "New branch" is created 2–8 minutes after a publish (we checked with retool branch --app <uuid> --json).
Across our 14 apps, every app published since Dec 2 has one per publish, and none of our apps published before Dec 2 has any.
In one case, a single publish that also required a merge left two branches.
The branch points at the published commit and holds no commits that aren't already on our working branch.
The publish commit is written by the editor's agent, with an AI-generated message ("Enhance …").
Around the same time, the editor started requiring a merge before some publishes. Each merge brings in an [auto] Sync sandbox setup commit, which so far has only changed frontend/package.json (adding es-toolkit) and the lock file.
The branch row in the editor offers rename only. The CLI's retool branch lists branches but has no delete or archive option.
Questions:
Is it intended that publishing leaves a retool-agent/* branch behind?
Can these branches be archived or deleted, from the editor, the CLI or an API?
Is there a way to publish a CLI-pushed branch without the editor's agent making a new branch and commit, the way publishing worked before Dec 2?
Is the [auto] Sync sandbox setup commit (and the merge it forces before publishing) expected to happen on every publish now?
Since around Dec 2, publishing React apps (new app builder) from the editor leaves behind an auto-created retool-agent/ branch (labeled 'New branch') under Change History › Branches that offers rename only — no delete/archive from the editor, CLI, or API — so they accumulate on every publish. The report also asks whether the forced merge and the recurring '[auto] Sync sandbox setup' commit are now expected on every publish.
AI Response
In the new app builder, a branch is the unit of work you publish, and publishing automatically archives the relevant branch rather than offering a manual delete — this is documented, intended behavior, so the retool-agent/ branches piling up after each publish reflects how publish-and-archive now works rather than a defect. Archived branches aren't removed; they're marked as archived and can be reopened by continuing to prompt in the thread or starting a new thread, and the editor UI intentionally exposes rename only. The agent writing the publish commit (with an AI-generated message) and generating these retool-agent/ branches during a CLI-based workflow is the same mechanism others have reported when mixing retool push with editor publishing. Because branch creation/archival is tied to the publish flow, there isn't currently a supported way to publish a CLI-pushed branch without the editor's agent creating its own branch and commit.*
Sources
Threads and branches | Retool Docs
Confirms that in the new app builder, publishing automatically archives the branch (marked as archived, reopenable by prompting) and that the branch UI supports rename only — matching the observed retool-agent/* behavior as intended. Retool CLI push blocked by cliFileAuthorization on unchanged /context/ files created by Retool Agent
A solved topic corroborating that the Retool Agent creates retool-agent/ branches and commits within a CLI (retool push) workflow, the same interaction pattern described here.
The Community Team is testing out a new automation. Let us know if it's helpful (or not) by leaving a , , or . Or by marking this post as the "Solution"! Let us know if you have any feedback here.