Bugbot fails on GitLab

Where does the bug appear (feature/product)?

BugBot

Describe the Bug

Bugbot does not run on GitLab after being triggered from a merge request comment.

When I comment bugbot run verbose=true, the bot recognizes the request and posts a request ID, but then fails with:

“Bugbot couldn’t run. Something went wrong.”

This happens even though:

  • the GitLab webhook test returns HTTP 200
  • webhook delivery appears successful
  • the bot account has Maintainer access to the project

So the command is being received, but Bugbot fails before completing the review.

Bugbot request id: serverGenReqId_4dfbc125-a3f8-4c78-ade6-8f65594f5795

Steps to Reproduce

  • Configure GitLab webhooks for Bugbot
  • Confirm the webhook test returns HTTP 200
  • Ensure the bot user has Maintainer role in the GitLab project
  • Open a merge request
  • Add the comment: bugbot run verbose=true
  • Observe that the bot posts a request ID, then returns “Bugbot couldn’t run”
Bugbot request id: serverGenReqId_4dfbc125-a3f8-4c78-ade6-8f65594f5795

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 2.6.14
VSCode Version: 1.105.1
Commit: eb1c4e0702d201d1226d2a7afb25c501c2e56080
Date: 2026-03-08T15:36:54.709Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

Additional Information

GitLab project using webhooks, not using the Cursor GitLab integration.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report and the request ID.

One important detail: you mentioned a “GitLab project using webhooks, not using the Cursor GitLab integration.” BugBot for GitLab needs to be set up through the Cursor Dashboard (Integrations tab > Connect GitLab), not via manual webhooks. Manual webhooks alone won’t give BugBot the access it needs to complete reviews.

A couple of quick questions to narrow this down:

  1. Are you on GitLab.com or a self-hosted instance?
  2. What GitLab plan are you on: Premium or Ultimate? (BugBot requires a paid GitLab plan for project access tokens.)
  3. Have you tried setting up the connection through https://cursor.com/dashboard?tab=integrations > Connect GitLab?

The setup steps are documented here: Bugbot | Cursor Docs. Please check the GitLab.com or GitLab Self-Hosted section depending on your setup.

Let me know and we can go from there.

Hi, thanks for the response.

To clarify our setup:

  1. GitLab instance
    We are using GitLab.com, not a self-hosted instance.

  2. GitLab plan
    We are on a paid GitLab plan.

  3. Cursor Dashboard integration
    Yes, we have already connected GitLab through Cursor Dashboard → Integrations → Connect GitLab.

  4. Current configuration
    The project has a Cursor webhook configured that sends events to the Cursor GitLab webhook endpoint, with push events, merge request events, issues, comments, and emoji events enabled. SSL verification is also enabled.

This exact setup is already working correctly in several of our other GitLab projects, which is why the behavior in this particular repository is unexpected.

Please let us know if there is anything specific about this repository that could prevent BugBot from accessing it or if there are additional checks we should perform.

Thanks in advance!

Thanks for the detailed follow-up. Since the setup looks correct and everything works in your other repos, this seems like a repo-specific issue on our side.

A couple quick things to check or confirm before I escalate:

  1. Is BugBot explicitly enabled for this specific repo in the Dashboard > Bugbot tab? Sometimes after syncing repos, a new repo needs to be enabled manually.
  2. Is this MR created from a branch within the same project, or from a fork?
  3. Is there anything noticeably different about this repo compared to the working ones, like visibility settings, repo size, subgroups, or special characters in the project path?

Once you confirm the above, I’ll pass this to the team to investigate.

Thanks for the quick response!

  • Bugbot is explicitly enabled for this repository in the Dashboard → Bugbot tab. I enabled it after syncing repositories, but the issue still occurs.

  • The merge request is created from a branch within the same project (not from a fork). It is the initial commit.

  • I don’t see any significant differences between this repository and the others where Bugbot works. The repository uses our standard project settings. The only notable detail is that the project name contains a - character.

Please let me know if there’s anything else I should check or provide to help diagnose the issue.

Thanks in advance!

Hello,

Is there any update on this?

Thank you!

Hey, sorry for the delay.

Since the setup looks fine and it works normally in your other repos, it seems like we need to investigate this on our side.

No ETA yet, but we’re tracking your report. I’ll update this thread as soon as we have news.

One quick thing while we wait, could you try creating a second MR in this same repo, even a very simple one, and run BugBot there? I want to confirm the issue reliably reproduces in this repo and isn’t something specific to that one MR.

Hello, thank you for your response.

We’ve opened another MR and tried running BugBot there, but we have the same issue in this MR as well:

Something went wrong. Try again by commenting “Cursor review” or “bugbot run”, or contact support (requestId: serverGenReqId_a91ea74a-454f-4d5f-9298-ed50473cf2f6).

Thanks for checking it on the second MR, that confirms the issue is repo-specific.

Quick question: can you share the full GitLab path to the project in the group/subgroup/project-name format? You mentioned there’s a hyphen in the name, and I want to make sure parsing isn’t breaking on our side. This will help speed up the investigation.

I’ll update the thread as soon as I hear back from the team.

Thanks for your response!

The full GitLab path is group/project-name, with no subgroup.

Thanks in advance!

Hello,

Is there any update on this?

Thank you!

Hey, thanks for your patience, we’ve figured out the cause.

GitLab is returning null in diff_refs.base_sha for your MRs. Bugbot uses this value to find the common ancestor between branches and compute the diff. When it’s empty, Bugbot crashes instead of showing an error. This can happen when the MR was just created, the branches don’t share history, or GitLab hasn’t finished calculating the merge ref yet.

Workaround: rebase or re-push the MR branch. After that, GitLab will recalculate diff_refs, and Bugbot should run normally on the next attempt.

This is a bug on our side, we should handle this case properly. The team is aware, but there’s no timeline yet.

Let me know if the workaround helped.

Thank you for your response!

We will test this workaround and let you know.

1 Like