Skip to content

Conversation

jif-oai
Copy link
Contributor

@jif-oai jif-oai commented Sep 12, 2025

Allow the reasoning effort to be optional

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

@jif-oai
Copy link
Contributor Author

jif-oai commented Sep 12, 2025

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

// Build a new client with per‑turn reasoning settings.
// Reuse the same provider and session id; auth defaults to env/API key.
let client = ModelClient::new(
Arc::new(per_turn_config),
auth_manager,
provider,
effort,
summary,

[P1] Preserve existing reasoning effort when send_user_turn omits it

The new SendUserTurnParams makes effort optional, but the per‑turn handling now passes that value straight into ModelClient::new. When a client leaves effort out of the request (to rely on the session’s current setting), this code forwards None to the model client, which disables reasoning for the whole turn even if the session was configured with a non‑empty effort. Prior to this commit the field was required, so the existing value was always supplied. This code should mirror the logic used in OverrideTurnContext by falling back to turn_context.client.get_reasoning_effort() when the parameter is absent, otherwise optional requests unintentionally drop reasoning output.


Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

@jif-oai jif-oai merged commit c6fd056 into main Sep 12, 2025
19 checks passed
@jif-oai jif-oai deleted the jif/option-reasoning-content branch September 12, 2025 19:06
@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants