From 2ea3c669c1336ac31b770d38277753557e014002 Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Fri, 6 Feb 2026 13:08:25 -0800 Subject: [PATCH] Fix TurnContext borrow for process_compacted_history --- codex-rs/core/src/compact_remote.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {