From ad4baba3064bba4b60f475b60352cac16f3dac4a Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner Date: Tue, 30 Jun 2026 12:00:46 +0200 Subject: [PATCH] agent: Make new from summary less prominent (#60145) Now that we have `/compact` we want to make the "new from summary" option less prominent. You can still manually handoff to a new thread by @mentioning the thread in a new one (`@thread threadname`) Release Notes: - agent: Remove "New from summary" menu item from agent panel dropdown. You can still @mention the thread in a new one, or run /compact Co-authored-by: gaauwe --- crates/agent_ui/src/agent_panel.rs | 30 ------------------- .../src/conversation_view/thread_view.rs | 2 +- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index 209a2e0fe0..6d608958e6 100644 --- a/crates/agent_ui/src/agent_panel.rs +++ b/crates/agent_ui/src/agent_panel.rs @@ -5900,13 +5900,6 @@ impl AgentPanel { (None, self.selected_agent.label()) }; - let active_thread = match &self.base_view { - BaseView::AgentThread { conversation_view } => { - conversation_view.read(cx).as_native_thread(cx) - } - BaseView::Terminal { .. } | BaseView::Uninitialized => None, - }; - let new_thread_menu_builder: Rc< dyn Fn(&mut Window, &mut App) -> Option>, > = { @@ -5924,31 +5917,8 @@ impl AgentPanel { let agent_server_store = agent_server_store; Rc::new(move |window, cx| { - let active_thread = active_thread.clone(); Some(ContextMenu::build(window, cx, |menu, _window, cx| { menu.context(focus_handle.clone()) - .when_some(active_thread, |this, active_thread| { - let thread = active_thread.read(cx); - - if !thread.is_empty() { - let session_id = thread.id().clone(); - this.item( - ContextMenuEntry::new("New From Summary") - .icon(IconName::ThreadFromSummary) - .icon_color(Color::Muted) - .handler(move |window, cx| { - window.dispatch_action( - Box::new(NewNativeAgentThreadFromSummary { - from_session_id: session_id.clone(), - }), - cx, - ); - }), - ) - } else { - this - } - }) .item( ContextMenuEntry::new("Zed Agent") .when( diff --git a/crates/agent_ui/src/conversation_view/thread_view.rs b/crates/agent_ui/src/conversation_view/thread_view.rs index f43dfdaa34..b81340e7cc 100644 --- a/crates/agent_ui/src/conversation_view/thread_view.rs +++ b/crates/agent_ui/src/conversation_view/thread_view.rs @@ -10921,7 +10921,7 @@ impl ThreadView { ), }; - let description = "To continue, start a new thread from a summary."; + let description = "To continue, run /compact or start a new thread and @-mention this one"; Some( Callout::new()