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

@@ -1,12 +1,12 @@
---
source: tui/src/onboarding/gateway_tests.rs
expression: terminal.backend().to_string()
assertion_line: 40
expression: "screen(&widget, 8)"
---
Sign in another way
Choose how you want to use Codex.
> 1. Use an OpenAI API key
2. Use Amazon Bedrock
3. Use Google Cloud Vertex AI
4. Use a custom provider or gateway
Press enter to continue
Press esc to go back

View File

@@ -1,8 +1,9 @@
---
source: tui/src/onboarding/gcp_tests.rs
assertion_line: 34
expression: terminal.backend().to_string()
---
Sign in another way
Choose how you want to use Codex.
> 1. Use an OpenAI API key
Pay for what you use
@@ -14,4 +15,3 @@ expression: terminal.backend().to_string()
Connect using your Google Cloud credentials
Press enter to continue
Press esc to go back

View File

@@ -1,11 +1,11 @@
---
source: tui/src/onboarding/gcp_tests.rs
assertion_line: 34
expression: terminal.backend().to_string()
---
Sign in another way
Choose how you want to use Codex.
1. Use an OpenAI API key
2. Use Amazon Bedrock
> 3. Use Google Cloud Vertex AI
Press enter to continue
Press esc to go back

View File

@@ -1,11 +1,11 @@
---
source: tui/src/onboarding/gcp_tests.rs
assertion_line: 34
expression: terminal.backend().to_string()
---
Sign in with ChatGPT to use Codex as part of your paid plan
or connect an API key for usage-based billing
Connect an API key to use Codex.
> 1. Use an OpenAI API key
Pay for what you use
> 1. Sign in with ChatGPT
2. Sign in with Device Code
3. Sign in another way
Press enter to continue

View File

@@ -1,25 +0,0 @@
---
source: tui/src/onboarding/auth.rs
expression: contents
---
Finish signing in via your browser
If the link doesn't open automatically,
press c to copy it:
https://auth.openai.com/oauth/authorize?re
sponse_type=code&client_id=app_EMoamEEZ73f0C
kXaXp7hrann&redirect_uri=http%3A%2F%2Flocalh
ost%3A1455%2Fauth%2Fcallback&scope=openid%20
profile%20email%20offline_access%20api.conne
ctors.read%20api.connectors.invoke&code_chal
lenge=1YM3Z8QbrLbdt9C3eX3j7UQ4GmFRmKz4OeVYwD
6s5xA&code_challenge_method=S256&id_token_ad
d_organizations=true&codex_cli_simplified_fl
ow=true&state=8cHjQ4nVx2Yp7Lm9Rk3Wf6Ta1Bs5Du
0Ei4Go7Nz2PqM&originator=codex_cli_rs
On a remote or headless machine? Press esc
and choose Sign in with Device Code.
Press esc to cancel