python/sandbox/v0.1.10

opensandbox-group/OpenSandboxpython/sandbox/v0.1.10Jun 8, 2026by ninan-nn

AI Summary

Added skip_accumulation, secure_access, and PVC fields to the Python SDK. Improved pool logic to skip idle sandboxes close to expiry and fixed SSE parser compatibility.

Key Highlights

  • Added skip_accumulation support for execution handlers
  • Added secure_access support for sandbox creation
  • Pool skips idle sandboxes close to expiry to avoid race conditions
  • SSE parser now tolerates traceback: null for mixed deployments

New Features

  • skip_accumulation support for long-running executions
  • secure_access support for sandbox creation
  • PVC auto-provisioning fields support
  • Pool warmup renews sandboxes before returning to idle state

Full Release Notes

## What's New

### Behavior Changes

- Sandbox Pool now skips idle sandboxes that are too close to expiry before returning them from `pool.acquire()`. This avoids a race where `checkReady` can time out because the selected sandbox expires server-side before it can be renewed. The default threshold is `min(60s, idle_timeout / 2)` and can be disabled with `acquire_min_remaining_ttl=timedelta(0)`. https://github.com/opensandbox-group/OpenSandbox/pull/986

### Features

- Added `skip_accumulation` support for execution handlers. When enabled, stdout/stderr events are still delivered to callbacks but are not appended to `ExecutionLogs`, allowing long-running or high-output executions to stream with constant memory. https://github.com/opensandbox-group/OpenSandbox/pull/990
- Added SDK model support for PVC auto-provisioning fields. https://github.com/opensandbox-group/OpenSandbox/pull/749
- Added `secure_access` support for sandbox creation and endpoint access headers. This is opt-in and currently supported by Kubernetes ingress gateway mode. https://github.com/opensandbox-group/OpenSandbox/pull/745

### Bug Fixes

- The Python SSE parser now tolerates `traceback: null` from older or mixed execd deployments, keeping command-start error handling compatible across versions. https://github.com/opensandbox-group/OpenSandbox/pull/701
- Pool warmup now renews sandboxes before returning them to idle state, keeping store TTL and server-side TTL aligned. https://github.com/opensandbox-group/OpenSandbox/pull/986

### Misc

- Updated dependency lockfiles, including `idna` and `pytest` updates from Dependabot.

### Contributors

- @Aboysky
- @Pangjiping
- @asiudgufgbukbsa
- @ninan-nn