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.
This commit is contained in:
Marshall Bowers
2025-05-06 19:47:51 +00:00
committed by GitHub
parent 91cfce09bc
commit 6bb6e48171
+4
View File
@@ -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;
}