Repository navigation
Conversation
Resolve role-owned providers from trusted user configuration, isolate child provider state, and route nested cross-provider delegation through a dedicated external agent surface. Keep native OpenAI V2 agent messages encrypted while lowering only non-OpenAI V2 task delivery to plaintext user input. Add coverage for provider provenance, routing, resume, lifecycle, and nested delegation.
This was referenced Sep 3, 2026
Owner
Author
|
CI triage for run 33786633213:
This PR changes no After the final audit/format pass, I also reran the two highest-risk suites directly against head |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This is a review mirror for a patch based on
openai/codex:latest-alpha-cliat042534ec1ab2f79c2997e779347d5383832ecb2e(
0.154.0-alpha.1). The candidate commit isaf3072ebbcde8d47bb8592a6a3226ef1b83b560a.Summary
Allow a trusted user-defined agent role to select an already configured model
provider, while keeping provider credentials, model catalogs, V2 message
transport, history, and resume state isolated at the child boundary.
The patch also makes MultiAgent V2 portable across provider boundaries:
agent_messagepath;
usertaskmessage;
V2 message path.
Motivation
Agent roles currently apply
modelandmodel_reasoning_effort, but anexplicit
model_provideris lost during child creation. A custom model name istherefore sent through the parent-owned provider and authentication path, even
when the same provider works in a direct session.
Preserving the provider alone is not sufficient for V2. Native inter-agent
messages may contain OpenAI-owned encrypted content that an external Responses
provider cannot consume. Cross-provider delegation needs a provider-aware
message boundary without weakening the native OpenAI path or duplicating the
parent context.
Design
User-owned trust boundary
subagent_model_provider_allowlist.provider map; it cannot define or replace provider credentials.
Provider isolation
provider-specific model manager/catalog.
encrypted function arguments are not forwarded to non-OpenAI providers.
allowlist before issuing a request.
V2 message boundary
agent_messagetransport.a non-OpenAI provider; durable history remains canonical.
configuration_updateitems and internal metadata are removed atthe same non-OpenAI request boundary.
or forwarded.
selecting the encrypted route for a cross-provider target.
Context and nesting
are rejected.
selected role changes provider.
intermediate OpenAI child and without duplicating context.
Deliberate non-goals
provider.order,allow_fallbacks, or arbitraryextra_bodysupport is added. Endpoint routing remains the provider's responsibility.
in the patch.
/modelscapability is inferred from the presence of a bearertoken; custom catalogs remain declarative.
Verification
agent-roles,config,core,model-provider,app-server)cargo build --release -p codex-cli --bin codex0.154.0-alpha.1)cargo fmt --all -- --checkjust fixfor affected packagesThe 6/6 cross-provider/nested E2E suite and the 17/17 app-server MultiAgent V2
suite were rerun against final head
af3072eafter the last audit and formatpass.
The investigated Windows code-mode elicitation failure reproduces unchanged on
the untouched
0.154.0-alpha.1base. The repository-widejust fmtPythonphase was unavailable on this host because
uvis not installed; no Pythonfiles are changed by this patch.
Issues
Fixes openai#40858
Fixes openai#34833
Fixes openai#38656
Addresses openai#17598
Addresses openai#27712
Related regression report: openai#36387
Not claimed as fixed without a dedicated Ollama reproduction: openai#24069