Gitlab cloud agent

Where does the bug appear (feature/product)?

Background Agent (GitHub, Slack, Web, Linear)

Describe the Bug

I’ve connected my gitlab to the cursor but when I try using the cloud agent for gitlab repository, there is no branch. I even tried the cloud agent API but I got this error

Failed to validate access to repository xxx/xxx. Please check repository access and that Cursor GitHub App is installed.

I was trying to use gitlab repository but as you can see it said try connect github app

Steps to Reproduce

connect to gitlab account.
go to the cloud agent page.
select a repository
there is no branch

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.77
VSCode Version: 1.99.3
Commit: ba90f2f88e4911312761abab9492c42442117cf0
Date: 2025-11-13T23:10:43.113Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.14.0-35-generic

Does this stop you from using Cursor

No - Cursor works, but with this issue

3 Likes

Hey, thanks for the report. The error message is a bit confusing, but this is actually a feature limitation rather than a bug.

GitLab is currently only supported for BugBot, not for Cloud Agents or Background Agents. Cloud Agents only work with GitHub repositories right now, which is why you’re seeing a GitHub-specific error message and no branches appearing.

Your options:

  • Use BugBot with GitLab: GitLab is supported for BugBot (you can connect it at Cursor - The AI Code Editor).
  • Use Cloud Agent with GitHub: If you need Cloud Agent features, you’ll need to use a GitHub repository.

I’d also recommend creating a feature request for GitLab support in Cloud Agents, since other users are asking for this as well.

Let me know if you have any questions about either option!

image
Thanks for your response, but as you can see, it has recently added. In my opinion, it’s an issue and I tried only to report it.

2 Likes

Oooh I also thought it was compatible with Cloud Agents. The copy is confusing, please fix that guys

1 Like

Found this thread after running into the same issue. Some observations:

The docs specifically mention GitLab support at Cloud Agents | Cursor Docs

GitHub or GitLab connection
Cloud agents clone your repo from GitHub or GitLab and work on a separate branch, pushing to your repo for easy handoff.

The dashboard page for Cloud Agents specifically includes the option to connect GitLab. The dashboard page for Bugbot ALSO includes an option to connect GitLab. Connecting GitLab on the Cloud Agent tab apparently DOES NOT connect GitLab to the Bugbot. This begs the question why the option is even available in the Cloud Agent tab?

Cloud Agents Tab:

Bugbot Tab:

  • Once GitLab is connected via the Cloud Agent dashboard tab, GitLab repositories are selectable in the Cloud Agents interface ( Agents | Cursor - The AI Code Editor ). However, once a GitLab repository is selected no branch can be selected.
  • Looking at the underlying API requests in the developer console, the call that fails is to /api/background-composer/get-repository-branches. It fails with a 500 Internal Server Error. The JSON response contains the error code ERROR_GITHUB_NO_USER_CREDENTIALS (yes, the error code references “GITHUB” not “GITLAB”).
  • On a minor note: The repository selection dropdown only includes the static option “Manage GitHub” at the bottom. This should probably be “Manage Integrations” or sth similar (in the future).

This all seems like the GitLab integration for Cloud Agents is a weird limbo state about to roll out? @deanrie could you clarify? I’d be happy to create a feature request, however, this is quite confusing and if possible would like some clarification first. Thank you!

3 Likes

Hey everyone, this should be working now. Let me know if the problem persists.

I’m still seeing the same behavior. I can select a GitLab repository in a new agent, but I cannot select a branch. The dropdown component for selecting a branch is still disabled.

2 Likes

Hello @deanrie, thank you for your quick reply. I ran into the same issue and conducted some further testing.

Before testing again, I disconnected the GitLab integration from the Cursor Dashboard and I also revoked the Cursor application from within GitLab (Preferences > Applications > Revoke).

  • Newly created personal projects under my own user namespace work, and I can select branches from the dropdown menu in the agents interface.
  • However, for the following types of projects the agents interface still won’t allow me to select a branch. The same ERROR_GITHUB_NO_USER_CREDENTIALS error is observable in the developer console. Note: I am using the terms “old” and “new” to describe groups and projects created before and after your recent update respectively:
    • Old group projects created in old groups
    • New group projects created in old groups
    • New group projects created in new groups
  • I couldn’t test personal projects created before your update since I didn’t actually have any in my GitLab account.

So, there still appears to be an issue with projects created in groups. Personal projects seem to work fine. Thank you for your quick work on this.

1 Like

I confirm the bug occurs with GitLab group projects. On my side, it’s the same.

I can confirm the issue, I’m having it as well, not be able to choose a branch in a project created under a project group.

Confirmed the same behavior on my end. Projects under my own account’s namespace work and I’m able to select a branch, but I’m not able to select a branch for projects under a group I’ve created.