Hey @Arpit_Singh, thanks, that error message pins it down exactly!
The ports field in .cursor/environment.json expects a list of objects, not bare numbers. So this line is what’s stopping cloud agents from starting:
"ports": [8765]
Change it to:
"ports": [{ "name": "app", "port": 8765 }]
(The name is optional and just a label, so [{ "port": 8765 }] also works. If you don’t actually need the port forwarded, you can remove the ports key entirely.)
Commit that to main, then start a new cloud agent or open one of the older chats and press Retry. Both should work again, and the environment builds on the dashboard will go green on their next run.
The rest of your file (install and start) looks fine. Local agents were unaffected because they never read this file.
Sorry the error in Cursor itself was so unhelpful. We’re looking at showing the actual validation message there, the way the web version does.