mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
core: collapse reference turn context state
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
co-authored by
Codex
parent
0bccddcd3f
commit
e92d3a73b9
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user