From 018f8c9701d43ba71758b6c8cb301672f2225260 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 19 Sep 2026 20:29:57 +0200 Subject: [PATCH] Let a failed security check be tried again --- .../Dialogs/AssistantPluginAuditDialog.razor.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor.cs b/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor.cs index f5b689ad..19f6b0ed 100644 --- a/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor.cs +++ b/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor.cs @@ -83,6 +83,16 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase private bool CanEnablePlugin => this.plugin is not null && !this.isAuditing && !this.IsActivationBlockedBySettings; private Color EnableButtonColor => this.RequiresActivationConfirmation ? Color.Warning : Color.Success; + + /// + /// Whether this dialog has produced an audit result, which is why it offers no second run. + /// + /// + /// Set only for a result worth keeping. An audit which ended in UNKNOWN answered nothing about + /// the plugin: the model was unreachable, the key was wrong, no provider was trusted enough. + /// Locking the button on that would leave the user in front of a plugin they cannot check and + /// cannot enable, with closing and reopening the dialog as the only way on. + /// private bool justAudited; private const ushort BYTES_PER_KILOBYTE = 1024; @@ -129,7 +139,7 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase finally { this.isAuditing = false; - this.justAudited = true; + this.justAudited = this.audit is { Level: not AssistantAuditLevel.UNKNOWN }; await this.InvokeAsync(this.StateHasChanged); } }