mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
## Why An accepted agent message may never appear in a later inference request or compaction snapshot. Rollout traces need to retain the delivery and its interaction edge even when the receiving agent makes no further request. ## What changed Capture agent message payloads in `HistoryItemAccepted` events and create conversation items when those receipts are replayed. Reuse each item's ID when it later appears in a request or checkpoint, updating its body to the model-visible representation. Repeated receipts preserve that representation without duplicating the item. ## Testing Extend the spawn-edge regression test to cover delivery before any child inference, stable item IDs across a later request, and preservation of trimmed content after a repeated receipt. GitOrigin-RevId: c193d691e8240645800ce004c11f21e3f1c82915