Skip to content

AI-231: add SandboxAgent support to the OpenAI Agents plugin - #2186

Open
xumaple wants to merge 6 commits into
mainfrom
maplexu/AI-231-openai-sandbox
Open

AI-231: add SandboxAgent support to the OpenAI Agents plugin#2186
xumaple wants to merge 6 commits into
mainfrom
maplexu/AI-231-openai-sandbox

Conversation

@xumaple

@xumaple xumaple commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Run OpenAI Agents SandboxAgents as Temporal Workflows. Workflow-side client/session proxies dispatch each sandbox operation to Activities; the real backend session lives worker-side and is rehydrated from serialized state, so any Worker can service any Activity.

@xumaple
xumaple force-pushed the maplexu/AI-231-openai-sandbox branch from 5a73360 to a759996 Compare July 17, 2026 18:08
xumaple added 4 commits July 23, 2026 16:48
Run OpenAI Agents SandboxAgents as Temporal Workflows. Workflow-side
client/session proxies dispatch every sandbox operation to Activities; the
real backend session lives worker-side and is rehydrated from serialized
state, so any Worker can service any Activity. Bumps @openai/agents-core and
@openai/agents-openai to ~0.13.0.
… (AI-231)

Match the Python contrib: stop stripping ephemeral entries/mounts/env from the encoded manifest so ephemeral mounts materialize and ephemeral env reaches the sandbox on create. Persist the backend's merged manifest after applyManifest/materializeEntry so mid-run changes survive resume. Flatten TemporalSandboxClientOptions, add a typed guard for a missing manifest, and add functional-parity, setArchiveLimits, and SDK-format deserialize tests.
…fill (AI-231)

0.13.5 decodes base64 without host globals (openai/openai-agents-js#1481), so the Workflow-isolate atob/btoa polyfill is no longer needed. Also drops a test-only export that ts-prune flagged.
Emit sandbox:<op> spans on the workflow side (sessionId/port only) and sandbox:<op>:result spans on the worker side (generic result metrics) for SandboxAgent operations, gated on addTemporalSpans. The comprehensive trace test runs a SandboxAgent to assert the spans are parented correctly in the full trace tree.
@xumaple
xumaple force-pushed the maplexu/AI-231-openai-sandbox branch from acce3a9 to 86916b7 Compare July 23, 2026 20:53
@xumaple
xumaple marked this pull request as ready for review July 23, 2026 21:13
@xumaple
xumaple requested review from a team as code owners July 23, 2026 21:13
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.

1 participant