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.

agent_ui: Do not show token limit callout for external agents (#54090)

Bennet Bo Fennere585523c8d4b
diff --git a/crates/agent_ui/src/conversation_view/thread_view.rs b/crates/agent_ui/src/conversation_view/thread_view.rs
index 86f920c157a..1054b0dacdb 100644
--- a/crates/agent_ui/src/conversation_view/thread_view.rs
+++ b/crates/agent_ui/src/conversation_view/thread_view.rs
@@ -8760,7 +8760,7 @@ impl ThreadView {
}
fn render_token_limit_callout(&self, cx: &mut Context<Self>) -> Option<Callout> {
- if self.token_limit_callout_dismissed {
+ if self.token_limit_callout_dismissed || self.as_native_thread(cx).is_none() {
return None;
}