Skip to content

[codex] Support model-defined reasoning efforts#26444

Merged
aibrahim-oai merged 14 commits into
mainfrom
codex/model-defined-reasoning-efforts
Jun 4, 2026
Merged

[codex] Support model-defined reasoning efforts#26444
aibrahim-oai merged 14 commits into
mainfrom
codex/model-defined-reasoning-efforts

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

@aibrahim-oai aibrahim-oai commented Jun 4, 2026

Summary

  • accept non-empty model-defined reasoning effort values while preserving built-in effort behavior
  • propagate the non-Copy effort type through core, app-server, TUI, telemetry, and persistence call sites
  • preserve string wire encoding and expose an open-string schema for clients
  • update model selection and shortcut behavior for model-advertised effort values

Root cause

ReasoningEffort gained a string-backed custom variant, so it could no longer implement Copy or rely on derived closed-enum serialization. Existing consumers still moved effort values from shared references and assumed a fixed built-in value set.

Validation

  • just fmt
  • Local tests and compilation were not run per request; relying on CI.

@aibrahim-oai aibrahim-oai requested a review from a team as a code owner June 4, 2026 18:56
Copy link
Copy Markdown
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 automated review suggestions for this pull request.

Reviewed commit: e986926170

ℹ️ 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
  • 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 address that feedback".

Comment thread codex-rs/core/src/tools/handlers/multi_agents_spec.rs
Comment thread codex-rs/tui/src/chatwidget/reasoning_shortcuts.rs Outdated
Copy link
Copy Markdown
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 automated review suggestions for this pull request.

Reviewed commit: 60b4817116

ℹ️ 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
  • 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 address that feedback".

Comment thread codex-rs/protocol/Cargo.toml
@aibrahim-oai
Copy link
Copy Markdown
Collaborator Author

@codex review this

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Breezy!

ℹ️ 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
  • 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 address that feedback".

@aibrahim-oai aibrahim-oai merged commit 8ac304c into main Jun 4, 2026
31 checks passed
@aibrahim-oai aibrahim-oai deleted the codex/model-defined-reasoning-efforts branch June 4, 2026 20:36
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 4, 2026
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.

2 participants