Cursor Automations Agents can no longer read env variables (since last night)

  • Normal cloud agents still work and env variables gets injected to the agents VMs
  • Automations doesn’t:
    • When asked about it it can’t read any that I’ve setup in: https://cursor.com/dashboard/cloud-agents
    • None of the env variables I’ve setup are injected into the automations
    • Same issue for my colleagues
    • We have automation that has been working for months that suddenly stopped working due to this.
    • It worked last night at 19:00 CEST. This morning it doesn’t.

^These are the same repo

Where does the bug appear (feature/product)?

  • Cursor IDE
  • Cursor CLI
  • Background Agent (GitHub, Slack, Web, Linear)
  • BugBot
  • Somewhere else…

Describe the Bug
See above ^

Expected Behavior
What is meant to happen here that isn’t working correctly?

I’m expecting the automation to be able to read my env variables


For AI issues: which model did you use?
Opus-4.8, GPT-5.5


For AI issues: add Request ID with privacy disabled
For Background Agent issues, also post the ID: bc-2d8189ad-79c9-44a6-aec2-197b2969e2e9



Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the Bug Reports category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

Bug Report Template - Click to expand

Where does the bug appear (feature/product)?

  • Cursor IDE
  • Cursor CLI
  • Background Agent (GitHub, Slack, Web, Linear)
  • BugBot
  • Somewhere else…

Describe the Bug
A clear and concise description of what the bug is.


Steps to Reproduce
How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!


Expected Behavior
What is meant to happen here that isn’t working correctly?


Screenshots / Screen Recordings
If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)


Operating System

  • Windows 10/11
  • MacOS
  • Linux

Version Information

  • For Cursor IDE: Menu → About Cursor → Copy
  • For Cursor CLI: Run agent about in your terminal
IDE:
Version: 2.xx.x
VSCode Version: 1.105.1
Commit: ......

CLI:
CLI Version 2026.01.17-d239e66

For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)


For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…


Additional Information
Add any other context about the problem here.


Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!

Hi @RobertK Thank you very much for raising this. We fixed this briefly but unfortunately it regressed so we have reopened the bug report. I’ve keep you updated on the status of the resolution.

A workarounds that might help in the meantime is to launch into the same environment manually or via the API. A manually started Cloud Agent, or a POST /v1/agents call with env: { type: "cloud", name: "<your environment>" }, gets all the environment’s secrets. This is the most reliable unblock for now.

Thanks for the quick reply.

However that is not a viable solution as many of our automations are triggered via Github changes, such as label updates & PR status updates.

We’re looking forward to this being solved :smiley:

Any updates on this issue? Environment variables have been unavailable for a week now…none of our automations are working properly

Hi all, we implemented a partial fix for this last week but kept the work item open because it did not completely resolve the issue. We will keep you updated on the progress and let you know when it is completely patched. Thanks for your patience.

Any updates on this issue?

2 weeks later it’s still broken and makes the automations completely useless…

have you tried the workaround? and have you updated your cursor version?

for the workaround :

A workarounds that might help in the meantime is to launch into the same environment manually or via the API. A manually started Cloud Agent, or a POST /v1/agents call with env: { type: "cloud", name: "<your environment>" }, gets all the environment’s secrets. This is the most reliable unblock for now.

Could you elaborate? Do you mean trigger it via a curl webhook?

I asked my Cloud agent about this and give this thread as context, here’s the response:
Short answer: there isn't a public "trigger by automation-ID" REST endpoint you can call against b73525ed-…. That UUID is the dashboard/management URL, not a callable trigger. The supported way to start a run via API is to give the automation a Webhook trigger, which generates a private endpoint + key.

Our flow looks like this:

  1. PR changes from draft to open
  2. Cursor Review automation starts via this trigger
  3. If it approves it sets a label to the PR
  4. Smoke test automations triggers via this specific label added
  5. If it approves it reads a few env to push to another repo and make a human approve with a GH PAT. ← This now fails due to env variables missing :cross_mark:

Have the same problem here, the automation is set to run as myself and shared with my team, and the secret is a team shared runtime secret.

And fyi seems like two following are duplicates

Ah darn, I hadn’t noticed but this breaks basically any automations we have for our repo as we use private go modules meaning they need GitHub pat key to do any work with actual compilable code :person_facepalming:

I had a similar issue of env vars not showing up when running the app or in the terminal using Cursor Cloud. I asked using a prompt but the answer was non-actionable, something about either restarting the VM or creating a new VM. It was an impressively low quality response. After hours of experimentation, I finally stumbled upon the secretive URL. It’s in the form of https://cursor.com/dashboard/cloud-agents/environments/r/github.com/bsalita/elo_ratings where bsalita is my github repo and elo_ratings is the project name. Substitute with your repo and project. On the top-right corner, there’s a drop down menu “Start Setup Agent”. It offers two choices; “Update Existing Env” and “Start Fresh”. Clicking on either will recreate the VM with the environment’s Secrets (the secrets which were entered in the right sidebar of the environment’s page). So there’s two issues. First, when environment variables are changed, a message should appear explaining that the VM must be updated and how to do it. Better yet, a single button should appear which offers to update/start fresh.

Hi All, @here thanks for your patience here, and sorry for the extended disruption.

The fix for this has now landed: automations triggered by GitHub events (pull request changes, pushes, comments, and label updates), as well as CI check and Test Run triggers, will again have your configured secrets and environment variables injected, and setup/update scripts will run as expected. This covers the PR-label-triggered flows several of you described.

Could you re-run your affected automations and confirm secrets are now available in the run? If anything still looks off, please reply with a recent Background Agent ID (bc-...) and a quick note on how the automation is triggered and whether the secret is a personal or team runtime secret. A couple of you mentioned team-shared runtime secrets on git-triggered runs, so I want to make sure that specific case is fully covered for you and will keep watching this thread.

Hi Kevin! It looks like secrets are working fine on our side.
Thank you so much!

Hi Laura! Thank you for confirming, I’m very glad to hear it.