mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why A thread store that resolves the last inherited turn during fork preparation can reuse that ID when creating the child instead of resolving it again. ## What changed Forward the optional `last_inherited_turn_id` from `PreparedFork` to `CreateThreadParams` alongside the inherited history position. Omit the field from serialized creation parameters when no ID is available. ## Testing Add a regression test that checks the in-memory thread store receives the turn ID supplied by the prepared fork when it creates the child. GitOrigin-RevId: 709c8cc4a744b2f893af6233e825026a27732873