assistant2: Rework enabled tool representation (#27527)

This PR reworks how we store enabled tools in the `ToolWorkingSet`.

We now track them based on which tools are explicitly enabled, rather
than by the tools that have been disabled.

Also fixed an issue where switching profiles wouldn't properly set the
right tools.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-26 16:26:26 -04:00 committed by GitHub
parent 435a36b9f9
commit 848a99c605
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 53 additions and 70 deletions

View file

@ -78,7 +78,7 @@ impl ProfileSelector {
thread_store
.update(cx, |this, cx| {
this.load_default_profile(cx);
this.load_profile_by_id(&profile_id, cx);
})
.log_err();
}