From a3fd52a61d0fafb2a143fa6e2490fcfc62dbf307 Mon Sep 17 00:00:00 2001 From: jif Date: Mon, 23 Nov 2026 16:42:50 +0000 Subject: [PATCH] Remove the disabled-app mention popup test (#63392) GitOrigin-RevId: efb85449bb79f6bffe10813c4b36b7fd47add159 --- codex-rs/tui/src/bottom_pane/chat_composer.rs | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rs index f94a573113..8869397783 100644 --- a/codex-rs/tui/src/bottom_pane/chat_composer.rs +++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs @@ -8143,42 +8143,6 @@ mod tests { ); } - #[test] - fn set_connector_mentions_excludes_disabled_apps_from_mention_popup() { - let (tx, _rx) = unbounded_channel::(); - let sender = AppEventSender::new(tx); - let mut composer = ChatComposer::new( - /*has_input_focus*/ true, - sender, - /*enhanced_keys_supported*/ false, - "Ask Codex to do anything".to_string(), - /*disable_paste_burst*/ false, - ); - composer.set_connectors_enabled(/*enabled*/ true); - composer.set_text_content("$".to_string(), Vec::new(), Vec::new()); - - let connectors = vec![AppInfo { - id: "connector_1".to_string(), - name: "Notion".to_string(), - description: Some("Workspace docs".to_string()), - logo_url: None, - logo_url_dark: None, - icon_assets: None, - icon_dark_assets: None, - distribution_channel: None, - branding: None, - app_metadata: None, - labels: None, - install_url: Some("https://example.test/notion".to_string()), - is_accessible: true, - is_enabled: false, - plugin_display_names: Vec::new(), - }]; - composer.set_connector_mentions(Some(ConnectorsSnapshot { connectors })); - - assert!(matches!(composer.popups.active, ActivePopup::None)); - } - #[test] fn shortcut_overlay_persists_while_task_running() { use crossterm::event::KeyCode;