Materialize rollout persistence for pending inter-agent messages (#47691)

## What changed

Call `ensure_rollout_materialized` after recording pending inter-agent communication, using the supplied persistence context. This also triggers the first execution checkpoint when an agent message starts the first turn.

## Testing

Extend the first-input persistence test to cover inter-agent communication, checking that the checkpoint is requested and sampling proceeds while durable metadata is blocked. Verify that prepared context precedes the agent message and that its author and recipient reach the model.

GitOrigin-RevId: 55779edb1a38fcf4d1c1cff24c09f5a810460c3d
This commit is contained in:
dermanyang-oai
2026-09-23 22:52:55 +00:00
committed by copyberry
parent 7b66c21f58
commit b4b055cfc8
2 changed files with 75 additions and 11 deletions
+1
View File
@@ -766,6 +766,7 @@ pub(crate) async fn record_pending_input(
TurnInput::InterAgentCommunication(communication) => {
sess.record_inter_agent_communication(turn_context, model_info, communication)
.await;
sess.ensure_rollout_materialized(persist_context).await;
}
}
record_additional_contexts(sess, turn_context, additional_contexts).await;