Fixed assistants doing nothing when started without a provider (#1110)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-25 20:44:23 +01:00
1 parent c7be04b727
commit 31c271eb7b
2 files changed
+23

No files matched your search

@@ -284,7 +284,10 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
{
await this.RefreshProviderSelectionFromConfigurationAsync();
if (this.ProviderSettings == Settings.Provider.NONE)
{
await this.ReportMissingProviderAsync();
return;
}
if (this.MediaTranscriptionService.IsBusy(this.CurrentMediaImportOwner))
return;
@@ -352,6 +355,25 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
}
}
/// <summary>
/// Tells the user that the assistant cannot start without a provider, together with whatever else is missing.
/// </summary>
/// <remarks>
/// Most assistants validate their form only in their submit action, which never runs without a
/// provider. Validating here marks the provider selection and lists the other issues as well.
/// The form does not report the missing provider when it holds no provider selection, as with an
/// assistant plugin without one, or when its selection still shows the provider which the refresh
/// at the start has just dropped. Then the issue is added on its own.
/// </remarks>
private async Task ReportMissingProviderAsync()
{
if (this.Form is not null)
await this.Form.Validate();
if (this.ValidatingProvider(this.ProviderSettings) is { } issue && !this.InputIssues.Contains(issue))
this.AddInputIssue(issue);
}
private void TriggerFormChange(FormFieldChangedEventArgs _)
{
this.formChangeTimer.Stop();
@@ -129,6 +129,7 @@
- Fixed chats failing with an error from the provider when an attached image could not be read. AI Studio now leaves out such an image and tells you why.
- Fixed photos taken with a phone appearing rotated in the Visual Briefing assistant when it optimizes images.
- Fixed AI Studio sometimes discarding the answer of the AI when it chose your data sources, checked the passages it found, or checked an assistant plugin for security issues, because the AI wrote its answer in a slightly different form than expected.
- Fixed assistants doing nothing at all when you started them without selecting a provider. They now ask you to select one, together with anything else that is still missing.
- Updated the code contributions on the supporters page, which now thank everyone who has contributed code to AI Studio so far.
- Upgraded several libraries to improve security.
- Upgraded to Rust v1.99.1