diff --git a/codex-rs/core/src/compact_remote.rs b/codex-rs/core/src/compact_remote.rs index 8aeeb40164..7263560e69 100644 --- a/codex-rs/core/src/compact_remote.rs +++ b/codex-rs/core/src/compact_remote.rs @@ -91,7 +91,7 @@ async fn run_remote_compact_task_inner_impl( ) .await?; new_history = sess - .process_compacted_history(turn_context, new_history) + .process_compacted_history(turn_context.as_ref(), new_history) .await; if !ghost_snapshots.is_empty() {