mirror of
https://github.com/openai/codex.git
synced 2026-09-09 15:58:47 +00:00
## Why Background and empty-input turns could lack a `root_turn_id`, and detached memory requests omitted turn identity entirely. Tasks without a root could also adopt one from coalesced mailbox input. ## What changed - Set `root_turn_id` to the task's turn ID at task start unless an inherited or recovered root is already present. - Stop assigning roots from mailbox input or steering an active turn. - Give detached memory requests a fresh UUID for both `turn_id` and `root_turn_id`, included in turn headers and client metadata while still omitting session and thread identity. ## Testing Extend assertions for background turns, empty input, goal continuations, manual compaction, and detached memory requests. Exercise mailbox coalescing with both independent and inherited roots to verify the task keeps its established root. GitOrigin-RevId: ee0f2f1b43542a9f5884f694c1d94341b476779c