You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(sandbox): make snapshot sandbox vcpus/memory configurable via env var #715
The snapshot build sandbox is created in packages/junior/src/chat/sandbox/runtime-dependency-snapshots.ts → createDependencySnapshot() without specifying vcpus:
awaitSandbox.create({timeout: timeoutMs,
runtime,
...(sandboxCredentials??{}),// no vcpus — falls back to Vercel's default})
Some plugin dependency sets (e.g. heavy system packages, browser runtimes) may need more memory to build successfully. Vercel Sandbox allocates 2048 MB per vCPU, so 8 GB requires vcpus: 4 and 16 GB requires vcpus: 8.
Proposed fix
Add a SANDBOX_SNAPSHOT_VCPUS env var (following the existing pattern of SANDBOX_SNAPSHOT_FLOATING_MAX_AGE_MS and SANDBOX_SNAPSHOT_REBUILD_EPOCH in the same file):
Activity
fix(github-issues): ban conventional commit prefixes in issue titles (#…
feat(sandbox): Allow larger dependency snapshot builds
feat(sandbox): Allow larger sandboxes
feat(sandbox): Allow larger sandboxes (#817)