Add comment

This commit is contained in:
Charles Cunningham
2026-02-15 15:32:30 -08:00
parent ce7777801d
commit 9e6ef13d4d

View File

@@ -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;
}
}