From 5accc0df0731c47e3b65dae4872ea1ddb74ff8c4 Mon Sep 17 00:00:00 2001 From: Dylan Hurd Date: Tue, 27 Jan 2026 01:40:20 -0700 Subject: [PATCH 1/2] fix(core) info cleanup --- codex-rs/core/src/models_manager/model_info.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/codex-rs/core/src/models_manager/model_info.rs b/codex-rs/core/src/models_manager/model_info.rs index c07c144c113..bdbb1cd7caf 100644 --- a/codex-rs/core/src/models_manager/model_info.rs +++ b/codex-rs/core/src/models_manager/model_info.rs @@ -259,9 +259,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo { truncation_policy: TruncationPolicyConfig::tokens(10_000), context_window: Some(CONTEXT_WINDOW_272K), ) - } else if (slug.starts_with("gpt-5.2") || slug.starts_with("boomslang")) - && !slug.contains("codex") - { + } else if (slug.starts_with("gpt-5.2") || slug.starts_with("boomslang")) { model_info!( slug, apply_patch_tool_type: Some(ApplyPatchToolType::Freeform), @@ -276,7 +274,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo { context_window: Some(CONTEXT_WINDOW_272K), supported_reasoning_levels: supported_reasoning_level_low_medium_high_xhigh_non_codex(), ) - } else if slug.starts_with("gpt-5.1") && !slug.contains("codex") { + } else if slug.starts_with("gpt-5.1") { model_info!( slug, apply_patch_tool_type: Some(ApplyPatchToolType::Freeform), From 61f8e0a11f4864e43551dfefc1e2ffb316ed10b8 Mon Sep 17 00:00:00 2001 From: Dylan Hurd Date: Tue, 27 Jan 2026 01:46:15 -0700 Subject: [PATCH 2/2] clippy --- codex-rs/core/src/models_manager/model_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/models_manager/model_info.rs b/codex-rs/core/src/models_manager/model_info.rs index bdbb1cd7caf..5d8d0d29375 100644 --- a/codex-rs/core/src/models_manager/model_info.rs +++ b/codex-rs/core/src/models_manager/model_info.rs @@ -259,7 +259,7 @@ pub(crate) fn find_model_info_for_slug(slug: &str) -> ModelInfo { truncation_policy: TruncationPolicyConfig::tokens(10_000), context_window: Some(CONTEXT_WINDOW_272K), ) - } else if (slug.starts_with("gpt-5.2") || slug.starts_with("boomslang")) { + } else if slug.starts_with("gpt-5.2") || slug.starts_with("boomslang") { model_info!( slug, apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),