Used managed spell checking settings for dynamic assistants (#838)
Some checks are pending
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions

This commit is contained in:
nilskruthoff 2026-07-06 19:45:21 +02:00 committed by GitHub
parent 15d576e51a
commit 423330f1b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,7 @@ else
var autoGrow = !textArea.IsSingleLine; var autoGrow = !textArea.IsSingleLine;
<MudTextField T="string" <MudTextField T="string"
UserAttributes="@SPELLCHECK_ATTRIBUTES"
Text="@this.assistantState.Text[textArea.Name]" Text="@this.assistantState.Text[textArea.Name]"
TextChanged="@(value => this.assistantState.Text[textArea.Name] = value)" TextChanged="@(value => this.assistantState.Text[textArea.Name] = value)"
Label="@textArea.Label" Label="@textArea.Label"

View File

@ -50,6 +50,7 @@ public partial class AssistantDynamic : AssistantBaseCore<NoSettingsPanel>
private string securityMessage = string.Empty; private string securityMessage = string.Empty;
private bool isSecurityBlocked; private bool isSecurityBlocked;
private const string ASSISTANT_QUERY_KEY = "assistantId"; private const string ASSISTANT_QUERY_KEY = "assistantId";
private static readonly Dictionary<string, object?> SPELLCHECK_ATTRIBUTES = new();
private static readonly AssistantSessionStateKey<string> TITLE_STATE_KEY = new(nameof(title)); private static readonly AssistantSessionStateKey<string> TITLE_STATE_KEY = new(nameof(title));
private static readonly AssistantSessionStateKey<string> DESCRIPTION_STATE_KEY = new(nameof(description)); private static readonly AssistantSessionStateKey<string> DESCRIPTION_STATE_KEY = new(nameof(description));
private static readonly AssistantSessionStateKey<string> SYSTEM_PROMPT_STATE_KEY = new(nameof(systemPrompt)); private static readonly AssistantSessionStateKey<string> SYSTEM_PROMPT_STATE_KEY = new(nameof(systemPrompt));
@ -110,6 +111,9 @@ public partial class AssistantDynamic : AssistantBaseCore<NoSettingsPanel>
protected override void OnInitialized() protected override void OnInitialized()
{ {
// Configure the spellchecking for the instance name input:
this.SettingsManager.InjectSpellchecking(SPELLCHECK_ATTRIBUTES);
var pluginAssistant = this.ResolveAssistantPlugin(); var pluginAssistant = this.ResolveAssistantPlugin();
if (pluginAssistant is null) if (pluginAssistant is null)
{ {