WIP fase 2b-3: rimozione sottosistemi solo-ChatGPT (plugin remoti, image gen, daybreak, cyber, attestation, cloud config, app/connettori) - test in corso

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 16:07:22 +01:00
parent 231e8cd136
commit 5afc7e9f7f
1223 changed files with 6225 additions and 113722 deletions

View File

@@ -16,7 +16,6 @@ use codex_core_api::AskForApproval;
use codex_core_api::AuthKeyringBackendKind;
use codex_core_api::AuthManager;
use codex_core_api::AutoCompactTokenLimitScope;
use codex_core_api::CodexAppsToolsCache;
use codex_core_api::CodexHomeUserInstructionsProvider;
use codex_core_api::CodexThread;
use codex_core_api::Config;
@@ -68,7 +67,6 @@ use codex_core_api::bootstrap_auth_config;
use codex_core_api::built_in_model_providers;
use codex_core_api::find_codex_home;
use codex_core_api::init_state_db;
use codex_core_api::install_image_generation_extension;
use codex_core_api::item_event_to_server_notification;
use codex_core_api::load_config_toml_with_layer_stack;
use codex_core_api::local_agent_graph_store_from_state_db;
@@ -142,10 +140,7 @@ async fn run_main(arg0_paths: Arg0DispatchPaths) -> anyhow::Result<()> {
let user_instructions_provider = Arc::new(CodexHomeUserInstructionsProvider::new(
config.codex_home.clone(),
));
let mut extensions = ExtensionRegistryBuilder::<Config>::new();
install_image_generation_extension(&mut extensions, auth_manager.clone(), |config: &Config| {
Some(config.codex_home.clone())
});
let extensions = ExtensionRegistryBuilder::<Config>::new();
let startup = codex_core_api::build_startup_models(
&config,
Arc::clone(&auth_manager),
@@ -155,7 +150,6 @@ async fn run_main(arg0_paths: Arg0DispatchPaths) -> anyhow::Result<()> {
let thread_manager = ThreadManager::new(
&config,
startup,
CodexAppsToolsCache::default(),
SessionSource::Exec,
environment_manager,
Arc::new(extensions.build()),
@@ -163,7 +157,6 @@ async fn run_main(arg0_paths: Arg0DispatchPaths) -> anyhow::Result<()> {
passthrough_image_store(),
Arc::clone(&thread_store),
local_agent_graph_store_from_state_db(state_db.as_ref()),
/*attestation_provider*/ None,
/*external_time_provider*/ None,
);
@@ -246,7 +239,6 @@ async fn new_config(
startup_warnings: Vec::new(),
bypass_hook_trust: false,
model,
daybreak_enabled: false,
service_tier: None,
review_model: None,
model_context_window: None,
@@ -286,7 +278,6 @@ async fn new_config(
include_collaboration_mode_instructions: false,
include_skill_instructions: false,
skill_max_context_tokens: None,
cloud_skill_enabled: false,
orchestrator_mcp_enabled: false,
include_environment_context: false,
include_environment_context_time: true,
@@ -327,7 +318,6 @@ async fn new_config(
workspace_roots_explicit: false,
cli_auth_credentials_store_mode: auth_config.auth_credentials_store_mode,
mcp_servers: Constrained::allow_any(HashMap::new()),
mcp_enterprise_managed_auth: None,
non_prefixed_mcp_tool_servers: None,
mcp_oauth_credentials_store_mode,
mcp_oauth_callback_port: None,