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

@@ -185,21 +185,20 @@ requires_openai_auth = true
&["--profile", "work", "--no-daemon", "verify the gateway"],
)?;
terminal
.wait_for_screen("Sign in another way")
.wait_for_screen("Use a custom provider or gateway")
.with_context(|| terminal.screen_contents())?;
// Startup drains input after its first draw. Retry the menu shortcut until it is accepted.
// Startup drains input after its first draw. Retry the navigation until it is accepted.
let deadline = std::time::Instant::now() + Duration::from_secs(/*secs*/ 30);
while !terminal.screen_contains("Use a custom provider or gateway") {
while !terminal.screen_contains("> 2. Use a custom provider or gateway") {
ensure!(
std::time::Instant::now() < deadline,
"gateway option missing: {}",
"gateway option was not highlighted: {}",
terminal.screen_contents()
);
terminal.write_input(b"2")?;
terminal.write_input(b"\x1b[B")?;
terminal.read_output(Duration::from_millis(/*millis*/ 50))?;
}
// Arrow navigation avoids carrying the menu shortcut across two screens.
terminal.write_input(b"\x1b[B\r")?;
terminal.write_input(b"\r")?;
terminal.wait_for_screen("Office gateway")?;
terminal.write_input(b"\x1b[H\r")?;
terminal.wait_for_screen("Paste or type your API key")?;