60 Commits

Author SHA1 Message Date
Kazuhiro Sera 2588d154e4 fix: prevent advanced SQLite structure table conflicts (#4454)
Co-authored-by: ayaangazali <ayaangazali.work@gmail.com>
2026-08-16 11:13:06 +09:00
Kazuhiro Sera 05d6850da5 feat: add scripted model test utilities (#4362) 2026-08-13 11:20:33 +09:00
Kazuhiro Sera 237716cfb3 perf: add impact-aware review test target 2026-08-08 00:25:16 +09:00
Aditya Singh b8aed66015 fix(sessions): preserve DaprSession created_at across writes (#4213) 2026-08-07 12:18:27 +00:00
Kazuhiro Sera 070b6e1543 perf: accelerate developer checks (#4258) 2026-08-06 23:06:57 +00:00
Kazuhiro Sera 4a1773f405 fix: make session mutations atomic (#4212) 2026-08-06 14:49:57 +09:00
Aditya Singh cce949a3fc fix(memory): enforce closed state on SQLite session empty add_items (#4231) 2026-08-05 23:51:45 +00:00
Kazuhiro Sera c48dd4c1aa feat: pass run context to custom sessions (#4209) 2026-08-05 22:27:54 +09:00
Aditya Singh afd1a26249 fix(memory): release SQLite engine config entries when engines are collected (#4210) 2026-08-05 13:09:43 +00:00
Kazuhiro Sera 7379e75d4e fix(memory): reject reused branch IDs when creating a branch (#4186)
Co-authored-by: Henry Su <henrysu4707@gmail.com>
2026-08-05 11:13:37 +09:00
Kazuhiro Sera 046f82bb83 fix(memory): enforce closed state in MongoDBSession (#4176)
Co-authored-by: Chinmay V <203952148+chinmayv095@users.noreply.github.com>
2026-08-04 22:28:36 +00:00
chinmayv095 c06e1e3b09 fix(memory): enforce closed state in AsyncSQLiteSession (#4109) 2026-08-02 21:13:26 +00:00
Satvik Sawhney c510261cad fix(memory): enforce closed state in Redis and Dapr sessions (#4035) 2026-07-31 14:14:52 +09:00
chinmayv095 974733eff5 fix(memory): count valid Redis and Dapr session items for positive limits (#4033) 2026-07-31 00:56:42 +09:00
chinmayv095 f2bd57bf0d fix(memory): count valid AdvancedSQLiteSession items for positive limits (#4031) 2026-07-31 00:39:21 +09:00
chinmayv095 80915c8c61 fix(memory): count valid SQLAlchemy and MongoDB session items for positive limits (#4032) 2026-07-31 00:39:07 +09:00
Henry Su 35c8805415 fix(memory): count valid SQLite session items for positive limits (#4001) 2026-07-29 08:10:12 +09:00
Kazuhiro Sera 59763339cb fix: harden sensitive runtime logging (#3938) 2026-07-24 15:36:48 +00:00
Kazuhiro Sera f78df37ee9 feat: consistently accept typed objects and dictionaries for SDK configuration (#3917) 2026-07-24 08:04:45 +09:00
Aditya Jethani 68fadc7aba fix: AdvancedSQLiteSession clear_session and pop_item metadata leaks (#3755) 2026-07-13 17:36:45 +09:00
Kazuhiro Sera 8724b1b9ba fix: support cache-write usage across OpenAI Python versions (#3773) 2026-07-10 07:14:43 +09:00
Anas Khan 5807751080 fix(sessions): handle list content in AdvancedSQLiteSession browsing helpers (#3761) 2026-07-09 14:18:47 +09:00
Kazuhiro Sera 4fde807f1f feat: add Unicode storage option to SQLAlchemySession (#3746) 2026-07-07 03:38:02 +00:00
c 83e8a1b6e2 fix: #3348 make AdvancedSQLiteSession add_items atomic (#3349) 2026-06-22 10:44:55 +09:00
c 13ef230468 fix: #3346 clean up branch-only messages when deleting branches (#3347) 2026-06-22 10:42:00 +09:00
Kazuhiro Sera ec016cde9a fix: unify memory optional dependency import errors (#3389) 2026-05-13 11:13:56 +09:00
c e3c99d9964 fix: #3361 honor session settings in AsyncSQLiteSession (#3362) 2026-05-12 08:01:39 +09:00
c 610c2742dc fix: #3306 track MongoDB metadata timestamps (#3307) 2026-05-10 08:54:01 +09:00
c 4b8744903a fix: #3304 skip corrupt items during pop (#3305) 2026-05-10 08:53:26 +09:00
Aditya Singh 4bb388c955 fix(redis-session): preserve created_at across writes (#3202) 2026-05-09 12:51:03 +09:00
Aditya Singh 7aeb39e150 fix(sessions): skip corrupt docs in MongoDBSession.pop_item (#3247) 2026-05-09 11:44:54 +09:00
Aditya Singh 1b6876a8c2 fix(sessions): persist output_tokens_details when input details are None (#3227) 2026-05-09 02:36:18 +09:00
c a67d95f58a fix: #3174 count valid encrypted session items for limits (#3175) 2026-05-07 16:15:52 +09:00
c 516aa0c9d9 fix: #3171 reject corrupt Dapr session state updates (#3173) 2026-05-07 14:05:10 +09:00
c 42c3015518 chore: harden Dapr Redis integration fixture loading (#3078) 2026-05-02 09:15:41 +09:00
Kazuhiro Sera cc57bb1648 fix: #2962 normalize sandbox paths and add Windows CI (#2963) 2026-04-21 06:20:17 +09:00
Alex Bevilacqua 67fb85a17f feat(extensions): add MongoDB session backend (#2902) 2026-04-17 21:44:23 +09:00
Steve Coffey 2d665c9a67 Sandbox Agents (#2889)
### Sandbox Agents

This release adds **Sandbox Agents**, a beta SDK surface for running
agents with a persistent, isolated workspace. Sandbox agents keep the
normal `Agent` and `Runner` flow, but add workspace manifests,
sandbox-native capabilities, sandbox clients, snapshots, and resume
support so agents can work over real files, run commands, edit
repositories, generate artifacts, and continue work across runs.

Key pieces:

- `SandboxAgent`: an `Agent` with sandbox defaults such as
`default_manifest`, sandbox instructions, capabilities, and `run_as`.
- `Manifest`: a fresh-workspace contract for files, directories, local
files, local directories, Git repos, environment, users, groups, and
mounts.
- `SandboxRunConfig`: per-run sandbox wiring for client creation, live
session injection, serialized session resume, manifest overrides,
snapshots, and materialization concurrency limits.
- Built-in capabilities for shell access, filesystem editing and image
inspection, skills, memory, and compaction.
- Workspace snapshots and serialized sandbox session state for
reconnecting to existing work or seeding a fresh sandbox from saved
contents.

### Sandbox clients and hosted providers

Sandbox agents now support local, containerized, and hosted execution
backends:

- `UnixLocalSandboxClient` for fast local development.
- `DockerSandboxClient` for container isolation and image parity.
- Hosted sandbox clients for Blaxel, Cloudflare, Daytona, E2B, Modal,
Runloop, and Vercel through optional extras.

The release also adds provider-specific examples and mount strategies
for common storage backends, including S3, Cloudflare R2, Google Cloud
Storage, Azure Blob Storage, and S3 Files where supported by the
selected backend.

### Sandbox memory

Adds a sandbox memory capability that lets future sandbox-agent runs
learn from prior runs. Memory stores extracted lessons in the sandbox
workspace, injects a concise summary into later runs, and uses
progressive disclosure so agents can search deeper rollout summaries
only when useful.

Memory supports:

- Read-only or generate-only modes.
- Live updates when the agent discovers stale memory.
- Multi-turn grouping through `conversation_id`, SDK `Session`,
`RunConfig.group_id`, or generated run IDs.
- Separate memory layouts for isolating memory across agents or
workflows.
- S3-backed examples for persisted memory across runs.

### Workspace mounts, snapshots, and resume

This release adds a full workspace entry and mount model for sandbox
sessions:

- Local files and directories.
- Synthetic files and directories.
- Git repository entries.
- Remote storage mounts for S3, R2, GCS, Azure Blob Storage, and S3
Files.
- Provider-specific mount strategies across Docker, Modal, Cloudflare,
Blaxel, Daytona, E2B, and Runloop.
- Portable snapshots with path normalization, symlink preservation,
mount-safe snapshotting, and remote snapshot support.
- Resume paths through runner-managed `RunState`, explicit
`SandboxSessionState`, or saved snapshots.

### Examples and tutorials

Adds a large `examples/sandbox/` suite covering:

- Local Unix and Docker sandbox runners.
- Docker mount smoke tests for S3, GCS, Azure Blob Storage, and S3
Files.
- Sandbox coding tasks with skills.
- Sandbox agents as tools and handoff patterns.
- Memory examples, including multi-agent/multi-turn memory and S3-backed
memory.
- Tax-prep and healthcare-support workflows.
- Dataroom QA and metric extraction tutorials.
- Repository code review tutorial.
- Vision website clone tutorial.
- Provider examples for Blaxel, Cloudflare, Daytona, E2B, Modal,
Runloop, Temporal, and Vercel.

### Runtime, tracing, and model plumbing

The release includes the runtime plumbing needed to make sandbox agents
work naturally inside the existing SDK:

- Runner-managed sandbox preparation, capability binding, session
lifecycle, state serialization, and resume behavior.
- Sandbox-aware `RunState` serialization.
- Unified sandbox tracing with SDK spans.
- Token usage on tracing spans.
- Runner-managed prompt cache key defaults.
- OpenAI agent registration and harness ID configuration.
- Safer redaction of sensitive MCP tool outputs when sensitive tracing
is disabled.
- Additional OpenAI client/model utilities and Chat Completions
coverage.


## Documentation & Other Changes

- docs: add Asqav to external tracing processors list.
- docs: update translated document pages.

Co-authored-by: Abdulrahman Alfozan <alfozan@openai.com>
Co-authored-by: Aditya Singh <60082699+adityasingh2400@users.noreply.github.com>
Co-authored-by: Andi Liu <andi@openai.com>
Co-authored-by: Aron <263346377+aron-cf@users.noreply.github.com>
Co-authored-by: ashwinnathan-openai <ashwinnathan@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: cploujoux <cploujoux@blaxel.ai>
Co-authored-by: elainegan-openai <168589666+elainegan-openai@users.noreply.github.com>
Co-authored-by: Elias Freider <freider@users.noreply.github.com>
Co-authored-by: Erik Dunteman <erik@erikds-macbook-air.local>
Co-authored-by: Jason Liu <jasonliu@openai.com>
Co-authored-by: Jason Steving <32336750+jasonsteving99@users.noreply.github.com>
Co-authored-by: Kazuhiro Sera <seratch@openai.com>
Co-authored-by: Lovre Pešut <lovre.pesut@gmail.com>
Co-authored-by: Lucas Wang <lucas_wang@lucas-futures.com>
Co-authored-by: Matt Brockman <matt.brockman@e2b.dev>
Co-authored-by: Mish Ushakov <mishushakov@users.noreply.github.com>
Co-authored-by: Naresh <ghostwriternr@gmail.com>
Co-authored-by: nicholasclark-openai <nicholasclark@openai.com>
Co-authored-by: qiyaoq-oai <qiyaoq@openai.com>
Co-authored-by: Scott Trinh <scott@scotttrinh.com>
Co-authored-by: tode-rl <tony@runloop.ai>
Co-authored-by: Wendy Jiao <wendyjiao@openai.com>
2026-04-15 10:00:40 -07:00
Kazuhiro Sera c06cd45004 fix: harden SQLAlchemySession against transient SQLite locks (#2854) 2026-04-08 08:21:37 +09:00
Kazuhiro Sera 6a89f1b564 fix: serialize SQLite session writes with shared file locks (#2843) 2026-04-04 12:19:29 +09:00
Felmon Fekadu aa483fe1df fix(memory): make SQLAlchemySession first writes race-safe (#2725) 2026-03-20 10:04:22 +09:00
Kazuhiro Sera f29a6580a1 fix(memory): honor custom table names in AdvancedSQLiteSession (#2694) 2026-03-18 10:50:22 +09:00
Kazuhiro Sera 9ac31ab49f feat: add Responses API tool search support (#2610) 2026-03-06 19:23:38 +09:00
Kazuhiro Sera 02bf923d72 perf: speed up make tests with xdist and deterministic waits (#2563) 2026-03-01 12:42:55 +09:00
Kazuhiro Sera 3ce7c24d34 feat: #636 Add human-in-the-loop (HITL) support (#2230)
Co-authored-by: Michael James Schock <m@mjschock.com>
2026-01-29 12:16:28 +09:00
Daniel Quintas 00bc85e8d7 Add session customization params (#2196)
Co-authored-by: Kazuhiro Sera <seratch@openai.com>
2026-01-28 15:37:36 +09:00
Gustav von Zitzewitz a17fc3f752 Add AsyncSQLiteSession (aiosqlite-backed async session store) (#2284)
Co-authored-by: Kazuhiro Sera <seratch@openai.com>
2026-01-09 17:20:35 +09:00
Kant Lim 05dc79da72 fix: #2081 Redis SSL Connection Error with redis-py v7 (#2082) 2025-11-16 08:14:58 +09:00
Dominik Kundel 767cc00c9f Add new tools for gpt-5.1 (#2079)
Co-authored-by: Kazuhiro Sera <seratch@openai.com>
2025-11-13 09:55:29 -08:00
Hassan Abu Alhaj 3ac64f7a64 fix: #2073 Improve type hinting in memory extension modules (#2077) 2025-11-13 09:13:25 +09:00