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 <gaauwe@users.noreply.github.com>
This commit is contained in:
Bennet Bo Fenner 2026-06-30 12:00:46 +02:00 committed by GitHub
parent ae0f4462ae
commit 5329bd81d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 31 deletions

View file

@ -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<Entity<ContextMenu>>,
> = {
@ -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(

View file

@ -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()