Skip to content

[Bug Report] E2B Sandbox.fork logic cannot be migrated to the CubeSandbox SDK without a rewrite #1648

Description

@liciazhu

Summary

When using the CubeSandbox SDK, there is a compatibility issue with Sandbox.fork. The clone interface provided by the CubeSandbox SDK behaves differently from fork, so it cannot be directly substituted. The fork logic needs to be rewritten and a fork interface should be provided.

Environment

  • CubeSandbox version / commit:0.7.0
  • Relevant component: SDK(python/go/node)

Steps to Reproduce

E2B

from e2b import Sandbox
sb = Sandbox.create()
results = sb.fork(count=5) # always returns a list, one entry per fork
forks = [r for r in results if isinstance(r, Sandbox)]
errors = [r for r in results if not isinstance(r, Sandbox)] # per-fork failures

  1. Create a sandbox in CubeSandbox.
  2. Try to fork it with count as you would in E2B.
  3. Attempt to handle per-fork partial success/failure the E2B way.

Expected Behavior

An E2B-compatible Sandbox.fork should be provided on the CubeSandbox SDK(python/node/go)

Actual Behavior

paste logs here

Additional Context

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions