mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
changes'
This commit is contained in:
@@ -69,8 +69,9 @@ use codex_hooks::Hooks;
|
||||
use codex_hooks::HooksConfig;
|
||||
use codex_login::AuthManager;
|
||||
use codex_login::CodexAuth;
|
||||
use codex_login::auth_env_telemetry::collect_auth_env_telemetry;
|
||||
use codex_login::auth_env_telemetry::collect_auth_env_telemetry_for_runtime;
|
||||
use codex_login::default_client::originator;
|
||||
use codex_login::provider_auth::auth_manager_for_provider_runtime;
|
||||
use codex_mcp::McpConnectionManager;
|
||||
use codex_mcp::SandboxState;
|
||||
use codex_mcp::ToolInfo as McpToolInfo;
|
||||
@@ -1741,9 +1742,18 @@ impl Session {
|
||||
let originator = originator().value;
|
||||
let terminal_type = user_agent();
|
||||
let session_model = session_configuration.collaboration_mode.model().to_string();
|
||||
let auth_env_telemetry = collect_auth_env_telemetry(
|
||||
let telemetry_auth_manager = auth_manager_for_provider_runtime(
|
||||
Some(Arc::clone(&auth_manager)),
|
||||
&session_configuration.provider_runtime,
|
||||
&session_configuration.provider,
|
||||
auth_manager.codex_api_key_env_enabled(),
|
||||
);
|
||||
let codex_api_key_env_enabled = telemetry_auth_manager
|
||||
.as_ref()
|
||||
.is_some_and(|manager| manager.codex_api_key_env_enabled());
|
||||
let auth_env_telemetry = collect_auth_env_telemetry_for_runtime(
|
||||
&session_configuration.provider_runtime,
|
||||
&session_configuration.provider,
|
||||
codex_api_key_env_enabled,
|
||||
);
|
||||
let mut session_telemetry = SessionTelemetry::new(
|
||||
conversation_id,
|
||||
|
||||
Reference in New Issue
Block a user