Repository navigation
feat(agents): add managed per-Session API runtime and bridge - #156
Merged
Merged
Conversation
20 of 21 tasks
13 tasks done
anycodes
marked this pull request as ready for review
November 6, 2026 09:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Provide one authenticated Gateway endpoint for durable Agents Sessions while Codex/Qwen model and tool execution runs in each Session's reusable Express Sandbox. Preserve the existing local Agents API and expose explicit queuing, cancellation targets, retained results and uncertain execution outcomes.
Refs #155
Refs Alibaba-Agent-Sandbox/awesome-templates#295
Refs Alibaba-Agent-Sandbox/agent-sandbox#80
Type of Change
Changes
Testing
make ci, both package type/lint/format/test/build/distribution/install checks, and complete latest-head GitHub Python 3.10/3.11/3.12 matrix, pinned E2B contract, Python→Node engine and both real Docker fixtures. CI: https://github.com/Alibaba-Agent-Sandbox/python-sdk/actions/runs/42192515116cd43e9ereaches normal ready, passes 39 positive operations and 38 authentication rejections, and completes two real model/tool turns. Independent guest execution preserves original tests, passes 4/8 held-out cases and matches tested source to downloaded artifact bytes. Its live idle-Session SSE first frame is 0.169 s with normal EOF at 20.369 s.Checklist
.agents/Definition of Done
The SDK pre-release gates are complete. Package publication, public digest/install readback and the public template's final real-cloud run follow the normal release workflow; they are not fabricated as pre-merge results. The ADR remains proposed until those cross-repository delivery criteria actually finish.
The source cloud run uses
cd43e9e, not the final empty-revision package. Active-cancellation inspection initially fails on a private/procobserver download, and the first revision update fails its candidate-health gate; those failures and ongoing independent template/CLI verification remain explicit. They do not become full-template qualification from this SDK merge. Selected OpenAI-inspired wire shapes do not establish OpenAI SDK interoperability, steering, functions, arbitrary MCP or subagents.