Source Control broken for multiple Spaces on same repo

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

  • Production Spacemain branch

  • Dev Spacedevelop 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”

Hi @TobiasOhlsson & @stefancvrkotic,

I checked in with our engineering team and they said all spaces need to be explicitly using repo_version: 2.0.0. Is there an existing space still on an older version?

Hey @Tess any context where we can check / set this up? As in this case we’re talking cloud environment.

Yeah - the .retool/protected-apps.yaml should read 2.0.0

This is the case already however the issue is still happening.

Hey @stefancvrkotic - thanks for your patience. I'm picking this up on Tess' behalf.

The most likely explanation for this particular error is that repoVersion for the production space's source control configuration is mistakenly set to 1.0.0 or null at the database level. This would prevent any other configurations from referencing the same repo.

To verify this, can you try fetching the current source control configuration for the production space? Or manually inspect the database?

How can we validate this on cloud? As we do not have access to the DB.

You should be able to validate by fetching the current source control configuration for the production space via an API request.

@TobiasOhlsson - Has this issue been resolved for you? Our team is evaluating whether we want to create a duplicate space that is built off the same 1 repo, but we want to ensure this works before we go down this path

1 Like