mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Clarify config loader APIs and share interactive login setup (#57169)
## What changed - Rename ChatGPT-specific bundle loaders to `chatgpt_config_bundle_loader*` and use managed-config terminology for shared loader plumbing. - Pass `Config` directly when updating the app-server's managed configuration loader. - Share configuration loading, logging setup, and result handling between browser and device-code login. - Expose the CLI cloud-config helpers and `provider_uses_first_party_auth_path` through their library APIs. ## Testing Extend CLI login coverage to verify that `forced_login_method="api"` rejects both `login` and `login --device-auth` while preserving saved API-key credentials. GitOrigin-RevId: 9e8fa6110dc80882ba365e550b48ac77da604940
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use codex_cloud_config::cloud_config_bundle_loader_for_storage;
|
||||
use codex_cloud_config::chatgpt_config_bundle_loader_for_storage;
|
||||
use codex_config::CloudConfigBundleLoader;
|
||||
use codex_config::ConfigLoadOptions;
|
||||
use codex_core::config::bootstrap_auth_config;
|
||||
@@ -40,7 +40,7 @@ pub(super) async fn bootstrap_cloud_config_bundle(
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
Ok(cloud_config_bundle_loader_for_storage(
|
||||
Ok(chatgpt_config_bundle_loader_for_storage(
|
||||
bootstrap_auth_config(codex_home.as_path(), &bootstrap_config)?,
|
||||
/*enable_codex_api_key_env*/ false,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user