Skip to content

feat(agentstudio): add Sandbox and Harness Agent APIs - #259

Merged
luk384090-cloud merged 10 commits into
dashscope:mainfrom
guningLt:dev/agentstudio-sandbox-api
Dec 3, 2026
Merged

luk384090-cloud merged 10 commits into
dashscope:mainfrom
guningLt:dev/agentstudio-sandbox-api

Conversation

@guningLt

@guningLt guningLt commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Add synchronous and asynchronous Sandbox APIs under AgentStudio through client.agentstudio.sandbox.

  • Manage official-image templates, template files and Sandbox lifecycles.
  • Launch managed Agents and use sessions, turns, SSE subscriptions, cancellation, attachments and release.
  • Open native DSH/OpenClaw Web UIs with template/Sandbox reuse and automatic OpenClaw device pairing by default.
  • Share the parent HTTP pool while closing Sandbox-local resources before the shared transport.
  • Include focused offline tests and three recipes for ordinary Sandbox lifecycle, managed Agent chat and native Web UI preview.

Related Issue: N/A

Security Considerations: Examples read credentials from the environment, tests use dummy credentials, and native previews bind to loopback.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactoring

Component(s) Affected

  • Model
  • Application
  • Common
  • Documentation
  • Tests
  • CI/CD

Checklist

  • Pre-commit hooks pass
  • Tests pass locally
  • Documentation updated (if needed)
  • Ready for review

Testing

  • Built the current branch's wheel and verified installation in a fresh environment.
  • Current test suite: 5736 passed; 4 existing tests skipped. The new Sandbox test file contributes 20 passing cases.
  • pre-commit run --all-files and strict documentation build passed.
  • Both HTTP recipes run through the real SDK with MockTransport, including cleanup on success and failure. Native UI tests verify public preview wiring and close behavior.

Additional Notes

Model credentials remain independent of the platform API key. Native Web UI previews require Node.js when used; explicit auto_pair_openclaw=False retains manual pairing. The known OpenClaw image cancellation/next-turn issue remains outside this SDK change.

cc @kevinlin09

@luk384090-cloud
luk384090-cloud merged commit 19b37d4 into dashscope:main Dec 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants