Lightweight coding agent that runs in your terminal
Rust
Fix misleading 'maximize' high effort description on xhigh models (#7874)
Victor Vannara95f7d37ec68b
diff --git a/codex-rs/app-server/tests/suite/v2/model_list.rs b/codex-rs/app-server/tests/suite/v2/model_list.rsindex eb9d0c32c1..b406eda3f4 100644--- a/codex-rs/app-server/tests/suite/v2/model_list.rs+++ b/codex-rs/app-server/tests/suite/v2/model_list.rs@@ -64,7 +64,7 @@ async fn list_models_returns_all_models_with_large_limit() -> Result<()> {},ReasoningEffortOption {reasoning_effort: ReasoningEffort::High,- description: "Maximizes reasoning depth for complex problems".to_string(),+ description: "Greater reasoning depth for complex problems".to_string(),},ReasoningEffortOption {reasoning_effort: ReasoningEffort::XHigh,@@ -138,7 +138,7 @@ async fn list_models_returns_all_models_with_large_limit() -> Result<()> {},ReasoningEffortOption {reasoning_effort: ReasoningEffort::High,- description: "Maximizes reasoning depth for complex or ambiguous problems"+ description: "Greater reasoning depth for complex or ambiguous problems".to_string(),},ReasoningEffortOption {diff --git a/codex-rs/core/src/openai_models/model_presets.rs b/codex-rs/core/src/openai_models/model_presets.rsindex 42a5557f40..cf635e8dac 100644--- a/codex-rs/core/src/openai_models/model_presets.rs+++ b/codex-rs/core/src/openai_models/model_presets.rs@@ -28,7 +28,7 @@ static PRESETS: Lazy<Vec<ModelPreset>> = Lazy::new(|| {},ReasoningEffortPreset {effort: ReasoningEffort::High,- description: "Maximizes reasoning depth for complex problems".to_string(),+ description: "Greater reasoning depth for complex problems".to_string(),},ReasoningEffortPreset {effort: ReasoningEffort::XHigh,@@ -110,7 +110,7 @@ static PRESETS: Lazy<Vec<ModelPreset>> = Lazy::new(|| {},ReasoningEffortPreset {effort: ReasoningEffort::High,- description: "Maximizes reasoning depth for complex or ambiguous problems".to_string(),+ description: "Greater reasoning depth for complex or ambiguous problems".to_string(),},ReasoningEffortPreset {effort: ReasoningEffort::XHigh,diff --git a/codex-rs/core/tests/suite/list_models.rs b/codex-rs/core/tests/suite/list_models.rsindex 9cfd9b267f..b62fdfe9ac 100644--- a/codex-rs/core/tests/suite/list_models.rs+++ b/codex-rs/core/tests/suite/list_models.rs@@ -79,7 +79,7 @@ fn gpt_5_1_codex_max() -> ModelPreset {),effort(ReasoningEffort::High,- "Maximizes reasoning depth for complex problems",+ "Greater reasoning depth for complex problems",),effort(ReasoningEffort::XHigh,@@ -162,7 +162,7 @@ fn gpt_5_2() -> ModelPreset {),effort(ReasoningEffort::High,- "Maximizes reasoning depth for complex or ambiguous problems",+ "Greater reasoning depth for complex or ambiguous problems",),effort(ReasoningEffort::XHigh,diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup.snapindex b4b89736a9..a4a86a41ba 100644--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup.snap+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup.snap@@ -6,7 +6,7 @@ expression: popup1. Low Fast responses with lighter reasoning2. Medium (default) Balances speed and reasoning depth for everyday tasks-› 3. High (current) Maximizes reasoning depth for complex problems+› 3. High (current) Greater reasoning depth for complex problems4. Extra high Extra high reasoning depth for complex problemsPress enter to confirm or esc to go backdiff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snapindex c5332ff590..3eb172c101 100644--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snap+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snap@@ -8,7 +8,7 @@ expression: popup1. Low Fast responses with lighter reasoning2. Medium (default) Balances speed and reasoning depth for everydaytasks- 3. High Maximizes reasoning depth for complex problems+ 3. High Greater reasoning depth for complex problems› 4. Extra high (current) Extra high reasoning depth for complex problems⚠ Extra high reasoning effort can quickly consumePlus plan rate limits.diff --git a/codex-rs/tui/src/chatwidget/tests.rs b/codex-rs/tui/src/chatwidget/tests.rsindex bd85a9edc8..65f6708c91 100644--- a/codex-rs/tui/src/chatwidget/tests.rs+++ b/codex-rs/tui/src/chatwidget/tests.rs@@ -1930,7 +1930,7 @@ fn single_reasoning_option_skips_selection() {let single_effort = vec![ReasoningEffortPreset {effort: ReasoningEffortConfig::High,- description: "Maximizes reasoning depth for complex or ambiguous problems".to_string(),+ description: "Greater reasoning depth for complex or ambiguous problems".to_string(),}];let preset = ModelPreset {id: "model-with-single-reasoning".to_string(),diff --git a/codex-rs/tui2/src/chatwidget/snapshots/codex_tui2__chatwidget__tests__model_reasoning_selection_popup.snap b/codex-rs/tui2/src/chatwidget/snapshots/codex_tui2__chatwidget__tests__model_reasoning_selection_popup.snapindex cbf5f0fb52..86c748d597 100644--- a/codex-rs/tui2/src/chatwidget/snapshots/codex_tui2__chatwidget__tests__model_reasoning_selection_popup.snap+++ b/codex-rs/tui2/src/chatwidget/snapshots/codex_tui2__chatwidget__tests__model_reasoning_selection_popup.snap@@ -6,7 +6,7 @@ expression: popup1. Low Fast responses with lighter reasoning2. Medium (default) Balances speed and reasoning depth for everyday tasks-› 3. High (current) Maximizes reasoning depth for complex problems+› 3. High (current) Greater reasoning depth for complex problems4. Extra high Extra high reasoning depth for complex problemsPress enter to confirm or esc to go backdiff --git a/codex-rs/tui2/src/chatwidget/snapshots/codex_tui2__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snap b/codex-rs/tui2/src/chatwidget/snapshots/codex_tui2__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snapindex ed6c6fee19..4d1d62d935 100644--- a/codex-rs/tui2/src/chatwidget/snapshots/codex_tui2__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snap+++ b/codex-rs/tui2/src/chatwidget/snapshots/codex_tui2__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snap@@ -7,7 +7,7 @@ expression: popup1. Low Fast responses with lighter reasoning2. Medium (default) Balances speed and reasoning depth for everydaytasks- 3. High Maximizes reasoning depth for complex problems+ 3. High Greater reasoning depth for complex problems› 4. Extra high (current) Extra high reasoning depth for complex problems⚠ Extra high reasoning effort can quickly consumePlus plan rate limits.diff --git a/codex-rs/tui2/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup.snap b/codex-rs/tui2/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup.snapindex b4b89736a9..a4a86a41ba 100644--- a/codex-rs/tui2/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup.snap+++ b/codex-rs/tui2/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup.snap@@ -6,7 +6,7 @@ expression: popup1. Low Fast responses with lighter reasoning2. Medium (default) Balances speed and reasoning depth for everyday tasks-› 3. High (current) Maximizes reasoning depth for complex problems+› 3. High (current) Greater reasoning depth for complex problems4. Extra high Extra high reasoning depth for complex problemsPress enter to confirm or esc to go backdiff --git a/codex-rs/tui2/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snap b/codex-rs/tui2/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snapindex c5332ff590..3eb172c101 100644--- a/codex-rs/tui2/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snap+++ b/codex-rs/tui2/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup_extra_high_warning.snap@@ -8,7 +8,7 @@ expression: popup1. Low Fast responses with lighter reasoning2. Medium (default) Balances speed and reasoning depth for everydaytasks- 3. High Maximizes reasoning depth for complex problems+ 3. High Greater reasoning depth for complex problems› 4. Extra high (current) Extra high reasoning depth for complex problems⚠ Extra high reasoning effort can quickly consumePlus plan rate limits.