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

@@ -55,8 +55,6 @@ impl HistoryNotesBackend {
let setup = codex_model_provider::resolve_request(
self.provider.as_ref(),
/*scope*/ None,
/*routing*/ None,
self.http_client_factory.clone(),
)
.await

View File

@@ -40,6 +40,10 @@ struct HistoryNotesAgentIdentity {
agent_name: String,
}
/// History notes are served by a ChatGPT-only backend route, which aKode never
/// authenticates to.
const HISTORY_NOTES_BACKEND_AVAILABLE: bool = false;
impl HistoryNotesExtension {
fn update_config(&self, thread_store: &ExtensionData, config: &Config) {
let auth = thread_store
@@ -47,7 +51,6 @@ impl HistoryNotesExtension {
.unwrap_or_else(|| {
Arc::new(codex_model_provider::ProviderAuthContext {
credentials: Arc::clone(&self.auth_manager),
runtime_auth: None,
})
});
if config
@@ -55,7 +58,7 @@ impl HistoryNotesExtension {
.as_ref()
.is_some_and(|token_budget| token_budget.use_history_notes_extension)
&& config.model_provider.is_openai()
&& auth.credentials.current_auth_uses_codex_backend()
&& HISTORY_NOTES_BACKEND_AVAILABLE
{
thread_store.insert(HistoryNotesExtensionConfig {
backend: HistoryNotesBackend::new(

View File

@@ -441,7 +441,7 @@ async fn history_notes_require_an_openai_provider_and_codex_backend_auth() -> Te
),
(
ModelProviderInfo::create_amazon_bedrock_provider(/*aws*/ None),
CodexAuth::create_dummy_chatgpt_auth_for_testing(),
CodexAuth::from_api_key("Test API Key"),
),
] {
config.model_provider = provider;