mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## Why The rollout trace reducer assigns ordinal IDs to reduced transcript nodes and uses Responses item IDs to match wire items to those nodes. Using strings for both lets callers mix up the two kinds of IDs. ## What changed Make `ConversationItemId` a Rust newtype for transcript nodes and use `ResponseItemId` for receipt and agent delivery lookups. Carry the typed transcript IDs through snapshot reconciliation, compaction, and links to tool calls, code cells, and agent interactions. Continue serializing transcript IDs as strings such as `conversation_item:9`. GitOrigin-RevId: 28a36266bc88e1cbc036d99a90b3f88e6966d328