Repository navigation
fix: align implicit settings with provider-selected models - #5425
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ed4afc64bc
ℹ️ 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".
marcuswood-oai
left a comment
There was a problem hiding this comment.
I confirmed the existing AnyLLM defaults and explicit-settings regressions in both run modes using mocked model responses and the baseline resolver. These need addressing before approval. No additional inline findings.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f81b0998ae
ℹ️ 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".
markstuart-oai
left a comment
There was a problem hiding this comment.
Reviewed f81b0998ae8eb9716d1c736e3d7a3be3590d19fa. The original AnyLLM prefix, explicit-settings and sandbox-capability cases are fixed. One P2 remains in the existing nested-provider routing thread: a supported route such as openrouter/openai/gpt-5.4-mini still reaches the defaults lookup with a provider prefix and loses the known model defaults. Canonicalize at the adapter boundary while preserving explicit Agent and RunConfig settings.
I reviewed the full changed source and the affected provider and sandbox paths. I did not execute candidate code. Hosted CI and the required human reviews remain separate gates.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4938bf2bfd
ℹ️ 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".
43875b2 to
10a20ad
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 10a20ad245
ℹ️ 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".
markstuart-oai
left a comment
There was a problem hiding this comment.
Reviewed 10a20ad245ae695683632e992a43e6bd48ec4758 after the rebase. The earlier provider-routing and unnamed-model findings are fixed; no new substantive findings in the complete 11-file diff.
Explicit routed-string defaults retain their existing behavior. Same-valued in-place assignment is not tracked by this identity/value design; explicit constructor settings or whole-settings replacement preserve that intent. I consider these stated scope boundaries acceptable for this provider-selected-model fix.
Source-only review with an independent pass; no candidate code or tests ran here. Hosted CI and the required human owner review remain separate gates.
marcuswood-oai
left a comment
There was a problem hiding this comment.
LGTM 👍 No changes requested.
Explicit routed-string defaults are unchanged from the original base. Same-valued in-place assignments remain indistinguishable from untouched defaults; constructor settings or whole-settings replacement preserve explicit intent. These boundaries are acceptable for this provider-selected-model fix.
4538ffe
|
@codex review |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
4538ffe to
b0df3be
Compare
|
Rebased onto main at 9de261b as b0df3be without conflicts; all five PR patches are unchanged. There were no outstanding review threads or additional actionable comments. The new upstream sandbox example is included in 252 passing focused tests (1 skipped); two independent adversarial review rounds are clean. Formatting, lint, mypy, and Pyright passed. Full local tests had 12,379 passes, 33 skips, and exactly the same 69 previously confirmed baseline failures; the serial group was not reached. Hosted CI is running on this commit. @codex review |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b0df3bea9d
ℹ️ 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".
This pull request fixes implicit model settings when a provider selects the model. A provider-selected non-GPT model no longer inherits GPT-5 reasoning and verbosity defaults, and routed strings such as
any-llm/openrouter/openai/gpt-5.4-miniuse the resolved adapter’s canonical defaults in bothAgent.modelandRunConfig.model.Adapters expose defaults through
Model.get_default_model_settings()while retaining their transport identifiers. Models without defaults retain settings captured at agent construction. Explicit settings remain authoritative, including equal-valued top-level assignments and settings shared by shallow clones. Plain explicit model names and concrete model selections retain their existing precedence. Sandbox capability settings follow model defaults, with run-level overrides last, in both Runner modes.Resolves #5414.
Validation: