Files
imeai-aKode/codex-rs/app-server/src/effective_plugin_change.rs
andrea.difonzo 6089fbde91 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>
2026-11-10 16:20:15 +01:00

21 lines
714 B
Rust

use std::sync::Arc;
use codex_core::ThreadManager;
use codex_core_plugins::EffectivePluginsChange;
/// Refresh plugin consumers after the effective plugin set changes.
pub(crate) fn effective_plugins_changed_callback(
thread_manager: Arc<ThreadManager>,
) -> Arc<dyn Fn(EffectivePluginsChange) + Send + Sync> {
Arc::new(move |_change| {
thread_manager.plugins_manager().clear_cache();
thread_manager.skills_service().clear_cache();
let refresh_thread_manager = Arc::clone(&thread_manager);
tokio::spawn(async move {
refresh_thread_manager.invalidate_mcp_runtimes().await;
refresh_thread_manager.refresh_hook_runtimes().await;
});
})
}