From f80fc86f189506c2b72ae1bc0a57069ce25db3ce Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Tue, 8 Jul 2025 12:00:13 -0700 Subject: [PATCH 1/3] chore: default to the latest version of the Codex CLI in the GitHub Action (#1485) Now we no longer have to update the default value of `codex_release_tag` in the GitHub Action going forward. --- .github/actions/codex/action.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/actions/codex/action.yml b/.github/actions/codex/action.yml index f0af1cb3e7..404194c00f 100644 --- a/.github/actions/codex/action.yml +++ b/.github/actions/codex/action.yml @@ -20,9 +20,9 @@ inputs: description: "Value to use as the CODEX_HOME environment variable when running Codex." required: false codex_release_tag: - description: "The release tag of the Codex model to run." + description: "The release tag of the Codex model to run, e.g., 'rust-v0.3.0'. Defaults to the latest release." required: false - default: "codex-rs-ca8e97fcbcb991e542b8689f2d4eab9d30c399d6-1-rust-v0.0.2505302325" + default: "" runs: using: "composite" @@ -84,7 +84,10 @@ runs: # we will need to update this action.yml file to match. artifact="codex-exec-${triple}.tar.gz" - gh release download ${{ inputs.codex_release_tag }} --repo openai/codex \ + TAG_ARG="${{ inputs.codex_release_tag }}" + # The usage is `gh release download [] [flags]`, so if TAG_ARG + # is empty, we do not pass it so we can default to the latest release. + gh release download ${TAG_ARG:+$TAG_ARG} --repo openai/codex \ --pattern "$artifact" --output - \ | tar xzO > /usr/local/bin/codex-exec chmod +x /usr/local/bin/codex-exec From e444a50cf022b694d689017dbe54e47ca4e11084 Mon Sep 17 00:00:00 2001 From: Yusuf Eren Date: Tue, 8 Jul 2025 22:05:22 +0300 Subject: [PATCH 2/3] feat: add reasoning fields to profile settings (#1484) --- codex-rs/core/src/config.rs | 16 ++++++++++++---- codex-rs/core/src/config_profile.rs | 4 ++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/codex-rs/core/src/config.rs b/codex-rs/core/src/config.rs index 26f84be67a..db4f9ffe6e 100644 --- a/codex-rs/core/src/config.rs +++ b/codex-rs/core/src/config.rs @@ -464,8 +464,14 @@ impl Config { codex_linux_sandbox_exe, hide_agent_reasoning: cfg.hide_agent_reasoning.unwrap_or(false), - model_reasoning_effort: cfg.model_reasoning_effort.unwrap_or_default(), - model_reasoning_summary: cfg.model_reasoning_summary.unwrap_or_default(), + model_reasoning_effort: config_profile + .model_reasoning_effort + .or(cfg.model_reasoning_effort) + .unwrap_or_default(), + model_reasoning_summary: config_profile + .model_reasoning_summary + .or(cfg.model_reasoning_summary) + .unwrap_or_default(), }; Ok(config) } @@ -659,6 +665,8 @@ wire_api = "chat" model = "o3" model_provider = "openai" approval_policy = "never" +model_reasoning_effort = "high" +model_reasoning_summary = "detailed" [profiles.gpt3] model = "gpt-3.5-turbo" @@ -766,8 +774,8 @@ disable_response_storage = true tui: Tui::default(), codex_linux_sandbox_exe: None, hide_agent_reasoning: false, - model_reasoning_effort: ReasoningEffort::default(), - model_reasoning_summary: ReasoningSummary::default(), + model_reasoning_effort: ReasoningEffort::High, + model_reasoning_summary: ReasoningSummary::Detailed, }, o3_profile_config ); diff --git a/codex-rs/core/src/config_profile.rs b/codex-rs/core/src/config_profile.rs index 98d73bb5ab..2cd4480744 100644 --- a/codex-rs/core/src/config_profile.rs +++ b/codex-rs/core/src/config_profile.rs @@ -1,5 +1,7 @@ use serde::Deserialize; +use crate::config_types::ReasoningEffort; +use crate::config_types::ReasoningSummary; use crate::protocol::AskForApproval; /// Collection of common configuration options that a user can define as a unit @@ -12,4 +14,6 @@ pub struct ConfigProfile { pub model_provider: Option, pub approval_policy: Option, pub disable_response_storage: Option, + pub model_reasoning_effort: Option, + pub model_reasoning_summary: Option, } From 8373d17d67280b8da88aa14f60f4bbef45fc439d Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Tue, 8 Jul 2025 12:22:11 -0700 Subject: [PATCH 3/3] docs: document support for model_reasoning_effort and model_reasoning_summary in profiles --- codex-rs/config.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/config.md b/codex-rs/config.md index 59cf4204dc..b5a94a092c 100644 --- a/codex-rs/config.md +++ b/codex-rs/config.md @@ -157,6 +157,8 @@ wire_api = "chat" model = "o3" model_provider = "openai" approval_policy = "never" +model_reasoning_effort = "high" +model_reasoning_summary = "detailed" [profiles.gpt3] model = "gpt-3.5-turbo"