Skip to content

fix: Cursor Docker install and playground Next 16 / PORT - #199

Open
ml-picogrid wants to merge 3 commits into
vercel-labs:mainfrom
ml-picogrid:feat/cursor-docker-sandbox
Open

fix: Cursor Docker install and playground Next 16 / PORT#199
ml-picogrid wants to merge 3 commits into
vercel-labs:mainfrom
ml-picogrid:feat/cursor-docker-sandbox

Conversation

@ml-picogrid

Copy link
Copy Markdown

Summary

  • Fix Cursor on Docker: node:*-slim has no curl, so the official installer failed with curl: command not found. After a successful install, spawnSync agent still missed ~/.local/bin because sandbox exec used a root-oriented PATH and HOME=/root. Setup now installs curl (and fails if apt does), sets HOME to the node user home, and puts ~/.local/bin on 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 omit routes-manifest.json#onMatchHeaders (Cannot read properties of undefined (reading 'map')). The playground writes an empty array before next start, prefers the monorepo / file: playground bin, and falls back to next dev when there is no production BUILD_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_ID resolution, CLI --help for -p / PORT.
  • Docker canary: sandbox user can run a ~/.local/bin binary and curl --version.
  • Manual: PORT=3011 npx @vercel/agent-eval playground against picogrid-ui-evals — banner printed 3011, Next 16.3.4 started in next dev, and home / experiments / compare / evals / a failed Cursor run all loaded.

Issues

None.

Made with Cursor

ml-picogrid and others added 3 commits September 2, 2026 16:36
node:*-slim has no curl, so Cursor's official installer failed after a
silent apt step. Install curl with git and fail the sandbox if apt does.

Co-authored-by: Cursor <cursoragent@cursor.com>
The CLI ignored PORT and always forwarded --port 3000. Next 16.2.4+
crashes on published playground builds that omit onMatchHeaders; repair
the manifest, prefer the monorepo playground bin, and fall back to
next dev when there is no production BUILD_ID.

Co-authored-by: Cursor <cursoragent@cursor.com>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​next@​16.1.6 ⏵ 16.3.461 -3100 +7590 +19970
Updatednpm/​postcss@​8.5.6 ⏵ 8.5.23100 +1100 +2481 -193 -1100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant