This commit is contained in:
Charles Cunningham
2026-01-31 15:30:10 -08:00
parent dde25f2e60
commit 603ed41d28

View File

@@ -3173,9 +3173,7 @@ mod handlers {
/// 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.
/// surviving user-turn count.
fn apply_rollback_turn_context_history(
state: &mut SessionState,
existing_turn_context_history: Vec<Option<TurnContextItem>>,