When working with a lerna monorepo and/or node.js workspaces, the agent will always cd packages/package && npm install
, or cd packages/package && npm run build
etc. Even if its already in that folder
this is with claude 4 at least, not sure if other models are better
thankfully you let us edit the commands before they are executed now, but it would be nice if it at least knew what folder it was in, or if not then maybe the cursor terminal tool could be upgraded to better handle these situations so that the agent could be left on its own