agent: Only focus on the context strip if it has items to display (#30379)

This commit is contained in:
Ben Brandt 2025-05-16 17:05:03 +02:00 committed by GitHub
parent f2dcc98216
commit 9dabf491f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 5 deletions

View file

@ -451,7 +451,7 @@ impl<T: 'static> PromptEditor<T> {
editor.move_to_end(&Default::default(), window, cx)
});
}
} else {
} else if self.context_strip.read(cx).has_context_items(cx) {
self.context_strip.focus_handle(cx).focus(window);
}
}