# Cloud Agents require GitHub connection and cannot access GitLab branches

**URL:** <https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549>\
**Category:** Bug Reports\
**Tags:** gitlab, cloud-agents\
**Created:** [March 4, 2026, 10:01am UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549 "2026-03-04T10:01:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bastiamponsah](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bastiamponsah/32/100267_2.png) [@bastiamponsah](https://forum.cursor.com/u/bastiamponsah)\
**Post date:** [March 4, 2026, 10:01am UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/1 "2026-03-04T10:01:31Z")

</div>

Hi Cursor team,

I’m experiencing issues using Cloud Agents with a GitLab repository.

**Where does the bug appear (feature/product)?**

- Cursor IDE
- Background Agent (Web / Cloud Agents)

**Describe the Bug**  
When trying to use Cursor Cloud Agents with a GitLab repository, the system requires a GitHub connection even though the repository is hosted on GitLab. The UI shows a message stating that Cloud Agents require access to a GitHub account, and clicking “Refresh Status” results in “GitHub access refresh failed.”

Additionally, in the Cursor Web UI I can select the GitLab repository but cannot access or select branches. The branch selector remains empty or unresponsive, which prevents running Cloud Agents against the repository.

**Steps to Reproduce**

1. Open a project in Cursor IDE that is cloned from a GitLab repository.

2. Start a new Agent task using Cloud Agents.

3. The UI displays: “Cloud Agents require access to your GitHub account.”

4. Click “Refresh Status” → it returns “GitHub access refresh failed.”

5. Open the Cursor Web UI and select the same GitLab repository.

6. Attempt to select a branch → the branch selector does not populate.

**Expected Behavior**  
Cloud Agents should work with GitLab repositories without requiring a GitHub account connection. The system should allow selecting branches from the GitLab repository and starting agent tasks normally.

**Screenshots / Screen Recordings**  
Attached screenshots show:

- Cursor IDE prompting for GitHub connection while using a GitLab repository  
“GitHub access refresh failed” error
- Cursor Web UI showing GitLab repository selected but branch selector not working

 ![Screenshot 2026-03-04 at 10.46.23](https://us1.discourse-cdn.com/cursor1/original/3X/6/4/643d8b3e523257d33d102024ba8dbd820c150edb.png)

 ![Screenshot 2026-03-04 at 10.50.30](https://us1.discourse-cdn.com/cursor1/original/3X/0/f/0fa8b8ec5bc148796488658cb6c4dbf203f3611b.png)

**Operating System**  
MacOS Tahe Version 26.3 (25D125)

**Version Information**

Version: 2.5.26 (Universal)  
VSCode Version: 1.105.1  
Commit: 7d96c2a03bb088ad367615e9da1a3fe20fbbc6a0  
Date: 2026-02-26T04:57:56.825Z  
Build Type: Stable  
Release Track: Default  
Electron: 39.4.0  
Chromium: 142.0.7444.265  
Node.js: 22.22.0  
V8: 14.2.231.22-electron.0  
OS: Darwin arm64 25.3.0

**CLI:**  
CLI Version: not used

**For AI issues: which model did you use?**  
GPT-5.3 Codex

**For AI issues: add Request ID with privacy disabled**  
Request ID: e6d64464-a17c-4d5d-875b-c57ffec4201d

**Additional Information**

- Repository host: [GitLab.com](http://GitLab.com)
- Repository: aquaty-capital/aquaty-frontend
- Repository works normally when cloned locally via git
- Issue occurs both in Cursor IDE and Cursor Web UI when attempting to use Cloud Agents

**Does this stop you from using Cursor?**

- Yes, cloud agents & environments are mandatory for us

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [March 4, 2026, 10:01am UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/2 "2026-03-04T10:01:42Z")

</div>

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the **Bug Reports** category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

> **Bug Report Template - Click to expand**
>
> **Where does the bug appear (feature/product)?**
> 
> - Cursor IDE
> - Cursor CLI
> - Background Agent (GitHub, Slack, Web, Linear)
> - BugBot
> - Somewhere else…
> 
> * * *
> 
> **Describe the Bug**  
> A clear and concise description of what the bug is.
> 
> * * *
> 
> **Steps to Reproduce**  
> How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!
> 
> 1. …
> 2. …
> 3. …
> 
> * * *
> 
> **Expected Behavior**  
> What is meant to happen here that isn’t working correctly?
> 
> * * *
> 
> **Screenshots / Screen Recordings**  
> If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)
> 
> * * *
> 
> **Operating System**
> 
> - Windows 10/11
> - MacOS
> - Linux
> 
> * * *
> 
> **Version Information**
> 
> - For Cursor IDE: Menu → About Cursor → Copy
> - For Cursor CLI: Run `agent about` in your terminal
> 
> ```auto
> IDE:
> Version: 2.xx.x
> VSCode Version: 1.105.1
> Commit: ......
> 
> CLI:
> CLI Version 2026.01.17-d239e66
> 
> ```
> 
> * * *
> 
> **For AI issues: which model did you use?**  
> Model name (e.g., Sonnet 4, Tab…)
> 
> * * *
> 
> **For AI issues: add Request ID with privacy disabled**  
> Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1  
> For Background Agent issues, also post the ID: bc-…
> 
> * * *
> 
> **Additional Information**  
> Add any other context about the problem here.
> 
> * * *
> 
> **Does this stop you from using Cursor?**
> 
> - Yes - Cursor is unusable
> - Sometimes - I can sometimes use Cursor
> - No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!

---

<div class="post-metadata">

**Author:** ![bastiamponsah](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bastiamponsah/32/100267_2.png) [@bastiamponsah](https://forum.cursor.com/u/bastiamponsah)\
**Post date:** [March 4, 2026, 9:12pm UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/4 "2026-03-04T21:12:29Z")

</div>

thanks! edited ✔

---

<div class="post-metadata">

**Author:** ![bastiamponsah](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bastiamponsah/32/100267_2.png) [@bastiamponsah](https://forum.cursor.com/u/bastiamponsah)\
**Post date:** [March 4, 2026, 9:29pm UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/5 "2026-03-04T21:29:54Z")

</div>

Update: tried another prompt; now it showed at least the GitLab Connection requirement where before only GitHub was. But still failing.

 ![Screenshot 2026-03-04 at 22.28.33](https://us1.discourse-cdn.com/cursor1/original/3X/3/6/36cb9841858992315239388405a23d09ba8571e1.png)

Precondition, I removed the GitHub integration, which was connected before.

 ![Screenshot 2026-03-04 at 22.28.50](https://us1.discourse-cdn.com/cursor1/original/3X/d/f/dfc577dd1cf5fb7fcc08124f9893e1f0f93ff33f.png)

---

<div class="post-metadata">

**Author:** ![James\_Eyre](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/james_eyre/32/100896_2.png) [@James\_Eyre](https://forum.cursor.com/u/James_Eyre)\
**Post date:** [March 8, 2026, 1:56pm UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/6 "2026-03-08T13:56:13Z")

</div>

I also have the same problem.

Hoping for a quick fix!

---

<div class="post-metadata">

**Author:** ![bastiamponsah](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bastiamponsah/32/100267_2.png) [@bastiamponsah](https://forum.cursor.com/u/bastiamponsah)\
**Post date:** [March 20, 2026, 2:56pm UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/7 "2026-03-20T14:56:42Z")

</div>

update as of today March 20th, still not working (branches not showing up),

Seems to be backend related rather than Cursor client (tested in Web as well), Desktop client is Cursor Version: 2.6.20 (Universal).

 ![Screenshot 2026-03-20 at 15.51.45](https://us1.discourse-cdn.com/cursor1/original/3X/8/e/8eeb7de1c87efd96baa2b3f5d257bfb21d60cb7c.png)

 ![Screenshot 2026-03-20 at 15.51.29](https://us1.discourse-cdn.com/cursor1/original/3X/e/0/e02af9d7d945f43ca2834e44c8d26de150ca230c.png)

---

<div class="post-metadata">

**Author:** ![Robby\_Ferguson](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@Robby\_Ferguson](https://forum.cursor.com/u/Robby_Ferguson)\
**Post date:** [March 27, 2026, 4:42pm UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/8 "2026-03-27T16:42:12Z")

</div>

Experiencing the same issue with our self-hosted Gitlab instance. Connecting to the instance seems to work fine (some UI bugs, but repos show correctly). When I go to try to initiate a cloud agent session, I get the same message as the OP about GitHub credentials not being found (we don’t use GitHub, and it’s never been connected to our Cursor infrastructure).

---

<div class="post-metadata">

**Author:** ![Juan\_Fernando\_Schuss](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@Juan\_Fernando\_Schuss](https://forum.cursor.com/u/Juan_Fernando_Schuss)\
**Post date:** [March 31, 2026, 10:55pm UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/9 "2026-03-31T22:55:01Z")

</div>

hi! got the same problem, any news?

---

<div class="post-metadata">

**Author:** ![bastiamponsah](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bastiamponsah/32/100267_2.png) [@bastiamponsah](https://forum.cursor.com/u/bastiamponsah)\
**Post date:** [April 1, 2026, 7:59pm UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/10 "2026-04-01T19:59:01Z")

</div>

hey fellow commenters, AFAIK this one is connected: [Gitlab cloud agent - #32 by deanrie](https://forum.cursor.com/t/gitlab-cloud-agent/143689/32).

so Cursor Team is aware of the bug via @deanrie and is keeping the sibling-thread updated.  
But currently unfortunately no ETA for fix ☹

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [April 8, 2026, 7:31am UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/11 "2026-04-08T07:31:40Z")

</div>

Hey, thanks for the detailed bug report and screenshots. I can see both the GitHub access refresh failed error and the empty branch selector in the Web UI.

This is a known issue. Cloud Agents are currently trying to validate GitLab repos using GitHub credentials, and branches for GitLab group scoped projects aren’t showing up. The team is aware and the bug is logged, but there’s no specific ETA yet.

Like you found, the main thread on this is Gitlab cloud agent [Gitlab cloud agent](https://forum.cursor.com/t/gitlab-cloud-agent/143689)

Let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [April 30, 2026, 7:32am UTC](https://forum.cursor.com/t/cloud-agents-require-github-connection-and-cannot-access-gitlab-branches/153549/12 "2026-04-30T07:32:31Z")

</div>

Closed on April 30, 2026, 7:32am UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
