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.

Potentially fix welcome banner in agent panel not going away (#37879)

Michael Sloanbd0a5dd66496
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs
index a35ed6be42a..3cba74aeaee 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::<GeminiAndNativeFeatureFlag>() {
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())