From dc2aeac21fa23b676f8c6657f97cc322d68fd5e0 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Thu, 30 Oct 2025 17:45:05 -0700 Subject: [PATCH] override verbosity for gpt-5-codex (#6007) we are seeing [reports](https://github.com/openai/codex/issues/6004) of users having verbosity in their config.toml and facing issues. gpt-5-codex doesn't accept other values rather than medium for verbosity. --- codex-rs/core/src/client.rs | 10 ++++++---- codex-rs/core/src/model_family.rs | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/codex-rs/core/src/client.rs b/codex-rs/core/src/client.rs index 683091b1..2085c39f 100644 --- a/codex-rs/core/src/client.rs +++ b/codex-rs/core/src/client.rs @@ -216,10 +216,12 @@ impl ModelClient { let verbosity = if self.config.model_family.support_verbosity { self.config.model_verbosity } else { - warn!( - "model_verbosity is set but ignored as the model does not support verbosity: {}", - self.config.model_family.family - ); + if self.config.model_verbosity.is_some() { + warn!( + "model_verbosity is set but ignored as the model does not support verbosity: {}", + self.config.model_family.family + ); + } None }; diff --git a/codex-rs/core/src/model_family.rs b/codex-rs/core/src/model_family.rs index d6da1b05..a0444361 100644 --- a/codex-rs/core/src/model_family.rs +++ b/codex-rs/core/src/model_family.rs @@ -160,7 +160,7 @@ pub fn find_family_for_model(slug: &str) -> Option { reasoning_summary_format: ReasoningSummaryFormat::Experimental, base_instructions: GPT_5_CODEX_INSTRUCTIONS.to_string(), apply_patch_tool_type: Some(ApplyPatchToolType::Freeform), - support_verbosity: true, + support_verbosity: false, ) } else if slug.starts_with("gpt-5") { model_family!(