"New agent" from a Team environment fails with "This environment is unavailable or you do not have access to it"

Where does the bug appear (feature/product)?

Cloud Agent (GitHub, Slack, Web, Linear)

Describe the Bug

I’m the only member and Admin of my team. I have a Team-scoped Cloud Agents environment for a single GitHub repo (the org is connected to the team).

Clicking “New agent” from that Team environment opens the Agents web page, but it shows “This environment is unavailable or you do not have access to it” and the agent starts on a new auto-created Personal environment, without the team secrets or install/start scripts.

Also, the setup flow (“Save Environment as”) only offers Scope “Personal”; Team is not selectable.

Same account on the dashboard and the Agents page, team selected. Happy to share details privately with staff.

Steps to Reproduce

  1. Open the Cloud Agents dashboard and open a Team-scoped environment (single GitHub repo, org connected to the team).
  2. Click “New agent”.
  3. The Agents web page opens with the environment id in the URL.
  4. After ~1s the params are stripped and a toast says: “This environment is unavailable or you do not have access to it.”
  5. The agent starts on a new auto-created Personal environment, without the team secrets or install/start scripts.
  6. Separately: run “Start setup agent” on the repo; at “Save Environment as”, Scope only offers “Personal”, Team is not selectable.

Operating System

Other

Version Information

cursor or grok web app

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi,

Thanks for the detailed report. To narrow it down, could you try one more thing and tell us what happens?

  1. On cursor.com, open Cloud Agents → Environments and open your Team environment’s edit view.
  2. Expand Secrets. Does the list load, or do you see an error?
  3. Click New Secret, choose Team as the scope, enter any test name and value, and click Save.
  4. Let us know whether the save works. If it fails, please send the exact error text, or a screenshot.

You can delete the test secret afterwards.

Thanks!

Hi,
these are the screenshot with the errors:

I have recently switched my plan to the X unified plan and then change to Team. Before that I was on Pro+ plan

Thanks for checking, that confirms it. This is a known issue with team-scoped Cloud Agents environments and secrets on your team type, and we’re tracking a fix. I’ve added your report.

In the meantime, if you’re the only member of your team, you can use Personal scope instead:

  • Run Start setup agent on the repo again and save the environment as Personal. Your install and start scripts are saved with it, and New agent from that environment will work.
  • Add your secrets with Personal scope instead of Team.