From 9287be762ef45e4405859685e959f67e73d6336c Mon Sep 17 00:00:00 2001 From: Victor Vannara Date: Thu, 11 Dec 2025 22:30:56 -0800 Subject: [PATCH] fix(tui): show xhigh reasoning warning for gpt-5.2 (#7910) ## Notes - Extend reasoning-effort popup warning eligibility to gpt-5.2* models for the Extra High (xhigh) option. ## Revisions - R2: Remove unnecessary tests and snapshots - R1: initial ## Testing - `just fix`, `cargo test -p codex-tui`, and `cargo test -p codex-tui2` - Manual testing **Before**: image **After** (consistent with GPT 5.1 Codex Max): image image --- codex-rs/tui/src/chatwidget.rs | 3 ++- codex-rs/tui2/src/chatwidget.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 82f00f9ca..e3f95a612 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, diff --git a/codex-rs/tui2/src/chatwidget.rs b/codex-rs/tui2/src/chatwidget.rs index ea29c00d9..320f5b54d 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,