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:
andrea.difonzo
2026-11-10 16:20:15 +01:00
parent 82347a58ed
commit 6089fbde91
1573 changed files with 10289 additions and 177679 deletions

View File

@@ -31,30 +31,13 @@ pub async fn load_managed_requirements_state(
let ConfigLoadOptions {
loader_overrides: overrides,
strict_config,
cloud_config_bundle,
} = options.into();
if overrides.ignore_managed_requirements {
return Ok(ConfigRequirementsToml::default());
}
let mut bundle_requirements = Vec::new();
if let Some(bundle) = cloud_config_bundle.get().await.map_err(io::Error::other)? {
let base_dir = AbsolutePathBuf::from_absolute_path(codex_home)?;
bundle_requirements = bundle
.requirements_toml
.into_layers()
.into_iter()
.map(|layer| layer.with_base_dir(base_dir.clone()))
.collect();
}
let (requirements, _, _) = load_requirements_from_sources(
fs,
codex_home,
&overrides,
strict_config,
bundle_requirements,
)
.await?;
let (requirements, _, _) =
load_requirements_from_sources(fs, codex_home, &overrides, strict_config).await?;
let _: ConfigRequirements = requirements.clone().try_into()?;
let requirements_toml = requirements.into_toml();
// Full config loads also validate required provider definitions when
@@ -71,7 +54,6 @@ pub(super) async fn load_requirements_from_sources(
codex_home: &Path,
overrides: &LoaderOverrides,
strict_config: bool,
bundle_requirements: Vec<RequirementsLayerEntry>,
) -> io::Result<(
ConfigRequirementsWithSources,
LoadedConfigLayers,
@@ -108,7 +90,6 @@ pub(super) async fn load_requirements_from_sources(
.await?;
if !overrides.ignore_managed_requirements {
requirements_layers.extend(system_requirements_layer);
requirements_layers.extend(bundle_requirements);
// Legacy managed_config.toml contributes approval and sandbox requirements.
requirements_layers.extend(requirements_layers_from_legacy_scheme(
loaded_config_layers.clone(),