Skip to content

[codex] Add managed new-thread model settings#29683

Merged
hefuc-oai merged 8 commits into
mainfrom
codex/managed-new-thread-model-default
Jun 26, 2026
Merged

[codex] Add managed new-thread model settings#29683
hefuc-oai merged 8 commits into
mainfrom
codex/managed-new-thread-model-default

Conversation

@hefuc-oai

@hefuc-oai hefuc-oai commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Why

Admins need persistent defaults for the model, reasoning effort, and service tier shown when the Desktop App creates a new thread. These are initialization defaults rather than runtime constraints: the App should use them to initialize its draft while still allowing a user to make an explicit selection.

The app-server therefore needs to expose the managed values before thread creation without changing thread/start behavior for other clients.

What changed

  • Parse model, model_reasoning_effort, and service_tier from [models.new_thread] in requirements.toml.
  • Compose the models requirements through the existing requirements-layer precedence rules.
  • Expose the resolved values through configRequirements/read as requirements.models.newThread.
  • Add the corresponding app-server protocol types and regenerate the JSON and TypeScript schema fixtures.
  • Document the new configRequirements/read fields in the app-server README.

Scope

This PR is data plumbing only. It does not apply these values during thread/start and does not change thread creation for existing app-server clients, resumed or forked sessions, internal or subagent sessions, codex exec, or the TUI. A companion Desktop App change owns draft initialization, sends the effective settings for ordinary and prewarmed starts, and preserves explicit user changes.

Validation

  • Requirements deserialization coverage for [models.new_thread]
  • Requirements-layer precedence coverage
  • App-server API mapping coverage
  • configRequirements/read integration coverage
  • Regenerated app-server JSON and TypeScript schema fixtures

@hefuc-oai hefuc-oai force-pushed the codex/managed-new-thread-model-default branch from 7872e98 to f35ecbe Compare June 23, 2026 22:56
@hefuc-oai hefuc-oai changed the title [codex] Add managed new-thread model default [codex] Add managed new-thread model settings Jun 24, 2026
@hefuc-oai hefuc-oai force-pushed the codex/managed-new-thread-model-default branch from 0e65a6c to 601e010 Compare June 24, 2026 01:02
@hefuc-oai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 601e010f1f

ℹ️ 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".

@hefuc-oai hefuc-oai force-pushed the codex/managed-new-thread-model-default branch from 74f4b29 to 24bdeb4 Compare June 24, 2026 22:56
@hefuc-oai hefuc-oai marked this pull request as ready for review June 24, 2026 22:59
@hefuc-oai hefuc-oai requested a review from a team as a code owner June 24, 2026 22:59
@hefuc-oai

Copy link
Copy Markdown
Contributor Author

@codex review

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

Copy link
Copy Markdown
Contributor

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: 24bdeb4546

ℹ️ 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/app-server/src/request_processors/thread_processor.rs Outdated
Comment thread codex-rs/app-server/tests/suite/v2/thread_start.rs Outdated
Comment thread codex-rs/app-server/src/request_processors/thread_processor.rs Outdated
Comment thread codex-rs/app-server/src/request_processors/thread_processor.rs Outdated
Comment thread codex-rs/app-server/src/request_processors/thread_processor.rs Outdated
Comment thread codex-rs/app-server-protocol/src/protocol/v2/config.rs
Comment thread codex-rs/config/src/requirements_layers/stack_tests.rs

@shijie-oai shijie-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

From my perspective looks good but I am not an expert in rust.

@hefuc-oai hefuc-oai force-pushed the codex/managed-new-thread-model-default branch from 0f3877f to 0f2bf04 Compare June 26, 2026 16:56
@hefuc-oai hefuc-oai force-pushed the codex/managed-new-thread-model-default branch from 0f2bf04 to 4356bf6 Compare June 26, 2026 18:25
@hefuc-oai hefuc-oai enabled auto-merge (squash) June 26, 2026 18:36
@hefuc-oai hefuc-oai merged commit d9cf931 into main Jun 26, 2026
31 checks passed
@hefuc-oai hefuc-oai deleted the codex/managed-new-thread-model-default branch June 26, 2026 18:37
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 26, 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.

3 participants