Lightweight coding agent that runs in your terminal
Rust
Avoid redundant memory enable notice (#18580)
Eric Trautce0e28ea6fa6
diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rsindex 0413a25d36..2bcdd87c87 100644--- a/codex-rs/tui/src/app.rs+++ b/codex-rs/tui/src/app.rs@@ -1423,10 +1423,12 @@ impl App {return;}+ let memory_tool_was_enabled = self.config.features.enabled(Feature::MemoryTool);self.config = next_config;- let show_memory_enable_notice = feature_updates_to_apply- .iter()- .any(|(feature, enabled)| *feature == Feature::MemoryTool && *enabled);+ let show_memory_enable_notice =+ feature_updates_to_apply.iter().any(|(feature, enabled)| {+ *feature == Feature::MemoryTool && *enabled && !memory_tool_was_enabled+ });for (feature, effective_enabled) in feature_updates_to_apply {self.chat_widget.set_feature_enabled(feature, effective_enabled);