Source Control broken for multiple Spaces on same repo

I'm using Retool Cloud (Enterprise) with two Spaces on the same instance:

  • Production Space β†’ main branch

  • Dev Space β†’ develop branch

Both pointed to the same GitHub repository with different default_branch values via the API.
As of early February 2026, I can no longer configure Source Control on the second Space:

Failed to upsert SCM config: A source control configuration with the same repo 
already exists on this instance on another organization or space

This Previously Worked - This configuration was working fine until the beginning of February.

Related to Multi-instance Releases?
The Multi-instance releases feature was released on January 29th, 2026 - right before this stopped working. Could this be an unintended regression?

Questions

  1. Is this a bug or an intentional breaking change?

  2. Can multiple Spaces on the same instance still share a repository with different branches?

  3. What's the recommended workaround or migration path?

2 Likes

Can someone on the retool team take a look at this :folded_hands:

Thanks for reporting and flagging this issue! We are looking into it internally and will follow up shortly

In your set source control config API request, are you passing the repo_version in the body data? If not, you'll want to be doing that. Since you are on Cloud and should be fully migrated to Toolscript, you should be passing {repo_version: 2.0.0}, otherwise it will default to 1.0.01.

Yes, multiple spaces can connect to a single Git repository. For example, you might want to use spaces to represent different dev, staging, and prod instances.

Hi Tess, thanks for the response.

Yes, multiple spaces can connect to a single Git repository. For example, you might want to use spaces to represent different dev, staging, and prod instances.

That was exactly my intention and what I thought how it works.

However, while the API call "succeeds", I am still seeing the same error in the Retool UI even after adding repo_version: "2.0.0". I am also running into the same error when trying to manually set up the GitHub connection from Retool.

Error when clicking β€œTest connection:

Error when clicking β€œSave and deploy”