I have a environment.json that uses a Dockerfile to build my environment. It’s been working well, but doing printenv in the Background Agent’s Terminal doesn’t show any of the secrets I’ve set in my Cursor Settings.
Are these secrets available to the host building the Dockerfile or are they supposed to be availble to the agent in the resulting container?
Steps to Reproduce
Setup background agents using a Dockerfile.
Add a secret
printenv in the agent’s terminal.
Expected Behavior
I expect the secret to be available to the agent in their environment.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Also, if scripts in the install command depend on the secret the container won’t even start. If no a fix, what are workaround we can do in the meantime?
This is probably not related to the app, but a few days later and nothing, still failing in
I did a printenv in my environment.json install command and I see the variables there. Not sure if something changed but it seems fixed now. @pandaiolo and @riverchen, maybe you can do this too and see if it works for you?