From bd0a5dd6649631d6fa346e49427cc7a70c3c15c6 Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Tue, 9 Sep 2025 15:13:12 -0600 Subject: [PATCH] Potentially fix welcome banner in agent panel not going away (#37879) Potentially fixes #37367. Just going ahead with the change even though it's unclear whether this is the fix, since it is quite low risk. Release Notes: - N/A --- crates/agent_ui/src/agent_panel.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index a35ed6be42aa0dbd4afb5c44d0a5209cdc9c0b69..3cba74aeaeecc8a9681550dc5557a95030c6deb0 100644 --- a/crates/agent_ui/src/agent_panel.rs +++ b/crates/agent_ui/src/agent_panel.rs @@ -3008,6 +3008,9 @@ impl AgentPanel { _ => { let history_is_empty = if cx.has_flag::() { self.acp_history_store.read(cx).is_empty(cx) + && self + .history_store + .update(cx, |store, cx| store.recent_entries(1, cx).is_empty()) } else { self.history_store .update(cx, |store, cx| store.recent_entries(1, cx).is_empty())