From 313ad29ad794c1b177f3cf74bbf1461ca88eb0e0 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Mon, 13 Apr 2026 09:20:10 -0700 Subject: [PATCH] Fix TUI compaction item replay (#17657) Problem: PR #17601 updated context-compaction replay to call a new ChatWidget handler, but the handler was never implemented, breaking codex-tui compilation on main. Solution: Render context-compaction replay through the existing info-message path, preserving the intended `Context compacted` UI marker without adding a one-off handler. --- codex-rs/tui/src/chatwidget.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 189371ffd..5531f4a4c 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -5925,7 +5925,7 @@ impl ChatWidget { self.exit_review_mode_after_item(); } ThreadItem::ContextCompaction { .. } => { - self.on_context_compacted(); + self.add_info_message("Context compacted".to_string(), /*hint*/ None); } ThreadItem::HookPrompt { .. } => {} ThreadItem::CollabAgentToolCall {