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.
Steps to Reproduce:
Open Cursor and attempt to set up a Background Agent.
Click “Connect to GitHub.”
Authorize Cursor with full permissions on GitHub.
After being redirected back, Cursor still shows “Connect to GitHub” spinning and does not recognize the connection.
Screenshots: Attached: Screenshot 1 shows the Cursor setup screen with the spinning connect button; Screenshot 2 shows the successful GitHub connection confirmation.
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”.
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.
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.