mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
## What changed Expose `InheritedSessionId` so a host can supply a root session ID through `ExtensionDataInit` when starting a fresh child thread. The child retains its distinct thread ID, and the inherited session ID is persisted in rollout metadata and restored on resume. Reject inherited session IDs for resumed, forked, or native agent threads, and reject an inherited session ID that equals the child thread ID. ## Testing Add an integration test covering distinct child identity, inherited session metadata, and restoration after shutdown and resume. GitOrigin-RevId: e3462433f9d8a0bba24251ee2b6d5329557ddb31