Check revised plugins too, and only with a trusted enough provider

This commit is contained in:
Thorsten Sommer committed 2026-09-19 19:52:18 +02:00
1 parent 8f9d289973
commit a6f8afaf84
2 files changed
+30 -6

No files matched your search

@@ -198,7 +198,12 @@ public partial class AssistantPluginRevisionDialog : MSGComponentBase
await this.InvokeAsync(this.StateHasChanged);
try
{
var audit = await this.AssistantPluginAuditService.RunAuditAsync(updatedPlugin);
//
// The provider the user picked for the revision serves as the fallback: it is used only
// when nothing is configured for the audit agent, and only when it is trusted enough for
// an audit. Without it, a revised plugin could not be checked at all here.
//
var audit = await this.AssistantPluginAuditService.RunAuditAsync(updatedPlugin, fallbackProvider: this.providerSettings);
if (audit.Level is AssistantAuditLevel.UNKNOWN)
return audit;