java/code-interpreter/v1.0.13

opensandbox-group/OpenSandboxjava/code-interpreter/v1.0.13Jun 16, 2026by ninan-nn

AI Summary

Updates to the Java Code Interpreter SDK include a migration of runtime paths and new API capabilities for reading files by line and listing directories.

Key Highlights

  • Runtime paths moved from `/opt/opensandbox` to `/opt/code-interpreter`
  • Line-based file reading via `GET /files/download` with `offset` and `limit`
  • Directory listing support with depth control and symlink handling
  • Bug fixes for symlink root path rejection and API surface polishing

Breaking Changes

  • Code Interpreter runtime paths have moved from `/opt/opensandbox` to `/opt/code-interpreter`. If you hardcoded paths, update them to the new location.

New Features

  • Line-based file reads through `GET /files/download`
  • Directory listing support through new execd directory API

Full Release Notes

## What's New

### Breaking Changes

- Code Interpreter runtime paths have moved from `/opt/opensandbox` to `/opt/code-interpreter`. If you hardcoded `/opt/opensandbox/code-interpreter.sh`, `/opt/opensandbox/code-interpreter-env.sh`, or `/opt/opensandbox/jupyter.log`, update them to `/opt/code-interpreter/code-interpreter.sh`, `/opt/code-interpreter/code-interpreter-env.sh`, and `/opt/code-interpreter/jupyter.log`. Existing pinned images remain immutable; this migration matters when upgrading to images and SDK constants that include the new path. https://github.com/opensandbox-group/OpenSandbox/pull/1012

### Features

- Added line-based file reads through `GET /files/download` with `offset` and `limit` query parameters, enabling code-interpreter clients to read large text files by line range.
- Added directory listing support through the new execd directory API. Directory listing supports depth control, reports `file`, `directory`, `symlink`, and `other` entry types, and does not recursively traverse symlinks. https://github.com/opensandbox-group/OpenSandbox/pull/1001

### Bug Fixes

- Directory listing now rejects a symlink used as the root path instead of silently following it.
- The directory-listing API surface was polished for SDK consumers, including clearer symlink and lexical-ordering behavior in the spec. https://github.com/opensandbox-group/OpenSandbox/pull/1001

### Misc

- Bumped the Kotlin Code Interpreter SDK package version to `1.0.13` and aligned its Kotlin Sandbox SDK dependency to `1.0.13`.

### Contributors

- @Pangjiping
- @asiudgufgbukbsa
- @ninan-nn