Skip to content

Conversation

@thomasjpfan
Copy link
Contributor

@thomasjpfan thomasjpfan commented Dec 3, 2025

This PR adds experimental_options to Sandbox.Create in the JS and Go SDKs.


Note

Adds experimentalOptions to Sandbox.create in JS and Go, validates boolean flags, forwards them to the proto, and tests the enable_docker option.

  • Sandbox create (JS/Go)
    • Add experimentalOptions (Record<string, any> in JS, map[string]any in Go) to Sandbox.create/Sandbox.Create params.
    • Validate values as booleans and map to proto experimentalOptions (Record<string, boolean> / map[string]bool).
    • Wire through to SandboxCreateRequest.definition.experimentalOptions.
  • Tests
    • JS/Go: end-to-end tests for experimentalOptions.enable_docker presence (checks /var/lib/docker).
    • JS/Go: type validation tests (non-boolean rejected).
    • Go: gRPC mock verifies proto includes experimentalOptions.
    • JS: mock test added (skipped) pending log stream behavior.
  • Changelog
    • Note new experimental option enable_docker for Sandbox creation in JS/Go.

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

Comment on lines 768 to 769
func TestSandboxExperimentalDockerMock(t *testing.T) {
t.Skip("Unable to mock out SandboxGetLogs")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ehdr Do you think it's useful to have a skipped mock test given that we can not mock out SandboxGetLogs yet?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline! ✅

@thomasjpfan thomasjpfan force-pushed the thomasjpfan/expermental_options branch from e029bbd to b53fb57 Compare December 8, 2025 17:17
@thomasjpfan thomasjpfan merged commit 4db35e1 into main Dec 8, 2025
6 checks passed
@thomasjpfan thomasjpfan deleted the thomasjpfan/expermental_options branch December 8, 2025 18:00
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.

3 participants