From 6bb6e481718450efac34d515207f2e31730359af Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 6 May 2025 15:47:51 -0400 Subject: [PATCH] agent: Only show the trial upsell in the thread view (#30040) This PR makes it so we only show the trial upsell in the thread view. Fixes https://github.com/zed-industries/zed/issues/30037. Release Notes: - Agent Beta: Changed the trial upsell to only be visible in the thread view. --- crates/agent/src/assistant_panel.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/agent/src/assistant_panel.rs b/crates/agent/src/assistant_panel.rs index 0870f4ce29513b2624bac8de59e303c77ab0d49d..30c678b33d841ab93764c9037c66d71d44dacf1c 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) -> bool { + if !matches!(self.active_view, ActiveView::Thread { .. }) { + return false; + } + if self.hide_trial_upsell || dismissed_trial_upsell() { return false; }