Cloud agents intermittently start with no secrets injected

Since about 14:55 UTC on 28 Oct 2026, every Cloud Agent run on one of our environments starts with no secrets at all on the VM. Before that, the same fault happened intermittently from 09:32 UTC. This agent is now down in production: it cannot read Salesforce in any conversation.

On an affected run, none of these reach the machine: the envVars from the launch request, the personal secrets on the launching account, or our team-wide secret CURSOR_CLOUD. Cursor’s own CURSOR_* variables are present.

On the affected machines that we checked, CLOUD_AGENT_ALL_SECRET_NAMES lists none of the personal secrets that the machines with secrets list. So the machine is not assigned the secrets at all. It is not that the values fail to arrive.

Earlier today, runs from the same API key and the same environment got their secrets in the same minute as runs that did not. We cannot find a difference on our side between the two.

Setup

  • Launch path: Cloud Agents API, API key gtm-agents
  • Environment id: a708dcab-c71d-11f1-ac31-5e2d0494121f (the same for every run below)
  • Secrets expected on every run:
    • four SF_READER_* secrets, set as personal secrets on the launching account and scoped to the repository (some runs also pass them as launch envVars)
    • the team secret CURSOR_CLOUD

What we see

  • The run’s event stream shows that the first command’s preflight check reports all four SF_READER_* variables as not set.
  • An environment probe on one of the affected VMs lists Cursor’s own CURSOR_* variables, but no CURSOR_CLOUD.
  • On the runs at 15:10 UTC, CLOUD_AGENT_ALL_SECRET_NAMES lists none of the four personal secrets. On the runs with secrets at 10:55 UTC, the same variable lists them.
  • The launch envVars field is not the cause. The five lost runs between 10:35 and 10:42 UTC and the runs at 15:10 UTC had no launch envVars. Their secrets were set only as personal secrets, and they still did not arrive.

Affected runs (28 Oct 2026, times in UTC)

All runs below use the same API key and the same environment.

No secrets delivered:

Time (UTC) Agent id Note
09:32 bc-1271b867-c490-4f35-be8c-2e4df65a3015
10:31 bc-8a6ee6aa-fa51-4175-9a79-4d3958428acc
10:32 bc-f6e3fa27-368b-4ad7-ba48-b6005a7740c6
10:35 bc-c45ddde3-aca0-4a8b-9374-fb5c30831fc4 no launch envVars
10:36 bc-2e6cddad-79c9-478d-a804-8b2f5d8c3486 no launch envVars
10:41 bc-69f211c2-5e8d-4ca4-b843-b5c441119483 no launch envVars
10:41 bc-89998be7-4bea-44f8-8e73-8e532a665496 no launch envVars
10:42 bc-edf9653e-02bd-44c3-8456-f84e4e9106d4 no launch envVars
14:59 bc-44b2fb97-6cc8-451d-b72a-0253feb33b07 real user conversation
15:10 bc-a863225b-6b8e-441e-8f60-86b41a4a2b72 test run, no launch envVars, manifest lists no personal secrets
15:10 bc-bcfb804f-7ad5-4663-87ed-966461c2dcd5 test run, no launch envVars, manifest lists no personal secrets

Secrets delivered (for comparison):

Time (UTC) Agent id Note
10:24 bc-8a1538eb-53e9-4d5d-bb4e-4aa5e442ff44
10:31 bc-c7fb042d-80c7-4f1b-a4a7-1ef2f71c6da3
10:31 bc-eda71b40-a92d-4705-a446-6ef1fd8dc1f1
10:32 bc-48cdbd50-1003-476f-873a-747dfabec7c7
10:32 bc-a8a15003-daad-4a40-ae25-5a7c320413a2
10:32 bc-cd4d18fc-b25d-4e61-b917-8a3b9299b186
10:50 bc-48f8e8cf-a642-4fa0-b452-8581e7afd1fd
10:55 bc-fc2f3a1d-9077-4a74-8005-3f2ae5ed3058 test run, no launch envVars
10:55 bc-60ee9734-5aa7-4347-9791-a82789104971 test run, no launch envVars
10:55 bc-4d68f34e-d957-4265-803c-c0ecb9e894c0 test run, no launch envVars

Evidence

We can send event stream excerpts and environment probe output for any of the runs above. Our preflight check now records CLOUD_AGENT_INJECTED_SECRET_NAMES and CLOUD_AGENT_ALL_SECRET_NAMES together with the variables that are really set.

Impact

Each run without secrets fails, because it cannot read Salesforce. On 28 Oct before 14:55 UTC, we relaunched a failed run up to two times, so users saw the failure less often. Since 14:55 UTC every run fails, so the relaunches do not help. Users of this agent get the answer that Salesforce could not be read, in every conversation.

Can you please check?

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)?

  • Editor, Tab & Chat (autocomplete, Composer, in-editor agent)
  • Terminal & commands
  • Models, pricing & API keys (availability, Auto/Max, BYOK/Bedrock)
  • MCP & tools
  • Cloud Agents & Automations (cursor.com/agents, scheduled/event)
  • BugBot & Code Review
  • Cursor CLI
  • Cursor Mobile
  • Remote (SSH / Dev Containers / WSL)
  • Account, billing & login
  • Something 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
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!

UPDATE: We are starting to see recovery and getting the secrets on first try on launch of new agents, but this issue has happened twice today, and we are not sure if it will happen again or not

Hi @youssefe, glad it’s recovering. From your agent ids this looks like a timing issue on our side, not a problem with how your secrets are set up. On agents that start from a saved environment build, your secrets and launch envVars are applied a second or two after the machine comes up, and on the failed runs your preflight ran inside that window. Because it depends on start-up timing, it can come back, so it’s worth guarding against. I’ve passed this to the team.

In the meantime, having the preflight wait for the variables should protect the agent: retry the check for up to about 30 seconds (for example a loop that sleeps 2 seconds until the SF_READER_* variables are set) before treating them as missing. If it happens again, could you let us know whether a retried check finds all of them, including CURSOR_CLOUD?

First of all, thank you Colin for your support as always!

Second, it has happened again now and we just had another failure, we will check adding a retrial mechanism as you recommended and will let you know

Hey @youssefe,

Quick update: we found the cause on our side and turned off the change that triggered it at around 17:20 UTC today. New agents should get all of their secrets and launch envVars on the first command again. The failure in your last message happened shortly before we turned it off.

A fix for the underlying timing has also landed, so this shouldn’t come back when that change is turned back on.

Keeping the retry in your preflight is still a reasonable safety net. If you see a run start without its secrets again, please post the agent id here and we’ll take a look.

Thanks again Colin, we didnt face any problems today and we have adopted a retry mechanism as well.