
Sandock Support
Team
Sandock v2.11.0 is here! This release improves command execution and file I/O, with easier sandbox lookup and command cancellation for agent frameworks.
- Look up a sandbox by ID: The new
GET /api/v1/sandbox/{id}endpoint avoids listing every sandbox. The SDK now uses it forsandbox.get(id), whilesandbox.getById(id)returnsnullif the sandbox does not exist. - Read and write binary files: Images, archives, and other binary files retain their exact bytes. Use
encoding: "base64"in the API, or pass aUint8Arraytofs.writeand read withfs.readBytesin the SDK. - Cancel running commands: Use an
AbortSignalor close the stream to stop a command and all processes it started inside the sandbox. - Longer preview requests: Slow HTTP requests and long-lived event streams are no longer cut off after two minutes.
- SDK and CLI 2.7.0: Both include the new capabilities. SDK errors now carry a
code, such asSANDBOX_NOT_FOUND, for programmatic handling. - Exit codes and file errors fixed: Commands now return their actual exit codes. Reading a missing file returns a clear
404 File not foundwith theFILE_NOT_FOUNDerror code.
Full release notes: https://sandock.ai/release-notes/v2.11.0