From 6ead619caee33e7c66490f52c820bfbcd5ac80a3 Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Mon, 2 Mar 2026 16:37:37 -0800 Subject: [PATCH] tui: clarify plan popup latch semantics --- codex-rs/tui/src/chatwidget.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 3d854115f2..2fd5478b98 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -655,7 +655,9 @@ pub(crate) struct ChatWidget { had_work_activity: bool, // Whether the current turn emitted a plan update. saw_plan_update_this_turn: bool, - // Whether the current turn emitted a proposed plan item. + // Whether the current turn emitted a proposed plan item that has not been superseded by a + // later steer. This is cleared when the user submits a steer so the plan popup only appears + // if a newer proposed plan arrives afterward. saw_plan_item_this_turn: bool, // Incremental buffer for streamed plan content. plan_delta_buffer: String,