Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
In a Project, runtime secrets added to a Cloud Agent environment for an Origin repository do not stay saved, and agents never receive them.
Steps to Reproduce
- Use a personal Cursor account to create a Project and an Origin repository. Note that Origin repositories do not appear in the Cloud Agents secrets repository list. That list shows GitHub repositories only. Therefore we are forced to use environment secrets instead of repository secrets.
- Create a Cloud Agent environment for that Origin repo.
- Enter Runtime secrets on the environment.
- The Save button stays disabled until the install or start script is edited.
- Saving is then blocked with “These scripts have not been tested in an environment build”. Choose Test new build.
- The agent builds the scripts and proposes an environment card whose body is only
installandstartscripts. - The environment is saved. The secrets are gone.
Attempted workaround:
- Submit the same four names through the environment-setup secrets card. The UI reports that secret entry completed.
- Mark the environment build active.
- Start a new background agent from the Project. It reports
environmentnull. All four variables are unset (test -nonly; values were never printed). - Starting a worker with
environment_build_idset to the active build id is refused: “Requested environment build is invalid.”
Environment public id: 54d57d8c-c6e3-11f1-ac31-5e2d0494121f (name sam74s/aiao-v3, source Override, recorded via BUILD_TRIGGER, environmentJsonPath null).
Builds that succeeded and still did not inject secrets into a later agent:
bld-20261014-02689187-1ade-4368-926e-382a575c2e9fbld-20261014-58c77c06-1f40-4b6e-961e-50f674dd7bf6bld-20261014-534e45f4-6307-4352-abea-93ac06b28118
Background agents that observed the secrets unset:
bc-a856e618-db42-456d-96f1-cb5c9acbe931(Project coordinator; secrets also unset in its environment)bc-ebf5c339-316d-5f7a-81c0-4ddfcea02876bc-673720b3-cc4e-59c3-b2bc-51fa6e7548ccbc-e9af1cb6-4038-5a8c-b55f-7d4472326236
Expected Behavior
Saving Runtime secrets on an environment should persist them without editing or rebuilding install/start. A new Cloud Agent or Project worker for that repository should start with those secrets injected. An active build id for that environment should be a valid environment_build_id. Origin repositories should be selectable where GitHub repositories are.
Operating System
Windows 10/11
Version Information
Version: 3.24.12 (system setup)
VS Code Extension API: 1.128.0
Commit: 37b865941ccb31e2fc90c685157534efca87f960
Date: 2026-10-09T20:56:41.904Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.10.0
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Grok 4.7, for the Project coordinator and the background agents that checked the secrets.
Does this stop you from using Cursor
No - Cursor works, but with this issue