mirror of
https://github.com/openai/codex.git
synced 2026-11-20 15:07:25 +00:00
Persist agent messages as response items (#29829)
## Why Inter-agent messages are recorded in live history as `ResponseItem::AgentMessage`, but rollouts stored `InterAgentCommunication` and rebuilt the response item during resume. This made the rollout differ from the actual Responses history. ## What changed - store the prepared `agent_message` response item directly - keep `trigger_turn` in a small local metadata record for fork truncation - keep reading older `inter_agent_communication` rollout items
This commit is contained in:
19 files changed
+144
-17
No files matched your search
@@ -227,6 +227,9 @@ fn rollout_item_type(item: &RolloutItem) -> String {
|
||||
RolloutItem::SessionMeta(_) => "session_meta".to_string(),
|
||||
RolloutItem::ResponseItem(item) => response_item_type(item).to_string(),
|
||||
RolloutItem::InterAgentCommunication(_) => "inter_agent_communication".to_string(),
|
||||
RolloutItem::InterAgentCommunicationMetadata { .. } => {
|
||||
"inter_agent_communication_metadata".to_string()
|
||||
}
|
||||
RolloutItem::Compacted(_) => "compacted".to_string(),
|
||||
RolloutItem::TurnContext(_) => "turn_context".to_string(),
|
||||
RolloutItem::EventMsg(EventMsg::ItemCompleted(event)) => {
|
||||
|
||||
Reference in new issue
Block a user