The version of Cursor IDE is largely irrelevant for this current issue. If you have Cursor IDE open, connected to a local devcontainer (macOS host, Linux[Ubuntu] devcontainer) and you then click on “Agents Window”, it now successfully opens a devcontainer [good, well done Cursor team]. However, if at any time later, I close this “Agents Window”, it kills ALL devcontainers (both Agents Window) and also my local one. That is bad.
Steps to Reproduce
Open Cursor on macOS
Open Linux/Ubuntu devcontainer
click on “Agents Window”, loads up a devcontainer
Close Agents Window. Wait <60 secs and your original devcontainer will now be disconnected from you, forcing a rebuild/reopen/re-connection
Expected Behavior
Cursor does not do bad things like disconnect my local devcontainer just because I closed the “Agents Window”
There’s a workaround for the dev container getting stopped when you close the Agents Window. Add this at the top level of your devcontainer.json, then rebuild or reopen the container once:
"shutdownAction": "none"
With that set, Cursor won’t stop the container automatically when a window closes or lets go of its connection, so the Editor window and the Agents Window can share it without knocking each other off. The trade-off is that the container keeps running after you quit Cursor until you stop it yourself (with docker stop <name> or from Docker Desktop).
If you still see the disconnect with this in place on the latest version, let us know here.