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

@@ -10,7 +10,6 @@ use codex_core::TurnInputRequest;
use codex_core::TurnStartOptions;
use codex_core::X_CODEX_ROUTING_HINT_HEADER;
use codex_features::Feature;
use codex_login::CodexAuth;
use codex_protocol::ThreadId;
use codex_protocol::config_types::ServiceTier;
use codex_protocol::dynamic_tools::DynamicToolFunctionSpec;
@@ -97,7 +96,7 @@ async fn spawned_agent_prewarm_handshake_inherits_effective_root_service_tier(
};
let test = test_codex()
.with_model("gpt-5.4")
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_catalog_discovery_api_key()
.with_model_info_override("gpt-5.4", move |model| {
model.service_tiers.push(ModelServiceTier {
id: tier.to_string(),
@@ -285,7 +284,7 @@ async fn detached_host_child_inherits_root_service_tier_at_prewarm_and_each_step
.await;
let test = test_codex()
.with_model("gpt-5.4")
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_catalog_discovery_api_key()
.with_model_info_override("gpt-5.4", |model| {
model.service_tiers.push(ModelServiceTier {
id: "priority".into(),
@@ -874,7 +873,7 @@ async fn websocket_v2_first_turn_sends_full_create_when_tier_changes_after_start
})
.collect();
})
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_catalog_discovery_api_key()
.with_config(move |config| {
for feature in [Feature::ResponsesWebsocketsV2, Feature::FastMode] {
config