core: collapse reference turn context state

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Charles Cunningham
2026-03-24 13:54:08 -07:00
co-authored by Codex
parent 0bccddcd3f
commit e92d3a73b9
5 changed files with 44 additions and 69 deletions
+3 -3
View File
@@ -3664,9 +3664,9 @@ impl Session {
self.persist_rollout_items(&[RolloutItem::TurnContext(turn_context_item.clone())])
.await;
// Advance the in-memory turn-context tracker even when this turn emitted no model-visible
// context items. Regular turns become both the latest turn-settings source and the active
// model-visible reference baseline for subsequent diffing.
// Advance the stored turn-context snapshot even when this turn emitted no model-visible
// context items. Regular turns become both the `previous_turn_settings()` source and the
// active model-visible reference baseline for subsequent diffing.
self.record_regular_turn_context(turn_context_item).await;
}