Skip to content

feat(sandbox): Allow larger sandboxes - #817

Merged
dcramer merged 1 commit into
mainfrom
codex/sandbox-snapshot-vcpus
Jul 10, 2026
Merged

dcramer merged 1 commit into
mainfrom
codex/sandbox-snapshot-vcpus

Conversation

@dcramer

@dcramer dcramer commented Jul 10, 2026 •

Copy link
Copy Markdown
Member

Junior currently creates every Vercel Sandbox with the provider's default
resources. Memory-heavy dependency installs, browser tooling, and agent
workloads can exhaust that allocation, with no deployment-level way to
increase it.

Add SANDBOX_VCPUS and apply it to every newly created sandbox: base runtime
sandboxes, snapshot-backed runtime sandboxes, and dependency snapshot builders.
Valid positive integers are passed through resources.vcpus; unset or invalid
values keep Vercel's default. Resource sizing does not change snapshot cache
identity.

Fixes #715

@vercel

vercel Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment Jul 10, 2026 2:33pm

Request Review

@dcramer
dcramer marked this pull request as ready for review July 10, 2026 14:20
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Jul 10, 2026
@dcramer dcramer changed the title feat(sandbox): Configure snapshot build resources feat(sandbox): Allow larger dependency snapshot builds Jul 10, 2026
@dcramer
dcramer force-pushed the codex/sandbox-snapshot-vcpus branch from 496a31a to fcaf860 Compare July 10, 2026 14:23
Junior always used Vercel's default resources for new sandboxes, which can be
insufficient for large dependency installs, browser tooling, and agent work.

Add SANDBOX_VCPUS to configure base runtime sandboxes, snapshot-backed runtime
sandboxes, and dependency snapshot builders. Preserve Vercel defaults when the
value is unset or invalid.

Fixes #715

Co-Authored-By: GPT-5.6 <[email protected]>
@dcramer dcramer changed the title feat(sandbox): Allow larger dependency snapshot builds feat(sandbox): Allow larger sandboxes Jul 10, 2026
@dcramer
dcramer force-pushed the codex/sandbox-snapshot-vcpus branch from fcaf860 to 3a515ad Compare July 10, 2026 14:32
@dcramer
dcramer merged commit 6f059e1 into main Jul 10, 2026
19 checks passed
@dcramer
dcramer deleted the codex/sandbox-snapshot-vcpus branch July 10, 2026 14:44

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 3a515ad4 Deployed Jul 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(sandbox): make snapshot sandbox vcpus/memory configurable via env var

1 participant