Renamed the settings of AI tasks (#1239)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-27 12:08:00 +01:00
1 parent d19d3d431b
commit a117074972
109 files changed
+3929 -538

No files matched your search

@@ -663,6 +663,15 @@ public partial class AssistantDynamic : AssistantBaseCore<NoSettingsPanel>
if (!prop.Key.TryRead<string>(out var propName) || string.IsNullOrWhiteSpace(propName))
continue;
// A plugin may still use a former name of a prop. The current name wins when the update holds both:
if (propSpec is not null)
{
if (!propSpec.TryGetCurrentName(propName, propsTable, out var currentName))
continue;
propName = currentName;
}
if (propSpec is not null && propSpec.NonWriteable.Contains(propName, StringComparer.Ordinal))
{
this.Logger.LogWarning($"Assistant {sourceType} callback tried to update non-writeable prop '{propName}' on component '{GetComponentName(component)}'. The value is ignored.");