Skip to content

Commit a5f696b

Browse files
authored
agent_ui: Remove duplicate MCP Servers menu item (#60712)
# Objective Fixes #60709 by removing the duplicate menu section for "MCP Servers". ## Solution Update `agent_ui::agent_panel::AgentPanel::render_panel_options_menu` to ensure the "MCP Servers" section is only rendered once, if not using a Terminal Thread. ## Testing Tested manually, comparing against the stable release, as this bug is present in Preview. Screenshot is shown in the "Showcase" section. ## Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [ ] Unsafe blocks (if any) have justifying comments - [ ] The content adheres to Zed's UI standards ([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) and [icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md) guidelines) - [ ] Tests cover the new/changed behavior - [ ] Performance impact has been considered and is acceptable ## Showcase <details> <summary>Before</summary> <img width="2736" height="1586" alt="CleanShot 2026-07-09 at 23 14 34@2x" src="https://github.com/user-attachments/assets/ce2014db-bd72-46fb-bfa1-247cd5471daf" /> </details> <details> <summary>After</summary> <img width="2736" height="1586" alt="CleanShot 2026-07-09 at 23 15 13@2x" src="https://github.com/user-attachments/assets/bbba9965-3f6a-4137-94e5-17704efd2cce" /> </details> --- Release Notes: - N/A
1 parent 2c4e447 commit a5f696b

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

crates/agent_ui/src/agent_panel.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5715,24 +5715,6 @@ impl AgentPanel {
57155715
}
57165716

57175717
menu = menu
5718-
.separator()
5719-
.header("MCP Servers")
5720-
.action(
5721-
"Add Server…",
5722-
Box::new(zed_actions::OpenSettingsAt {
5723-
path: "context_servers".to_string(),
5724-
target: None,
5725-
}),
5726-
)
5727-
.action(
5728-
"Install New Servers…",
5729-
Box::new(zed_actions::Extensions {
5730-
category_filter: Some(
5731-
zed_actions::ExtensionCategoryFilter::ContextServers,
5732-
),
5733-
id: None,
5734-
}),
5735-
)
57365718
.separator()
57375719
.action("Profiles", Box::new(ManageProfiles::default()));
57385720
}

0 commit comments

Comments
 (0)