Lightweight coding agent that runs in your terminal
Rust
fix(tui): show xhigh reasoning warning for gpt-5.2 (#7910)
Victor Vannara9287be762ef4
diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rsindex 82f00f9cac..e3f95a612e 100644--- a/codex-rs/tui/src/chatwidget.rs+++ b/codex-rs/tui/src/chatwidget.rs@@ -2395,7 +2395,8 @@ impl ChatWidget {format!("⚠ {effort_label} reasoning effort can quickly consume Plus plan rate limits.")});let warn_for_model = preset.model.starts_with("gpt-5.1-codex")- || preset.model.starts_with("gpt-5.1-codex-max");+ || preset.model.starts_with("gpt-5.1-codex-max")+ || preset.model.starts_with("gpt-5.2");struct EffortChoice {stored: Option<ReasoningEffortConfig>,diff --git a/codex-rs/tui2/src/chatwidget.rs b/codex-rs/tui2/src/chatwidget.rsindex ea29c00d93..320f5b54d8 100644--- a/codex-rs/tui2/src/chatwidget.rs+++ b/codex-rs/tui2/src/chatwidget.rs@@ -2379,7 +2379,8 @@ impl ChatWidget {format!("⚠ {effort_label} reasoning effort can quickly consume Plus plan rate limits.")});let warn_for_model = preset.model.starts_with("gpt-5.1-codex")- || preset.model.starts_with("gpt-5.1-codex-max");+ || preset.model.starts_with("gpt-5.1-codex-max")+ || preset.model.starts_with("gpt-5.2");struct EffortChoice {stored: Option<ReasoningEffortConfig>,