I’m trying to to dispatch cloud agents but they’re failing since they can’t list branches of repos within my organisation (I’m admin and I’ve recently allowed access to all repos of the org)
when requesting for the branches /api/background-composer/get-repository-branches I get a 401 with a ERROR_GITHUB_APP_NO_ACCESS and “Failed to create installation access token for installation (redacted)”
I’ve uninstalled and installed again the Github App but still no luck.
Could someone help?
Steps to Reproduce
I open the Cursor Agent dashboard, select a repo and when I try to select a branch, none are available
Expected Behavior
I open the Curso Agent dashboard, select a repo I should be able to pick the base branch for the cloud agent to start
Operating System
MacOS
Version Information
(should be irrelevant since I’m talking about the web UI)
Hey, thanks for the report. This is a known issue. The GitHub installation token on our backend can sometimes expire or not match, so Cloud Agents can’t access org repos even after reinstalling the GitHub App.
To help us debug this on the backend, could you share:
The installation ID from the error (you mentioned it was redacted. We need it to find the issue on our side)
The request ID from one of the failed attempts (from the URL on cursor.com/agents)
Does this affect all repos in your org, or only some?
Unfortunately, there’s no reliable workaround right now. Reinstalling the GitHub App sometimes temporarily fixes specific repos, but like you noticed, it’s inconsistent.
I’ll post an update here as soon as we have more info.
I have the same problem. On the onboard page (https://cursor.com/onboard), I get the error message “Error loading default branch” and in the response of “api/background-composer/get-repository-branches”, the status code 401 and error “ERROR_GITHUB_NO_USER_CREDENTIALS” is displayed. Incidentally, GITHUB is not correct in my case, as we use GitLab (Github is not connected), but perhaps this can be ignored.
The repositories are also not fully loaded; only a few are displayed in the drop-down list, but when you click on “Refresh”, /api/dashboard/fetch-all-installation-repos (POST) returns “405 Method Not Allowed” after a while… searching dynamically is not working. I hope that’s not due to the sheer number of repositories.