mirror of
https://github.com/openai/codex.git
synced 2026-10-30 19:18:49 +00:00
Document rollback turn context helper
This commit is contained in:
@@ -3194,6 +3194,12 @@ mod handlers {
|
||||
.await;
|
||||
}
|
||||
|
||||
/// Apply turn-context history updates after rollback.
|
||||
///
|
||||
/// Truncates the stored history by the requested rollback depth, then pads to match the
|
||||
/// surviving user-turn count. If the latest user turn has a stored collaboration mode,
|
||||
/// update the session configuration; otherwise, force re-injection of collaboration
|
||||
/// instructions on the next turn.
|
||||
fn apply_rollback_turn_context_history(
|
||||
state: &mut SessionState,
|
||||
existing_turn_context_history: Vec<Option<TurnContextItem>>,
|
||||
|
||||
Reference in New Issue
Block a user