Conversation
a07bf2a to
519c9a6
Compare
519c9a6 to
821972b
Compare
b56b28f to
660686a
Compare
660686a to
8840bde
Compare
|
A small suggestion to keep future implementations consistent:
This keeps maintenance simple while preserving protocol correctness. I'll also add this guideline to |
I’ve already added comments about |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d12e14fd8f
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Bash session API (create_session, run_in_session, delete_session) is exposed on commands in all OpenSandbox SDKs. Sessions keep shell state (working directory, environment) across multiple runs. This PR adds or completes support in Python, JavaScript, Kotlin, and C# so that usage is consistent: users call
sandbox.commands.createSession(...),sandbox.commands.runInSession(...), andsandbox.commands.deleteSession(...)(or the language-idiomatic equivalent). There is no separate “session” service; everything lives under commands.How to use (by SDK)
Python
JavaScript / TypeScript
Optional options for
runInSession:{ cwd?: string; timeoutMs?: number }. Handlers can be passed as the fourth argument for streaming callbacks.Kotlin / Java
C#
Testing
Breaking Changes
Checklist