codex: remove remote installed fetch wrapper

This commit is contained in:
xli-oai
2026-05-16 04:11:33 -07:00
parent 61bb922b0d
commit ed7215b552
3 changed files with 1 additions and 41 deletions

View File

@@ -640,7 +640,7 @@ impl PluginsManager {
if scopes.is_empty() {
return Ok(Vec::new());
}
let plugins = crate::remote::fetch_remote_installed_plugins_for_scopes(
let plugins = crate::remote::fetch_remote_installed_plugins(
&remote_plugin_service_config(config),
auth,
scopes,

View File

@@ -334,38 +334,6 @@ approval_mode = "approve"
);
}
#[tokio::test]
async fn remote_installed_cache_ignores_global_plugins_without_remote_plugin_flag() {
let codex_home = TempDir::new().unwrap();
let plugin_base = codex_home
.path()
.join("plugins/cache/chatgpt-global/linear");
write_plugin(&plugin_base, "local", "linear");
write_file(
&codex_home.path().join(CONFIG_TOML_FILE),
r#"[features]
plugins = true
"#,
);
let config = load_config(codex_home.path(), codex_home.path()).await;
let manager = PluginsManager::new(codex_home.path().to_path_buf());
manager.write_remote_installed_plugins_cache(vec![RemoteInstalledPlugin {
marketplace_name: "chatgpt-global".to_string(),
id: "plugins~Plugin_linear".to_string(),
name: "linear".to_string(),
enabled: true,
install_policy: codex_app_server_protocol::PluginInstallPolicy::Available,
auth_policy: codex_app_server_protocol::PluginAuthPolicy::OnUse,
availability: codex_app_server_protocol::PluginAvailability::Available,
interface: None,
keywords: Vec::new(),
}]);
let outcome = manager.plugins_for_config(&config).await;
assert_eq!(outcome, PluginLoadOutcome::default());
}
#[tokio::test]
async fn remote_installed_cache_ignores_plugins_missing_local_cache() {
let codex_home = TempDir::new().unwrap();

View File

@@ -655,14 +655,6 @@ pub(crate) async fn fetch_remote_installed_plugins(
config: &RemotePluginServiceConfig,
auth: Option<&CodexAuth>,
scopes: &[RemotePluginScope],
) -> Result<Vec<RemoteInstalledPlugin>, RemotePluginCatalogError> {
fetch_remote_installed_plugins_for_scopes(config, auth, scopes).await
}
pub(crate) async fn fetch_remote_installed_plugins_for_scopes(
config: &RemotePluginServiceConfig,
auth: Option<&CodexAuth>,
scopes: &[RemotePluginScope],
) -> Result<Vec<RemoteInstalledPlugin>, RemotePluginCatalogError> {
if scopes.is_empty() {
return Ok(Vec::new());