I’m experimenting with setting up the environment for Cloud agents using environment.json and a Dockerfile.
One of my attempts was successful (no errors during docker build and no errors in the install script) and a snapshot of the environment was saved.
Now when I start a new chat with an agent, the environment is always restored from that snapshot, despite the fact that I’ve already pushed some changes to the Dockerfile and to the install script (but not to the environment.json itself - maybe this is the problem?).
I tried waiting for ~8 hours, I tried to create a separate branch with the changes, nothing helped.
How do I force the environment to rebuild?
Update: I did try to make a noop change to my environment.json just to make sure I see the latest version in “Cloud Agents > Environments” settings. It still did not force the full rebuild from the latest Dockerfile and restored from the old snapshot again. That actually made things worse because now it used the latest install script, that depends on the latest Dockerfile, and the install script failed with errors.