handled the visibility of dynamic assistants and the assistant builder

This commit is contained in:
Nils Kruthoff 2026-08-10 19:36:05 +02:00
parent 860108409f
commit 5c275c9cee
No known key found for this signature in database
GPG Key ID: A5C0151B4DDB172C

View File

@ -41,6 +41,12 @@ public static class AssistantVisibilityExtensions
return true;
}
// Dynamic assistants are controlled through plugin activation and their security state.
// The Assistant Builder is controlled through its preview feature. Neither belongs to the
// built-in assistant visibility list, so both are expected to be visible at this point.
if (component is Components.DYNAMIC_ASSISTANT or Components.META_ASSISTANT)
return true;
// Map Components enum to ConfigurableAssistant enum:
var configurableAssistant = component switch
{