Access Denied: The Cursor app needs to be installed on your repository

Describe the Bug

The Github Access section in the Background Agent Personal Configuration pane is showing an error, indicating that it cannot access my repository, even though it is able to open PRs against my repository. The repository has been (in the distant past) moved from the organization shown in the error to a new organization.

Steps to Reproduce

  1. Create a repository as a personal repository
  2. Move that repository to an organization
  3. Start using background agents (install Cursor on the repository in the new org)
  4. Observe error

Expected Behavior

Error should not appear, as Cursor is installed and operational on the repository in the new organization.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.0.0 (Universal)
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860

Does this stop you from using Cursor

No - Cursor works, but with this issue

2 Likes

I was facing the same issue…
The solution I found was to clone the repository again from GitHub once it had been moved to the organization. Hope this helps.

2 Likes

Thanks @patrickmenendez29–your suggestion made me think to check out the .git/config file. Indeed, in that file was listed the OLD org (my personal account org) as the remote:

[remote "origin"]
	url = [email protected]:old-org/lumy.git

I changed that to the new org:

[remote "origin"]
	url = [email protected]:new-org/lumy.git

And now everything works as expected.