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

@@ -32,7 +32,7 @@ use codex_app_server_protocol::TurnStartParams;
use codex_app_server_protocol::TurnStartResponse;
use codex_app_server_protocol::UserInput as V2UserInput;
use codex_features::Feature;
use core_test_support::apps_test_server::AppsTestServer;
use core_test_support::mcp_test_server::McpTestServer;
use core_test_support::responses;
use core_test_support::streaming_sse::StreamingSseChunk;
use core_test_support::streaming_sse::start_streaming_sse_server;
@@ -623,7 +623,7 @@ async fn wait_for_dynamic_tool_started(
#[tokio::test]
async fn v2_child_idle_eviction_preserves_mail_and_followup_context() -> Result<()> {
let server = responses::start_mock_server().await;
let (mcp_server, startup_control) = AppsTestServer::mount_with_startup_control(&server).await?;
let (mcp_server, startup_control) = McpTestServer::mount_with_startup_control(&server).await?;
let codex_home = TempDir::new()?;
let traces = TempDir::new()?;
MockResponsesConfig::new(&server.uri())
@@ -634,13 +634,13 @@ async fn v2_child_idle_eviction_preserves_mail_and_followup_context() -> Result<
.with_root_config("thread_unload_delay_secs = 0")
.with_extra_config(&format!(
r#"[mcp_servers.fails_once]
url = "{}/api/codex/ps/mcp"
url = "{}"
http_headers = {{ Authorization = "Bearer synthetic-test-token" }}
required = true
# No cached tools: the child must initialize instead of taking the lazy startup path.
enabled_tools = []
"#,
mcp_server.chatgpt_base_url
mcp_server.mcp_url()
))
.write(codex_home.path())?;
write_models_cache(codex_home.path()).await?;