#199
fix: Cursor Docker install and playground Next 16 / PORT
Summary
- Fix Cursor on Docker:
node:*-slimhas nocurl, so the official installer failed withcurl: command not found. After a successful install,spawnSync agentstill missed~/.local/binbecause sandbox exec used a root-oriented PATH andHOME=/root. Setup now installscurl(and fails if apt does), setsHOMEto thenodeuser home, and puts~/.local/binon PATH. The Cursor runner resolves the installer symlink directly. - Playground launch now honors
--port/-p/PORT(was hardcoded to 3000). Next 16.2.4+ crashes on published playground builds that omitroutes-manifest.json#onMatchHeaders(Cannot read properties of undefined (reading 'map')). The playground writes an empty array beforenext start, prefers the monorepo /file:playground bin, and falls back tonext devwhen there is no productionBUILD_ID.
Context
Running Cursor evals in Docker (sandbox: 'docker') and PORT=3001 npx @vercel/agent-eval playground both failed from a file: consumer. These are the harness-side fixes so Docker Cursor installs and the playground start path work on Next 16.3.
Testing
- Unit tests: Cursor runner PATH resolution, Docker apt/PATH helpers, playground port/bin/manifest/
BUILD_IDresolution, CLI--helpfor-p/PORT. - Docker canary: sandbox user can run a
~/.local/binbinary andcurl --version. - Manual:
PORT=3011 npx @vercel/agent-eval playgroundagainstpicogrid-ui-evals— banner printed 3011, Next 16.3.4 started innext dev, and home / experiments / compare / evals / a failed Cursor run all loaded.
Issues
None.
Made with Cursor
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
Security
View full report