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

@@ -3,10 +3,10 @@
use anyhow::Context;
use anyhow::Result;
use app_test_support::TestAppServer;
use app_test_support::write_api_key_auth;
use app_test_support::create_command_execution_sse_response;
use app_test_support::create_mock_responses_server_sequence;
use app_test_support::create_mock_responses_server_sequence_unchecked;
use app_test_support::mount_chatgpt_account;
use app_test_support::write_mock_responses_config_toml_with_chatgpt_base_url;
use codex_app_server::INPUT_TOO_LARGE_ERROR_CODE;
use codex_app_server::INVALID_PARAMS_ERROR_CODE;
@@ -47,7 +47,7 @@ async fn turn_steer_requires_active_turn() -> Result<()> {
&server.uri(),
&server.uri(),
)?;
mount_chatgpt_account(&server, &codex_home).await?;
write_api_key_auth(&codex_home)?;
let mut mcp = TestAppServer::builder()
.with_codex_home(&codex_home)
@@ -158,7 +158,7 @@ async fn turn_steer_rejects_oversized_text_input() -> Result<()> {
&server.uri(),
&server.uri(),
)?;
mount_chatgpt_account(&server, &codex_home).await?;
write_api_key_auth(&codex_home)?;
let mut mcp = TestAppServer::builder()
.with_codex_home(&codex_home)
@@ -275,7 +275,7 @@ async fn turn_steer_returns_active_turn_id(tool_outputs: bool) -> Result<()> {
&server.uri(),
&server.uri(),
)?;
mount_chatgpt_account(&server, &codex_home).await?;
write_api_key_auth(&codex_home)?;
let mut mcp = TestAppServer::builder()
.with_codex_home(&codex_home)
@@ -446,7 +446,7 @@ async fn turn_steer_rejects_context_only_input_without_merging_context() -> Resu
&server.uri(),
&server.uri(),
)?;
mount_chatgpt_account(&server, &codex_home).await?;
write_api_key_auth(&codex_home)?;
let mut mcp = TestAppServer::builder()
.with_codex_home(&codex_home)