assistant2: Add tool lists for each context server (#27029)

This PR updates the list of context servers with the ability to view the
tools provided by the context server:

<img width="1394" alt="Screenshot 2025-03-18 at 5 53 05 PM"
src="https://github.com/user-attachments/assets/4ffe93dd-f9e9-44e7-877f-656ebf45a326"
/>

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-18 18:04:47 -04:00 committed by GitHub
parent 985ac4e5f2
commit a2ae6a1c77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 81 additions and 13 deletions

View file

@ -416,10 +416,12 @@ impl AssistantPanel {
pub(crate) fn open_configuration(&mut self, window: &mut Window, cx: &mut Context<Self>) {
let context_server_manager = self.thread_store.read(cx).context_server_manager();
let tools = self.thread_store.read(cx).tools();
self.active_view = ActiveView::Configuration;
self.configuration =
Some(cx.new(|cx| AssistantConfiguration::new(context_server_manager, window, cx)));
self.configuration = Some(
cx.new(|cx| AssistantConfiguration::new(context_server_manager, tools, window, cx)),
);
if let Some(configuration) = self.configuration.as_ref() {
self.configuration_subscription = Some(cx.subscribe_in(