Skip to content

Conversation

@aibrahim-oai
Copy link
Collaborator

@aibrahim-oai aibrahim-oai commented Dec 3, 2025

  • Introduce openai_models in /core
  • Move PRESETS under it
  • Move ModelPreset, ModelUpgrade, ReasoningEffortPreset, ReasoningEffortPreset, and ReasoningEffortPreset to protocol
  • Introduce Op::ListModels and EventMsg::AvailableModels

Next steps:

  • migrate app-server and tui to use the introduced Operation

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

use codex_protocol::ConversationId;
use codex_protocol::config_types::ReasoningEffort as ReasoningEffortConfig;
use codex_protocol::models::ContentItem;

P0 Badge Fix sandbox assessment ReasoningEffort import

The sandbox assessment module still imports ReasoningEffort from codex_protocol::config_types, but this enum was removed from that module in this commit (it now lives under openai_models). As a result the codex-core crate no longer compiles because the import at this location cannot be resolved. Update the import to the new module so builds succeed again.

ℹ️ 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 on lines 18 to 23
description: "Latest Codex-optimized flagship for deep and fast reasoning.".to_string(),
default_reasoning_effort: ReasoningEffort::Medium,
supported_reasoning_efforts: &[
ReasoningEffortPreset {
effort: ReasoningEffort::Low,
description: "Fast responses with lighter reasoning",
},
ReasoningEffortPreset {
effort: ReasoningEffort::Medium,
description: "Balances speed and reasoning depth for everyday tasks",
},
supported_reasoning_efforts: vec![
ReasoningEffortPreset {
effort: ReasoningEffort::High,
description: "Maximizes reasoning depth for complex problems",
description: "Maximizes reasoning depth for complex problems".to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

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

P1 Badge Default model omits medium/low reasoning options

For the default gpt-5.1-codex-max preset the default_reasoning_effort remains Medium, but the supported_reasoning_efforts list now only contains High and XHigh. This means the default effort is no longer in the supported set and lower-effort choices disappear from the advertised model list, even though Medium is still configured as the default. Clients consuming these presets will be unable to pick the prior default effort for the main model. Please restore the missing efforts or realign the default with the supported list.

Useful? React with 👍 / 👎.

Copy link
Collaborator

Choose a reason for hiding this comment

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

this is true

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Bad merge. Thanks codex

| EventMsg::Warning(_)
| EventMsg::TaskStarted(_)
| EventMsg::TaskComplete(_)
| EventMsg::AvailableModels(_)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
| EventMsg::AvailableModels(_)
| EventMsg::ListModelsResponse(_)

Copy link
Collaborator

@pakrym-oai pakrym-oai left a comment

Choose a reason for hiding this comment

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

Let's add a test for the new OP.

@aibrahim-oai aibrahim-oai enabled auto-merge (squash) December 3, 2025 19:49
@aibrahim-oai aibrahim-oai merged commit 7150432 into main Dec 3, 2025
26 checks passed
@aibrahim-oai aibrahim-oai deleted the migrate-model-preset branch December 3, 2025 20:30
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 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.

3 participants