Where does the bug appear (feature/product)?
Cloud Agent (GitHub, Slack, Web, Linear)
Describe the Bug
Intermittent GitLab Cloud Agent failures on GitLab’s group repo — “invalid_token”, “development branch not found” and “GitLab is rate limiting requests”
Steps to Reproduce
Basically I have developed a automation workflow where JIRA, cursor and GitLab are connected and the cursor cloud agent APIs are used when a condition is matched on JIRA.
Steps to Reproduce
Prerequisites
- GitLab account with Maintainer access on
dgs-dev/clearsite/clearsite-core dgs-devgroup is on GitLab Premium- Cursor account with GitLab integration connected (Dashboard → Integrations → GitLab)
Setup (one-time)
- Open integrations in cursor web dashboard
- Connect GitLab and complete OAuth authorization
- Click Manage next to GitLab → Sync Repos
- Confirm
dgs-dev/clearsite/clearsite-coreappears in the repo list
Reproduce the failure
5. Open Cloud Agents:
- Web: https://cursor.com/agents
- OR Desktop: Agent input → select Cloud
- Select repository:
gitlab.com/dgs-dev/clearsite/clearsite-core - Select branch:
development - Enter any prompt (e.g. “List files in the repo root”) and start the agent
- Observe the result:
- Sometimes fails immediately with
invalid_token(401) - Sometimes fails with
development branch not found(400) - Sometimes
GitLab is rate limiting requests(429) - Sometimes agent starts successfully (intermittent)
- Sometimes fails immediately with
Additional observation
10. In GitLab → Project → Settings → Access Tokens, a new Cursor project access token is auto-created (Developer role) when the agent attempts git access
11. Re-run steps 5–8 multiple times without changing configuration — errors vary between attempts
Expected Behavior
Per Cursor GitLab documentation, Cloud Agents should work with GitLab repositories when:
- The group is on a paid GitLab plan (Premium/Ultimate)
- The connecting user has Maintainer access for initial setup
- GitLab is connected in Cursor Integrations and repositories are synced
When we start a Cloud Agent on dgs-dev/clearsite/clearsite-core and select branch development, we expect:
- The agent launch to succeed every time (not intermittently)
- Branch
developmentto be found and used (it exists on the remote) - No misleading errors such as
invalid_token,development branch not found, or GitHub-related error messages - Cursor to use a valid project access token for git read/write operations
- The agent to run to completion or fail with a clear, accurate error if something is genuinely misconfigured
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Launch path: Cursor Web UI (https://cursor.com/agents)
Additional Information
- Intermittent failures: same steps produce different errors (
invalid_tokenvsdevelopment branch not foundvsGitLab is rate limiting requests) - Branch
developmentexists on GitLab remote (not a missing branch issue) dgs-devgroup is on GitLab Premium; integration user is Maintainer on group/subgroup/project
Does this stop you from using Cursor
No - Cursor works, but with this issue


