mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
Wire shared runtime authentication through threads and API clients (#59177)
## What changed - Share a lazily registered runtime across threads, model discovery, and extension clients when `runtime_agent_instances` is enabled, while honoring each thread's authentication mode and credential owner. - Bind model catalogs to the effective provider and authentication context while preserving cache policy and live API-key discovery settings. - Resolve credentials, routing, and transport policy together for each request. Preserve proxy and TLS settings, validate runtime account selectors, and prevent pooled connections from crossing runtime identities. - Accept supported ChatGPT subdomains when selecting the registration environment. ## Testing Add integration coverage for shared runtime registration, dual-header and assertion-only modes, disabled and third-party providers, credential replacement, subagents, and delegated review. Add coverage for catalog cache policy and runtime-aware connection reuse. GitOrigin-RevId: 99dd9d987c29c93597a648f6586f98ac6a932c3c
This commit is contained in:
@@ -114,6 +114,7 @@ pub(crate) async fn run_codex_thread_interactive(
|
||||
instructions,
|
||||
installation_id: parent_session.installation_id.clone(),
|
||||
auth_manager,
|
||||
runtime_auth: parent_session.services.runtime_auth.clone(),
|
||||
models_manager,
|
||||
git_root_discovery: Arc::clone(&parent_session.services.git_root_discovery),
|
||||
environment_manager: parent_session
|
||||
|
||||
Reference in New Issue
Block a user