From 9e6ef13d4ddadb849fb322c70e7ea19509c33baa Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Sun, 15 Feb 2026 15:32:30 -0800 Subject: [PATCH] Add comment --- codex-rs/core/src/tasks/compact.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/core/src/tasks/compact.rs b/codex-rs/core/src/tasks/compact.rs index 9835c95bee..c011edccba 100644 --- a/codex-rs/core/src/tasks/compact.rs +++ b/codex-rs/core/src/tasks/compact.rs @@ -49,6 +49,7 @@ impl SessionTask for CompactTask { } else if has_user_turn_boundary { // Manual `/compact` rewrites history to compacted transcript items and drops // per-turn context entries. Force initial-context reseeding on the next user turn. + // TODO(ccunningham): Eliminate this when we have better TurnContextItem diffing (compaction aware) session.mark_initial_context_unseeded_for_next_turn().await; } } else { @@ -67,6 +68,7 @@ impl SessionTask for CompactTask { } else if has_user_turn_boundary { // Manual `/compact` rewrites history to compacted transcript items and drops // per-turn context entries. Force initial-context reseeding on the next user turn. + // TODO(ccunningham): Eliminate this when we have better TurnContextItem diffing (compaction aware) session.mark_initial_context_unseeded_for_next_turn().await; } }