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:
@@ -37,7 +37,6 @@ use codex_protocol::protocol::InterAgentCommunication;
|
||||
use codex_protocol::protocol::MultiAgentVersion;
|
||||
use codex_protocol::protocol::Op;
|
||||
use codex_protocol::protocol::ThreadSettingsOverrides;
|
||||
use codex_protocol::turn_input::CyberAccessProgram;
|
||||
use codex_protocol::user_input::UserInput;
|
||||
use core_test_support::context_snapshot;
|
||||
use core_test_support::context_snapshot::ContextSnapshotOptions;
|
||||
@@ -544,7 +543,7 @@ async fn queue_only_agent_mail_wakes_sleeping_root_with_previous_turn_context(
|
||||
extensions.thread_lifecycle_contributor(Arc::new(SleepingRootExtension));
|
||||
let mut builder = test_codex()
|
||||
.with_model("gpt-5.4")
|
||||
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
|
||||
.with_auth(CodexAuth::from_api_key("Test API Key"))
|
||||
.with_extensions(Arc::new(extensions.build()));
|
||||
let mut test = builder.build_with_auto_env(&server).await?;
|
||||
|
||||
@@ -569,7 +568,6 @@ async fn queue_only_agent_mail_wakes_sleeping_root_with_previous_turn_context(
|
||||
turn_trigger: trigger.map(str::to_owned),
|
||||
parent_turn_id: parent.map(str::to_owned),
|
||||
root_turn_id: parent.map(|_| "original-root".to_string()),
|
||||
cyber_access_program: Some(CyberAccessProgram::Standard),
|
||||
..Default::default()
|
||||
}),
|
||||
)
|
||||
@@ -620,18 +618,8 @@ async fn queue_only_agent_mail_wakes_sleeping_root_with_previous_turn_context(
|
||||
vec![(trigger, parent, Some(root)); 2],
|
||||
);
|
||||
assert_ne!(metadata[0]["turn_id"], metadata[1]["turn_id"]);
|
||||
// Live wake keeps the existing execution-setting behavior. Attribution after
|
||||
// reload must use the automatic turn, not the earlier human context baseline.
|
||||
if !reload {
|
||||
assert_eq!(
|
||||
captured
|
||||
.iter()
|
||||
.skip(1)
|
||||
.map(|request| request.body_json()["access_programs"].clone())
|
||||
.collect::<Vec<_>>(),
|
||||
vec![json!({"cyber": "standard"}); 2],
|
||||
);
|
||||
}
|
||||
// Attribution after reload must use the automatic turn, not the earlier human
|
||||
// context baseline.
|
||||
let history = test
|
||||
.codex
|
||||
.load_history(/*include_archived*/ true)
|
||||
@@ -2701,7 +2689,7 @@ async fn terminal_compaction_error_does_not_retry_pending_input(
|
||||
let base_url = format!("{}/v1", server.uri());
|
||||
let test = test_codex()
|
||||
.with_model("gpt-5.4")
|
||||
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
|
||||
.with_auth(CodexAuth::from_api_key("Test API Key"))
|
||||
.with_config(move |config| {
|
||||
config.model_provider.base_url = Some(base_url);
|
||||
config.model_auto_compact_token_limit = Some(100_000);
|
||||
|
||||
Reference in New Issue
Block a user