Can't start an agent in a team owned repository

Where does the bug appear (feature/product)?

Cloud Agent (GitHub, Slack, Web, Linear)

Describe the Bug

When a repository is selected and new cloud agent prompt is passed to it. It results in an error as shown on the screenshot.
This only happens for repository that is under a group/team on gitlab. It works when the repository is under my username.

Steps to Reproduce

  1. New agent (cloud)
  2. Select repo (gitlab, group project) and a branch
  3. Try sending the message
  4. Error (as on the screenshot)

Expected Behavior

Should start the agent

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

It’s in browser.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hi @koooba!

I think the real issue is being masked here (which is something we should fix on our end).

Could you confirm two things?

  1. Is your GitLab user a Maintainer or Owner on the project?
  2. Does the project or group belong to a Premium or Ultimate plan (i.e., not Free)?

In the backend, we can see User does not have permission to create project access token, which usually means one of these two requirements isn’t being met.

Both of these are required for Cloud Agents to work on GitLab (docs). Let me know, and we can take it from there!

Hi Colin, thanks for the answer.

  1. It’s owner
  2. Free tier, but is this really necessary? That works for my other projects that I have under my username.

Cursor integrates with Gitlab via Project Access Tokens, which require a Premium or Ultimate subscription. This limitation might be different on personal projects.

Thank you!

I have just tried adding a service account to a group that owns the project, and it was added successfully. The same with the token for the SA with read/write permissions for repos. Maybe that is a solution to cursor integration for group projects?