mirror of
https://github.com/openai/codex.git
synced 2026-05-18 02:02:30 +00:00
dd comment
This commit is contained in:
@@ -2387,10 +2387,6 @@ impl Session {
|
||||
if let Some(replacement) = &compacted.replacement_history {
|
||||
history.replace(replacement.clone());
|
||||
} else {
|
||||
// TODO(ccunningham): When we have TurnContextItem-based legacy reconstruction,
|
||||
// build historical turn context from those items and inject it at the correct
|
||||
// point in compacted history instead of prepending the current initial context.
|
||||
// This matters for legacy rollouts with replacement_history=None.
|
||||
let user_messages = collect_user_messages(history.raw_items());
|
||||
let mut rebuilt = self.build_initial_context(turn_context).await;
|
||||
rebuilt.extend(compact::build_compacted_history(
|
||||
|
||||
Reference in New Issue
Block a user