mirror of
https://github.com/openai/codex.git
synced 2026-05-20 11:12:43 +00:00
Clarify newest surviving turn-context snapshot selection
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -170,6 +170,9 @@ impl Session {
|
||||
active_segment.turn_id.as_deref(),
|
||||
ctx.turn_id.as_deref(),
|
||||
) {
|
||||
// Reverse replay walks newest-to-oldest, so the first surviving
|
||||
// `TurnContextItem` we see for this turn segment is the newest
|
||||
// surviving context snapshot for the turn.
|
||||
if active_segment.previous_turn_settings.is_none() {
|
||||
active_segment.previous_turn_settings = Some(PreviousTurnSettings {
|
||||
model: ctx.model.clone(),
|
||||
|
||||
Reference in New Issue
Block a user