Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent: Make new from summary less prominent (#60145)

Bennet Bo Fenner5329bd81d24c
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs
index 209a2e0fe0b..6d608958e65 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<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(
diff --git a/crates/agent_ui/src/conversation_view/thread_view.rs b/crates/agent_ui/src/conversation_view/thread_view.rs
index f43dfdaa347..b81340e7cc5 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()