WIP fase 2b-2: rimosso login ChatGPT/OAuth/device code, agent/workload identity, backend-client; resta solo chiave API (test non tutti verdi)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 06:00:44 +01:00
parent 82347a58ed
commit 231e8cd136
661 changed files with 4924 additions and 64817 deletions

View File

@@ -110,10 +110,6 @@ pub struct McpRuntimeInput {
pub client_mcp_extensions: ClientMcpExtensions,
pub auth: Option<CodexAuth>,
pub auth_manager: Option<Arc<AuthManager>>,
pub runtime_auth: Option<(
codex_runtime_agent_instance::RuntimeAuthSlot,
codex_features::RuntimeAuthMode,
)>,
pub elicitation_reviewer: Option<ElicitationReviewerHandle>,
pub elicitation_lifecycle: Option<ElicitationLifecycle>,
}
@@ -196,11 +192,7 @@ impl PublishedMcpRuntime {
fn auth_matches(&self, auth: Option<&CodexAuth>) -> bool {
match (self.auth.as_ref(), auth) {
(Some(previous), Some(latest)) => {
previous == latest
&& previous.get_account_id() == latest.get_account_id()
&& previous.get_chatgpt_user_id() == latest.get_chatgpt_user_id()
&& previous.is_fedramp_account() == latest.is_fedramp_account()
&& self.auth_token == latest.get_token().ok()
previous == latest && self.auth_token == latest.get_token().ok()
}
(None, None) => true,
(Some(_), None) | (None, Some(_)) => false,
@@ -1091,14 +1083,6 @@ impl McpRuntimeContext {
self.local_process_cwd.clone()
}
pub(crate) fn http_client_factory(&self) -> codex_http_client::HttpClientFactory {
self.environment_manager.http_client_factory().clone()
}
pub(crate) fn set_local_http_client(&mut self, client: Arc<dyn HttpClient>) {
self.local_http_client = client;
}
pub(crate) fn local_http_client(&self) -> Arc<dyn HttpClient> {
Arc::clone(&self.local_http_client)
}