Describe the Bug
Setup instructions configured in a Cloud Agent environment’s Install script field or in .cursor/environment.json do not appear to take effect.
Steps to Reproduce
- Add setup instructions using either the environment’s Install script field or .cursor/environment.json.
- Start a Cloud Agent using that environment.
- Check whether the configured setup was applied.
Expected Behavior
The configured setup runs and its changes are available to the agent.
Operating System
MacOS
Version Information
This is about Cursor Cloud Agents
Additional Information
The expected setup changes are not present. It is unclear whether the instructions are skipped or fail during execution.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
Hey @badarinath_reddy,
The Install script runs when a Build is created, not when each agent starts, so changes only apply once a new Build finishes. Could you try this?
- On the Cloud Agents dashboard, check whether more than one environment is listed for this repo, and open the one with your install commands.
- Add a comment to the Install script, save, then remove it and save again.
- In the Builds tab, select Trigger build. When it finishes, check that Build’s logs for your install commands, and start an agent from it to confirm.
If your commands aren’t in the Build’s logs, reply with the environment name and roughly when you triggered the Build, and we’ll dig in.
Also, .cursor/environment.json is only read from the default branch, and variables you export in the install script don’t carry over to the agent (use Secrets for those).