aKode fase 2b-2: rimosso login ChatGPT e tutti i sottosistemi solo-ChatGPT
- Login: resta solo chiave API (+ header, Bedrock). Rimossi OAuth/browser, device code, refresh/revoke su auth.openai.com, PAT, agent/workload identity, runtime agent instance, backend-client e openapi-models, workspace routing. - Rimossi: generazione immagini (ext + skill imagegen), history notes, plugin remoti (catalogo, sync, share), cyber access program, daybreak, cloud config e requirements (config_server ora fail-closed), attestation, frozen cloud skills, EMA MCP auth, Codex Apps/connettori, ricerca ospitata, header/zstd/ routing/cookie del backend Codex, fallback OPENAI_API_KEY del realtime. - Messaggi d'errore senza link a chatgpt.com. - Chiavi di config legacy accettate e ignorate; feature rimosse = Stage::Removed. - Test: cancellati solo quelli del codice rimosso; test di sicurezza (sandbox estensioni, permessi, redazione, auth storage, requirements) adattati. Restano solo fallimenti d'ambiente (code-mode-host/V8, ~/.agents). - Istruzioni di sistema invariate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -65,18 +65,15 @@ const BACKGROUND_PAGINATED_ROLLOUT_MIGRATION_FEATURE: &str =
|
||||
"background_paginated_rollout_migration";
|
||||
|
||||
const SUPPORTED_EXPERIMENTAL_FEATURE_ENABLEMENT: &[&str] = &[
|
||||
"api_key_cyber_access_programs",
|
||||
"api_key_model_discovery",
|
||||
"auth_elicitation",
|
||||
BACKGROUND_PAGINATED_ROLLOUT_MIGRATION_FEATURE,
|
||||
"codex_apps_mcp_2026_07_28",
|
||||
"mcp_2026_07_28",
|
||||
"mcp_connection_sharing",
|
||||
"mcp_lazy_stdio_startup",
|
||||
"memories",
|
||||
"mentions_v2",
|
||||
"remote_control",
|
||||
"remote_plugin",
|
||||
"tool_suggest",
|
||||
"windows_sandbox_service",
|
||||
];
|
||||
@@ -241,7 +238,6 @@ impl ConfigRequestProcessor {
|
||||
let provider = create_model_provider(config.model_provider, /*auth_manager*/ None);
|
||||
let capabilities = provider.capabilities();
|
||||
Ok(ModelProviderCapabilitiesReadResponse {
|
||||
image_generation: capabilities.image_generation,
|
||||
web_search: capabilities.web_search,
|
||||
})
|
||||
}
|
||||
@@ -358,14 +354,8 @@ pub(super) async fn reload_user_config(
|
||||
}
|
||||
|
||||
async fn reload_user_config_inner(config_manager: &ConfigManager, thread_manager: &ThreadManager) {
|
||||
config_manager.revoke_mcp_ema_startups();
|
||||
if let Err(err) = config_manager.load_config_layers(/*cwd*/ None).await {
|
||||
tracing::warn!("failed to rebuild user config for runtime refresh: {err}");
|
||||
for thread_id in thread_manager.list_thread_ids().await {
|
||||
if let Ok(thread) = thread_manager.get_thread(thread_id).await {
|
||||
thread.disable_mcp_enterprise_auth().await;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
let thread_ids = thread_manager.list_thread_ids().await;
|
||||
@@ -385,7 +375,6 @@ async fn reload_user_config_inner(config_manager: &ConfigManager, thread_manager
|
||||
Ok(config) => config,
|
||||
Err(err) => {
|
||||
tracing::warn!(%thread_id, %err, "failed to reload thread configuration");
|
||||
thread.disable_mcp_enterprise_auth().await;
|
||||
break;
|
||||
}
|
||||
};
|
||||
@@ -416,8 +405,7 @@ async fn reload_user_config_inner(config_manager: &ConfigManager, thread_manager
|
||||
}
|
||||
}
|
||||
if attempt == 3 {
|
||||
thread.disable_mcp_enterprise_auth().await;
|
||||
tracing::warn!(%thread_id, "configuration kept changing during user reload; enterprise MCP disabled");
|
||||
tracing::warn!(%thread_id, "configuration kept changing during user reload");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -933,7 +921,6 @@ mod tests {
|
||||
use codex_config::BrowserUseAccessApprovalLifetimeToml;
|
||||
use codex_config::BrowserUseOriginPolicyToml;
|
||||
use codex_config::BrowserUseRequirementsToml;
|
||||
use codex_config::CloudConfigBundleLoader;
|
||||
use codex_config::ComputerUseMacosRequirementsToml;
|
||||
use codex_config::ComputerUseRequirementsToml;
|
||||
use codex_config::ComputerUseWindowsExeRequirementToml;
|
||||
@@ -962,14 +949,8 @@ mod tests {
|
||||
std::fs::write(
|
||||
&managed_config_path,
|
||||
r#"
|
||||
[features]
|
||||
use_xaa = true
|
||||
[mcp_enterprise_managed_auth.idp]
|
||||
issuer = "https://idp.example"
|
||||
client_id = "idp-client"
|
||||
[mcp_servers.enterprise]
|
||||
url = "https://resource.example/mcp"
|
||||
auth = "ema_auth"
|
||||
oauth_resource = "https://resource.example/mcp"
|
||||
[mcp_servers.enterprise.oauth]
|
||||
client_id = "mcp-client"
|
||||
@@ -984,7 +965,6 @@ client_id = "mcp-client"
|
||||
home.path().to_path_buf(),
|
||||
Vec::new(),
|
||||
LoaderOverrides::with_managed_config_path_for_tests(managed_config_path),
|
||||
CloudConfigBundleLoader::default(),
|
||||
);
|
||||
let initial = config_manager
|
||||
.load_latest_config(Some(home.path().to_path_buf()))
|
||||
|
||||
Reference in New Issue
Block a user