WIP fase 2b-2: rimosso login ChatGPT/OAuth/device code, agent/workload identity, backend-client; resta solo chiave API (test non tutti verdi)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 06:00:44 +01:00
parent 82347a58ed
commit 231e8cd136
661 changed files with 4924 additions and 64817 deletions

View File

@@ -223,14 +223,11 @@ trust_level = "trusted"
source.join(".codex/config.toml"),
"model = \"source-model\"\n",
)?;
app_test_support::write_chatgpt_auth(
codex_login::login_with_api_key(
&home,
app_test_support::ChatGptAuthFixture::new("test-token")
.account_id("workspace-123")
.chatgpt_account_id("workspace-123")
.chatgpt_user_id("user-123")
.plan_type("enterprise"),
"sk-test-token",
codex_config::types::AuthCredentialsStoreMode::File,
codex_login::AuthKeyringBackendKind::default(),
)?;
let program = codex_utils_cargo_bin::cargo_bin("codex")?;
// Keep cold Rosetta translation outside the timed startup assertions.