Skip to content

add vcpu, memory, disk config#66

Merged
Dingway98 merged 2 commits intomainfrom
sandbox-config
Mar 30, 2026
Merged

add vcpu, memory, disk config#66
Dingway98 merged 2 commits intomainfrom
sandbox-config

Conversation

@Dingway98
Copy link
Copy Markdown
Contributor

@Dingway98 Dingway98 commented Mar 30, 2026

Note

Medium Risk
Moderate risk because it changes the sandbox create payload shape sent to the API and normalizes new wire fields on getDetail/list, which could break compatibility if server contracts differ.

Overview
Supports sandbox resource sizing by adding optional cpu, memoryMiB, and diskMiB to image-based sandboxes.create() while explicitly disallowing these fields for snapshot launches (runtime validation + type-level contract tests).

The service now serializes these options to the API’s wire names (vcpus, memMiB, diskSizeMiB) and normalizes getDetail()/list() responses back to the SDK’s cpu/memoryMiB/diskMiB fields; SandboxHandle exposes the new sizing getters. Documentation examples and package version are updated, and an e2e test verifies sizing is applied inside the runtime.

Written by Cursor Bugbot for commit 0b04410. This will update automatically on new commits. Configure here.

@Dingway98 Dingway98 merged commit dc68dc4 into main Mar 30, 2026
1 check passed
@Dingway98 Dingway98 deleted the sandbox-config branch March 30, 2026 17:07
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.

2 participants