Lightweight coding agent that runs in your terminal
Rust
[codex] fetch featured IDs for remote plugins (#29485)
Eric Ningbf7148626b36
diff --git a/codex-rs/app-server/src/request_processors/plugins.rs b/codex-rs/app-server/src/request_processors/plugins.rsindex 1e4716a88d..3913ded3a9 100644--- a/codex-rs/app-server/src/request_processors/plugins.rs+++ b/codex-rs/app-server/src/request_processors/plugins.rs@@ -745,11 +745,10 @@ impl PluginRequestProcessor {);}- let featured_plugin_ids = if !plugins_input.remote_plugin_enabled- && data- .iter()- .any(|marketplace| marketplace.name == OPENAI_CURATED_MARKETPLACE_NAME)- {+ let featured_plugin_ids = if data.iter().any(|marketplace| {+ marketplace.name == OPENAI_CURATED_MARKETPLACE_NAME+ || marketplace.name == REMOTE_GLOBAL_MARKETPLACE_NAME+ }) {match plugins_manager.featured_plugin_ids_for_config(&plugins_input, auth.as_ref()).awaitdiff --git a/codex-rs/app-server/tests/suite/v2/plugin_list.rs b/codex-rs/app-server/tests/suite/v2/plugin_list.rsindex 62a17278f2..bcfd85f191 100644--- a/codex-rs/app-server/tests/suite/v2/plugin_list.rs+++ b/codex-rs/app-server/tests/suite/v2/plugin_list.rs@@ -1761,6 +1761,14 @@ async fn plugin_list_includes_remote_marketplaces_when_remote_plugin_enabled() -.respond_with(ResponseTemplate::new(200).set_body_string(empty_page_body)).mount(&server).await;+ Mock::given(method("GET"))+ .and(path("/backend-api/plugins/featured"))+ .and(query_param("platform", "codex"))+ .respond_with(+ ResponseTemplate::new(200).set_body_string(r#"["linear@openai-curated-remote"]"#),+ )+ .mount(&server)+ .await;let mut mcp = TestAppServer::new(codex_home.path()).await?;timeout(DEFAULT_TIMEOUT, mcp.initialize()).await??;@@ -1854,7 +1862,10 @@ async fn plugin_list_includes_remote_marketplaces_when_remote_plugin_enabled() -cached_plugin_ids,vec!["plugins~Plugin_00000000000000000000000000000000".to_string()]);- assert_eq!(response.featured_plugin_ids, Vec::<String>::new());+ assert_eq!(+ response.featured_plugin_ids,+ vec!["linear@openai-curated-remote".to_string()]+ );assert!(!server.received_requests()