Lightweight coding agent that runs in your terminal
Rust
Remove filter from plugins/list result (#15580)
canvrno-oaic850607129d1
diff --git a/codex-rs/core/src/agent/control_tests.rs b/codex-rs/core/src/agent/control_tests.rsindex 2da9db3985..e25a58d784 100644--- a/codex-rs/core/src/agent/control_tests.rs+++ b/codex-rs/core/src/agent/control_tests.rs@@ -965,6 +965,7 @@ async fn spawn_child_completion_notifies_parent_history() {}#[tokio::test]+#[ignore = "flaky on: rust-ci / Tests — windows-arm64 - aarch64-pc-windows-msvc"]async fn multi_agent_v2_completion_sends_inter_agent_message_to_direct_parent() {let harness = AgentControlHarness::new().await;let (root_thread_id, _) = harness.start_thread().await;diff --git a/codex-rs/tui/src/chatwidget/plugins.rs b/codex-rs/tui/src/chatwidget/plugins.rsindex a9250672c5..7bf4516f49 100644--- a/codex-rs/tui/src/chatwidget/plugins.rs+++ b/codex-rs/tui/src/chatwidget/plugins.rs@@ -15,14 +15,12 @@ use codex_app_server_protocol::PluginMarketplaceEntry;use codex_app_server_protocol::PluginReadResponse;use codex_app_server_protocol::PluginSummary;use codex_app_server_protocol::PluginUninstallResponse;-use codex_core::plugins::OPENAI_CURATED_MARKETPLACE_NAME;use codex_features::Feature;use codex_utils_absolute_path::AbsolutePathBuf;use ratatui::style::Stylize;use ratatui::text::Line;const PLUGINS_SELECTION_VIEW_ID: &str = "plugins-selection";-const SUPPORTED_MARKETPLACE_NAME: &str = OPENAI_CURATED_MARKETPLACE_NAME;#[derive(Debug, Clone, Default)]pub(super) enum PluginsCacheState {@@ -625,11 +623,7 @@ impl ChatWidget {}fn plugins_popup_params(&self, response: &PluginListResponse) -> SelectionViewParams {- let marketplaces: Vec<&PluginMarketplaceEntry> = response- .marketplaces- .iter()- .filter(|marketplace| marketplace.name == SUPPORTED_MARKETPLACE_NAME)- .collect();+ let marketplaces: Vec<&PluginMarketplaceEntry> = response.marketplaces.iter().collect();let total: usize = marketplaces.iter()@@ -644,7 +638,7 @@ impl ChatWidget {let mut header = ColumnRenderable::new();header.push(Line::from("Plugins".bold()));header.push(Line::from(- "Browse plugins from the ChatGPT marketplace.".dim(),+ "Browse plugins from available marketplaces.".dim(),));header.push(Line::from(format!("Installed {installed} of {total} available plugins.").dim(),@@ -697,9 +691,9 @@ impl ChatWidget {if items.is_empty() {items.push(SelectionItem {- name: "No ChatGPT marketplace plugins available".to_string(),+ name: "No marketplace plugins available".to_string(),description: Some(- "This first pass only surfaces the ChatGPT plugin marketplace.".to_string(),+ "No plugins are available in the discovered marketplaces.".to_string(),),is_disabled: true,..Default::default()diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__plugins_popup_curated_marketplace.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__plugins_popup_curated_marketplace.snapindex 54132d3bf5..b85c223632 100644--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__plugins_popup_curated_marketplace.snap+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__plugins_popup_curated_marketplace.snap@@ -1,17 +1,20 @@---source: tui/src/chatwidget/tests.rs+assertion_line: 7289expression: popup---Plugins- Browse plugins from the ChatGPT marketplace.- Installed 1 of 3 available plugins.+ Browse plugins from available marketplaces.+ Installed 1 of 4 available plugins.Using cached marketplace data: remote sync timed outType to search plugins-› Bravo Search · ChatGPT Marketplace Can be installed. Press Enter to view plugin details.- Alpha Sync · ChatGPT Marketplace Installed · Disabled · ChatGPT Marketplace · Already- installed but disabled.- Starter · ChatGPT Marketplace Available by default · ChatGPT Marketplace · Included by- default.+› Bravo Search · ChatGPT Marketplace Can be installed. Press Enter to view plugin details.+ Alpha Sync · ChatGPT Marketplace Installed · Disabled · ChatGPT Marketplace · Already+ installed but disabled.+ Starter · ChatGPT Marketplace Available by default · ChatGPT Marketplace · Included by+ default.+ Hidden Repo Plugin · Repo Marketplace Can be installed · Repo Marketplace · Should not be shown+ in /plugins.Press esc to close.diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__plugins_popup_search_filtered.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__plugins_popup_search_filtered.snapindex b46cdb825b..65a4c6b034 100644--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__plugins_popup_search_filtered.snap+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__plugins_popup_search_filtered.snap@@ -1,9 +1,10 @@---source: tui/src/chatwidget/tests.rs+assertion_line: 7527expression: popup---Plugins- Browse plugins from the ChatGPT marketplace.+ Browse plugins from available marketplaces.Installed 0 of 3 available plugins.sladiff --git a/codex-rs/tui/src/chatwidget/tests.rs b/codex-rs/tui/src/chatwidget/tests.rsindex 2300421966..a31b4d6862 100644--- a/codex-rs/tui/src/chatwidget/tests.rs+++ b/codex-rs/tui/src/chatwidget/tests.rs@@ -7239,7 +7239,7 @@ async fn plugins_popup_loading_state_snapshot() {}#[tokio::test]-async fn plugins_popup_snapshot_filters_to_curated_marketplace_and_preserves_response_order() {+async fn plugins_popup_snapshot_shows_all_marketplaces_and_preserves_response_order() {let (mut chat, _rx, _op_rx) = make_chatwidget_manual(None).await;chat.set_feature_enabled(Feature::Plugins, true);@@ -7288,14 +7288,16 @@ async fn plugins_popup_snapshot_filters_to_curated_marketplace_and_preserves_reslet popup = render_loaded_plugins_popup(&mut chat, response);assert_snapshot!("plugins_popup_curated_marketplace", popup);assert!(- !popup.contains("Hidden Repo Plugin"),- "expected /plugins to hide non-ChatGPT marketplaces, got:\n{popup}"+ popup.contains("Hidden Repo Plugin"),+ "expected /plugins to include non-curated marketplaces, got:\n{popup}");assert!(plugins_test_popup_row_position(&popup, "Bravo Search")< plugins_test_popup_row_position(&popup, "Alpha Sync")&& plugins_test_popup_row_position(&popup, "Alpha Sync")- < plugins_test_popup_row_position(&popup, "Starter"),+ < plugins_test_popup_row_position(&popup, "Starter")+ && plugins_test_popup_row_position(&popup, "Starter")+ < plugins_test_popup_row_position(&popup, "Hidden Repo Plugin"),"expected /plugins rows to keep response order, got:\n{popup}");}diff --git a/codex-rs/tui_app_server/src/chatwidget/plugins.rs b/codex-rs/tui_app_server/src/chatwidget/plugins.rsindex a9250672c5..7bf4516f49 100644--- a/codex-rs/tui_app_server/src/chatwidget/plugins.rs+++ b/codex-rs/tui_app_server/src/chatwidget/plugins.rs@@ -15,14 +15,12 @@ use codex_app_server_protocol::PluginMarketplaceEntry;use codex_app_server_protocol::PluginReadResponse;use codex_app_server_protocol::PluginSummary;use codex_app_server_protocol::PluginUninstallResponse;-use codex_core::plugins::OPENAI_CURATED_MARKETPLACE_NAME;use codex_features::Feature;use codex_utils_absolute_path::AbsolutePathBuf;use ratatui::style::Stylize;use ratatui::text::Line;const PLUGINS_SELECTION_VIEW_ID: &str = "plugins-selection";-const SUPPORTED_MARKETPLACE_NAME: &str = OPENAI_CURATED_MARKETPLACE_NAME;#[derive(Debug, Clone, Default)]pub(super) enum PluginsCacheState {@@ -625,11 +623,7 @@ impl ChatWidget {}fn plugins_popup_params(&self, response: &PluginListResponse) -> SelectionViewParams {- let marketplaces: Vec<&PluginMarketplaceEntry> = response- .marketplaces- .iter()- .filter(|marketplace| marketplace.name == SUPPORTED_MARKETPLACE_NAME)- .collect();+ let marketplaces: Vec<&PluginMarketplaceEntry> = response.marketplaces.iter().collect();let total: usize = marketplaces.iter()@@ -644,7 +638,7 @@ impl ChatWidget {let mut header = ColumnRenderable::new();header.push(Line::from("Plugins".bold()));header.push(Line::from(- "Browse plugins from the ChatGPT marketplace.".dim(),+ "Browse plugins from available marketplaces.".dim(),));header.push(Line::from(format!("Installed {installed} of {total} available plugins.").dim(),@@ -697,9 +691,9 @@ impl ChatWidget {if items.is_empty() {items.push(SelectionItem {- name: "No ChatGPT marketplace plugins available".to_string(),+ name: "No marketplace plugins available".to_string(),description: Some(- "This first pass only surfaces the ChatGPT plugin marketplace.".to_string(),+ "No plugins are available in the discovered marketplaces.".to_string(),),is_disabled: true,..Default::default()diff --git a/codex-rs/tui_app_server/src/chatwidget/snapshots/codex_tui_app_server__chatwidget__tests__plugins_popup_curated_marketplace.snap b/codex-rs/tui_app_server/src/chatwidget/snapshots/codex_tui_app_server__chatwidget__tests__plugins_popup_curated_marketplace.snapindex a5f073bc2c..c191f219c1 100644--- a/codex-rs/tui_app_server/src/chatwidget/snapshots/codex_tui_app_server__chatwidget__tests__plugins_popup_curated_marketplace.snap+++ b/codex-rs/tui_app_server/src/chatwidget/snapshots/codex_tui_app_server__chatwidget__tests__plugins_popup_curated_marketplace.snap@@ -3,15 +3,17 @@ source: tui_app_server/src/chatwidget/tests.rsexpression: popup---Plugins- Browse plugins from the ChatGPT marketplace.- Installed 1 of 3 available plugins.+ Browse plugins from available marketplaces.+ Installed 1 of 4 available plugins.Using cached marketplace data: remote sync timed outType to search plugins-› Bravo Search · ChatGPT Marketplace Can be installed. Press Enter to view plugin details.- Alpha Sync · ChatGPT Marketplace Installed · Disabled · ChatGPT Marketplace · Already- installed but disabled.- Starter · ChatGPT Marketplace Available by default · ChatGPT Marketplace · Included by- default.+› Bravo Search · ChatGPT Marketplace Can be installed. Press Enter to view plugin details.+ Alpha Sync · ChatGPT Marketplace Installed · Disabled · ChatGPT Marketplace · Already+ installed but disabled.+ Starter · ChatGPT Marketplace Available by default · ChatGPT Marketplace · Included by+ default.+ Hidden Repo Plugin · Repo Marketplace Can be installed · Repo Marketplace · Should not be shown+ in /plugins.Press esc to close.diff --git a/codex-rs/tui_app_server/src/chatwidget/snapshots/codex_tui_app_server__chatwidget__tests__plugins_popup_search_filtered.snap b/codex-rs/tui_app_server/src/chatwidget/snapshots/codex_tui_app_server__chatwidget__tests__plugins_popup_search_filtered.snapindex b12a33e638..849db2c28a 100644--- a/codex-rs/tui_app_server/src/chatwidget/snapshots/codex_tui_app_server__chatwidget__tests__plugins_popup_search_filtered.snap+++ b/codex-rs/tui_app_server/src/chatwidget/snapshots/codex_tui_app_server__chatwidget__tests__plugins_popup_search_filtered.snap@@ -3,7 +3,7 @@ source: tui_app_server/src/chatwidget/tests.rsexpression: popup---Plugins- Browse plugins from the ChatGPT marketplace.+ Browse plugins from available marketplaces.Installed 0 of 3 available plugins.sladiff --git a/codex-rs/tui_app_server/src/chatwidget/tests.rs b/codex-rs/tui_app_server/src/chatwidget/tests.rsindex 611bf13adc..8a383f2102 100644--- a/codex-rs/tui_app_server/src/chatwidget/tests.rs+++ b/codex-rs/tui_app_server/src/chatwidget/tests.rs@@ -7836,7 +7836,7 @@ async fn plugins_popup_loading_state_snapshot() {}#[tokio::test]-async fn plugins_popup_snapshot_filters_to_curated_marketplace_and_preserves_response_order() {+async fn plugins_popup_snapshot_shows_all_marketplaces_and_preserves_response_order() {let (mut chat, _rx, _op_rx) = make_chatwidget_manual(None).await;chat.set_feature_enabled(Feature::Plugins, true);@@ -7885,14 +7885,16 @@ async fn plugins_popup_snapshot_filters_to_curated_marketplace_and_preserves_reslet popup = render_loaded_plugins_popup(&mut chat, response);assert_snapshot!("plugins_popup_curated_marketplace", popup);assert!(- !popup.contains("Hidden Repo Plugin"),- "expected /plugins to hide non-ChatGPT marketplaces, got:\n{popup}"+ popup.contains("Hidden Repo Plugin"),+ "expected /plugins to include non-curated marketplaces, got:\n{popup}");assert!(plugins_test_popup_row_position(&popup, "Bravo Search")< plugins_test_popup_row_position(&popup, "Alpha Sync")&& plugins_test_popup_row_position(&popup, "Alpha Sync")- < plugins_test_popup_row_position(&popup, "Starter"),+ < plugins_test_popup_row_position(&popup, "Starter")+ && plugins_test_popup_row_position(&popup, "Starter")+ < plugins_test_popup_row_position(&popup, "Hidden Repo Plugin"),"expected /plugins rows to keep response order, got:\n{popup}");}