Cursor Cloud Agent fails with “Error loading default branch” during environment setup

Hey, this is a known issue. The GitHub installation token on our backend sometimes fails to resolve correctly, which causes the “Error loading default branch” error during Cloud Agent setup.

Several other users have reported the same thing:

The team is aware. No ETA yet, but reports like yours help with prioritization.

To help us debug on the backend, could you share:

  1. The Request ID from a failed Cloud Agent run (from the URL on cursor.com/agents)
  2. Which repo(s) are affected. Is it all repos in your org, or only specific ones?
  3. Have you tried reinstalling the Cursor GitHub App? (Note: this sometimes temporarily fixes things but isn’t reliable)

Unfortunately there’s no solid workaround right now. Retrying after some time sometimes works. Let me know if you can share those details.