Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Everywhere.Core/Configuration/Settings/PluginSettings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;
using CommunityToolkit.Mvvm.ComponentModel;
using Everywhere.Chat.Plugins;
using Everywhere.Collections;
Expand Down Expand Up @@ -76,6 +76,11 @@ public McpChatPluginEntity(McpChatPlugin mcpChatPlugin)
return null;
}

// Self-heal persisted Guid.Empty IDs; they cause KernelPluginCollection to throw
// a duplicate-key ArgumentException when two or more zero-ID plugins are loaded.
if (Id == Guid.Empty)
Id = Guid.CreateVersion7();

return new McpChatPlugin(Id, transportConfiguration);
}
}
Loading