[codex][device-stable-id][12/n] Send source stable ID with managed auth requests

This commit is contained in:
Riley Pinkerton
2026-06-18 07:04:07 +00:00
parent e7b6e0d859
commit 82008057b1
36 changed files with 358 additions and 40 deletions
@@ -5,6 +5,7 @@ use codex_config::CloudConfigBundleLoadError;
use codex_config::CloudConfigBundleLoadErrorCode;
use codex_config::CloudConfigBundleLoader;
use codex_config::types::AuthCredentialsStoreMode;
use codex_core::resolve_installation_id;
use codex_login::AuthKeyringBackendKind;
use codex_login::AuthManager;
use std::path::PathBuf;
@@ -67,5 +68,10 @@ pub async fn cloud_config_bundle_loader_for_storage(
keyring_backend_kind,
)
.await;
if let Ok(codex_home) = codex_home.clone().try_into()
&& let Ok(installation_id) = resolve_installation_id(&codex_home).await
{
auth_manager.set_source_surface_stable_id(Some(installation_id));
}
cloud_config_bundle_loader(auth_manager, chatgpt_base_url, codex_home)
}