Skip to content

Persist agent messages as response items - #29829

Merged
jif-oai merged 1 commit into
mainfrom
jif/persist-agent-message-rollouts
Jun 24, 2026
Merged

Persist agent messages as response items#29829
jif-oai merged 1 commit into
mainfrom
jif/persist-agent-message-rollouts

Conversation

@jif-oai

@jif-oai jif-oai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

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

@jif-oai
jif-oai requested a review from a team as a code owner June 24, 2026 09:13

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a380954f5a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/rollout/src/search.rs
@jif-oai
jif-oai merged commit b4f0f3e into main Jun 24, 2026
31 checks passed
@jif-oai
jif-oai deleted the jif/persist-agent-message-rollouts branch June 24, 2026 14:43
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants