Skip to content

Conversation

@aibrahim-oai
Copy link
Collaborator

  • make codex max the default
  • fix: we were doing some async work in sync function which caused tui to panic

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 automated review suggestions for this pull request.

ℹ️ 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 +212 to 216
pub(crate) fn builtin_model_presets(_auth_mode: Option<AuthMode>) -> Vec<ModelPreset> {
PRESETS
.iter()
.filter(|preset| match auth_mode {
Some(AuthMode::ApiKey) => preset.show_in_picker && preset.id != "gpt-5.1-codex-max",
_ => preset.show_in_picker,
})
.filter(|preset| preset.show_in_picker)
.cloned()
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 Align API-key preset filtering with test expectation

builtin_model_presets now ignores the provided auth mode and returns every preset marked show_in_picker, so calls with AuthMode::ApiKey still include gpt-5.1-codex-max. The unit test gpt_5_1_codex_max_hidden_for_api_key_auth in this file still asserts that codex-max is hidden for API key users, so running the core crate tests will fail on this commit until the picker logic or the test is updated to match the intended behavior.

Useful? React with 👍 / 👎.

@aibrahim-oai aibrahim-oai merged commit 67e67e0 into main Dec 4, 2025
26 checks passed
@aibrahim-oai aibrahim-oai deleted the migrade-codex-max branch December 4, 2025 04:54
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 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