Stuck at 'Connect to GitHub' Despite Full Authorization – Cursor 0.50 Background Agent Setup Bug

:lady_beetle: Bug Description:
I am unable to connect GitHub for background agents in Cursor, even though I granted full authorization. The interface says “GitHub connected,” but in Cursor, the “Connect to GitHub” button keeps spinning and does not proceed to the next step.

:counterclockwise_arrows_button: Steps to Reproduce:

  1. Open Cursor and attempt to set up a Background Agent.
  2. Click “Connect to GitHub.”
  3. Authorize Cursor with full permissions on GitHub.
  4. After being redirected back, Cursor still shows “Connect to GitHub” spinning and does not recognize the connection.

:camera: Screenshots:
Attached: Screenshot 1 shows the Cursor setup screen with the spinning connect button; Screenshot 2 shows the successful GitHub connection confirmation.


:laptop: System Info:

  • Device: MacBook Pro M2
  • OS: macOS Sequoia 15.3.1
  • Cursor version: 0.50

:white_check_mark: Forum Check:
I have checked the forum and have not seen this issue reported by anyone else.

:prohibited: Usability Impact:
Yes, this issue blocks me from using the background agent feature entirely.

Hey, it seems your images didn’t attach.

Just updated the post, forgot to attach the images, thanks for the heads up.

1 Like

Same issue here. Latest version as of this post, on MacOS. Enabled GitHub access to my repos, first just a single one, then all to see if that was the problem and I still get “No Repos Connected”.

Restarted several times, nothing.

Hey any update on this issue?

I was having the same exact problem as original poster, and I was able to fix it by signing out of the Cursor IDE and then signing back in. I am using Cursor 0.50.7 on Manjaro Linux.

I am also stuck there. Background Agent settings is only recognizing upper-level folder /mnt/d/ai/projects directory, and not list of actual projects underneath (i.e, /mnt/d/ai/projects/mcp-consul). Background Agent setting is complaining that no git was initialized at the parent-project root directory.

How can I change the directory to a project directory that I need ?

Answering my own qustion: you need to open directory with your project on directly. You cannot point Cursor to parent directory containing all projects and then change directory to your desired project and expect Background Agent to work. Just go File → New window and open the project directly and it will work.