From e585523c8d4b71286b604a2f143eb1d812d9a12a Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner Date: Thu, 16 Apr 2026 18:35:39 +0200 Subject: [PATCH] agent_ui: Do not show token limit callout for external agents (#54090) Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - N/A --- crates/agent_ui/src/conversation_view/thread_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent_ui/src/conversation_view/thread_view.rs b/crates/agent_ui/src/conversation_view/thread_view.rs index 86f920c157a7ea0a5895f03342df73e0403b473f..1054b0dacdbcc604df828b870ce82f619f08058b 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) -> Option { - if self.token_limit_callout_dismissed { + if self.token_limit_callout_dismissed || self.as_native_thread(cx).is_none() { return None; }