refactor!: migrate code-interpreter paths from /opt/opensandbox to /opt/code-interpreter#1012
Conversation
…-interpreter
All paths referencing /opt/opensandbox/code-interpreter{,-env}.sh moved to
/opt/code-interpreter/. Covers Dockerfiles, entrypoint scripts, SDK constants,
E2E tests, examples, and READMEs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 52fc3fc31e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Pangjiping
left a comment
There was a problem hiding this comment.
Thanks for the review. All four comments point to the same architectural decision:
This is an intentional one-time breaking change. The goal is to separate concerns — /opt/opensandbox is reserved as the architecture injection point, while /opt/code-interpreter is the code-interpreter component's own namespace.
To address each point:
-
Base image build order — correct,
build.shhas base commented out. The release that ships this PR must build base first. That's a release-process concern, not a code defect. -
Old entrypoint path removed — by design. No symlink. Callers update to the new path per the migration guide in the PR description.
-
Pinned tag examples — the
v1.0.2examples in READMEs are stable references to the old image, which still ships the old path. Examples targetinglatestuse the new path. This is correct. -
Env script path removed — same as (2). No compatibility symlink. Migration guide covers it.
PR description has the full migration matrix.
Summary
Migrate all code-interpreter paths from
/opt/opensandbox/to/opt/code-interpreter/, unifying the directory structure under/opt/code-interpreterfor architectural consistency with the injection point/opt/opensandbox.Breaking Change
This is a breaking change. The following paths are removed:
/opt/opensandbox/code-interpreter.sh/opt/code-interpreter/code-interpreter.sh/opt/opensandbox/code-interpreter-env.sh/opt/code-interpreter/code-interpreter-env.sh/opt/opensandbox/jupyter.log/opt/code-interpreter/jupyter.logMigration Guide
If you use
opensandbox/code-interpreter:latestUpdate your sandbox creation to use the new entrypoint:
If you pin a specific tag (e.g.,
v1.0.2)No action needed — existing tagged images are immutable and continue to work with
/opt/opensandbox/code-interpreter.sh. Only switch to the new path when upgrading to a tag that includes this change.If you source the env script interactively
If you use the Go SDK (
sdks/sandbox/go)The
CodeInterpreterEntrypointconstant has been updated. If you useCreateCodeInterpreter()without explicitly settingEntrypoint, no change needed. If you hardcoded the old path, update to the new constant.Changed Files
25 files: Dockerfiles, entrypoint scripts, SDK constants, E2E tests, examples, and READMEs.
🤖 Generated with Claude Code