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

**URL:** <https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019>\
**Category:** Help\
**Tags:** automations, cloud-agents\
**Created:** [June 11, 2026, 1:20pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019 "2026-06-11T13:20:50Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobertK](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@RobertK](https://forum.cursor.com/u/RobertK)\
**Post date:** [June 11, 2026, 1:20pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/1 "2026-06-11T13:20:50Z")

</div>

- 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](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

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 11, 2026, 1:21pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/2 "2026-06-11T13:21:01Z")

</div>

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!
> 
> 1. …
> 2. …
> 3. …
> 
> * * *
> 
> **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
> 
> ```auto
> 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!

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [June 11, 2026, 8:13pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/8 "2026-06-11T20:13:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![RobertK](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@RobertK](https://forum.cursor.com/u/RobertK)\
**Post date:** [June 12, 2026, 7:45am UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/9 "2026-06-12T07:45:59Z")

</div>

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 😃

---

<div class="post-metadata">

**Author:** ![cvbuelow](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/cvbuelow/32/111685_2.png) [@cvbuelow](https://forum.cursor.com/u/cvbuelow)\
**Post date:** [June 18, 2026, 8:49pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/11 "2026-06-18T20:49:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [June 18, 2026, 9:35pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/12 "2026-06-18T21:35:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mattoracz](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mattoracz](https://forum.cursor.com/u/mattoracz)\
**Post date:** [June 25, 2026, 2:13pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/13 "2026-06-25T14:13:21Z")

</div>

Any updates on this issue?

---

<div class="post-metadata">

**Author:** ![Serge\_Semenov](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Serge\_Semenov](https://forum.cursor.com/u/Serge_Semenov)\
**Post date:** [June 26, 2026, 12:08am UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/14 "2026-06-26T00:08:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tom\_Coustols](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tom_coustols/32/97175_2.png) [@Tom\_Coustols](https://forum.cursor.com/u/Tom_Coustols)\
**Post date:** [June 26, 2026, 12:49am UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/16 "2026-06-26T00:49:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![RobertK](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@RobertK](https://forum.cursor.com/u/RobertK)\
**Post date:** [June 26, 2026, 4:00pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/18 "2026-06-26T16:00:11Z")

</div>

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 ❌

---

<div class="post-metadata">

**Author:** ![zyfihx](https://avatars.discourse-cdn.com/v4/letter/z/41988e/32.png) [@zyfihx](https://forum.cursor.com/u/zyfihx)\
**Post date:** [July 1, 2026, 1:51pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/19 "2026-07-01T13:51:26Z")

</div>

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

- **[Automation-launched cloud agents get none of their environment's secrets/env vars; API launches into the same environment get all of them (multi-repo environments)](https://forum.cursor.com/t/automation-launched-cloud-agents-get-none-of-their-environments-secrets-env-vars-api-launches-into-the-same-environment-get-all-of-them-multi-repo-environments/163026)**
- **[Cloud Automation: dashboard secret injects on scheduled runs but not on GitHub label triggers](https://forum.cursor.com/t/cloud-automation-dashboard-secret-injects-on-scheduled-runs-but-not-on-github-label-triggers/163059)**

---

<div class="post-metadata">

**Author:** ![zyfihx](https://avatars.discourse-cdn.com/v4/letter/z/41988e/32.png) [@zyfihx](https://forum.cursor.com/u/zyfihx)\
**Post date:** [July 2, 2026, 8:45am UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/20 "2026-07-02T08:45:55Z")

</div>

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 🤦

---

<div class="post-metadata">

**Author:** ![bsalita](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bsalita](https://forum.cursor.com/u/bsalita)\
**Post date:** [July 3, 2026, 1:31pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/21 "2026-07-03T13:31:19Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [July 3, 2026, 6:29pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/23 "2026-07-03T18:29:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Laura\_Sofia\_Marcenar](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@Laura\_Sofia\_Marcenar](https://forum.cursor.com/u/Laura_Sofia_Marcenar)\
**Post date:** [July 3, 2026, 7:47pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/24 "2026-07-03T19:47:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [July 3, 2026, 8:41pm UTC](https://forum.cursor.com/t/cursor-automations-agents-can-no-longer-read-env-variables-since-last-night/163019/25 "2026-07-03T20:41:51Z")

</div>

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