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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user