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: Only show the trial upsell in the thread view (#30040)

Marshall Bowers6bb6e4817184
diff --git a/crates/agent/src/assistant_panel.rs b/crates/agent/src/assistant_panel.rs
index 0870f4ce295..30c678b33d8 100644
--- a/crates/agent/src/assistant_panel.rs
+++ b/crates/agent/src/assistant_panel.rs
@@ -1805,6 +1805,10 @@ impl AssistantPanel {
}
fn should_render_upsell(&self, cx: &mut Context<Self>) -> bool {
+ if !matches!(self.active_view, ActiveView::Thread { .. }) {
+ return false;
+ }
+
if self.hide_trial_upsell || dismissed_trial_upsell() {
return false;
}