pub fn surface_in_history(messages: &[Message]) -> Option<PriorSurface>Expand description
The surface the conversation is carrying, recovered from history.
The client’s half of what the agent does to decide create-versus-update: the
A2UI operations are in the transcript, so anything holding the transcript can
replay them. No hand-written message mapping — that is what the toolkit’s
ag-ui feature is for.