From 06704846e14fafe6c8a436401432144e6d8cf8d7 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 2cc1466e8a1ff197077603aa03ed041f095ec389..d8955fb40bf6aed3b0c73ce2491919bcb1826981 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; }