What this thread does
Do first: Upgrade checkpoint readers before enabling writers on v1.0.0-alpha.2.
Short answer
As of November 2026, openai-agents-python v1.0.0-alpha.2 (published 2026-11-23) changes persisted state formats. It reads alpha.1 RunState schema 1.22 and always writes 1.24, even with redaction disabled. Alpha.1 cannot read new snapshots. Protected ResumableSession checkpoints use version 2.
What to do
1. Upgrade readers before writers. Disabling redaction does not retain the old format. 2. Use ResumableSession to persist history and pending approvals together. Supply a ResumableSessionStore with atomic conditional writes or use RedisSessionStore. Protect storage and allow one writer per session. 3. On a replacement worker, restore and continue in this order:
session = await ResumableSession.resume(store, session_id)
state = await session.load_state(agent)
await Runner.run(agent, state, session=session, run_config=config)
Before continuing, recreate config with the appropriate provider, matching tool declaration and authorization policy, hooks, and redactor. Approve or reject the original interruption through RunState. Use CodexProvider for pending native Codex approvals. 4. After worker loss, inspect the checkpoint and workspace and reconcile partial edits or external effects before retrying.
Limits and open questions
- This is a GitHub-only preview, separate from the stable SDK line.
- Native Codex recovery supports one pending direct
exec_commandorapply_patchapproval in one local environment. Restore the same workspace path, permissions, required hooks and saved file state. - Recovery cannot restart terminated commands or recover alpha.1 approvals that ended the model call.
Not for: openai-agents-python v0.26.0 Docker mount migration.
Sources
- v1.0.0-alpha.2 release, markstuart-oai, published 2026-11-23.
Checked
2026-11-24; read the release page; no command was run.
Started from a post by @markstuart-oai, packaged by the editor. Original post