From afb745fd3924441b2f865e38fd4b3373e538b9eb Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Wed, 25 Feb 2026 10:52:06 -0600 Subject: [PATCH 1/3] add plugin loader log --- src/Infrastructure/BotSharp.Core/Plugins/PluginLoader.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Infrastructure/BotSharp.Core/Plugins/PluginLoader.cs b/src/Infrastructure/BotSharp.Core/Plugins/PluginLoader.cs index 05dc9b81a..3dfcf9964 100644 --- a/src/Infrastructure/BotSharp.Core/Plugins/PluginLoader.cs +++ b/src/Infrastructure/BotSharp.Core/Plugins/PluginLoader.cs @@ -28,10 +28,15 @@ public void Load(Action loaded, string? plugin = null) } var assemblyPath = Path.Combine(_executingDir, assemblyName + ".dll"); + + Console.WriteLine($"Loading assemble {assemblyPath}."); + if (File.Exists(assemblyPath)) { var assembly = Assembly.Load(assemblyName); + Console.WriteLine($"Loaded assemble {assemblyName}."); + var modules = assembly.GetTypes() .Where(x => x.GetInterface(nameof(IBotSharpPlugin)) != null) .Select(x => Activator.CreateInstance(x) as IBotSharpPlugin) From 2873082bd25fccdb402ab69b1558847ff1d7c36a Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Wed, 25 Feb 2026 10:57:10 -0600 Subject: [PATCH 2/3] revert --- src/Infrastructure/BotSharp.Core/Plugins/PluginLoader.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/Plugins/PluginLoader.cs b/src/Infrastructure/BotSharp.Core/Plugins/PluginLoader.cs index 3dfcf9964..05dc9b81a 100644 --- a/src/Infrastructure/BotSharp.Core/Plugins/PluginLoader.cs +++ b/src/Infrastructure/BotSharp.Core/Plugins/PluginLoader.cs @@ -28,15 +28,10 @@ public void Load(Action loaded, string? plugin = null) } var assemblyPath = Path.Combine(_executingDir, assemblyName + ".dll"); - - Console.WriteLine($"Loading assemble {assemblyPath}."); - if (File.Exists(assemblyPath)) { var assembly = Assembly.Load(assemblyName); - Console.WriteLine($"Loaded assemble {assemblyName}."); - var modules = assembly.GetTypes() .Where(x => x.GetInterface(nameof(IBotSharpPlugin)) != null) .Select(x => Activator.CreateInstance(x) as IBotSharpPlugin) From 0a4767132ec6891be07289f11d4ad837b16f4709 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Fri, 27 Feb 2026 09:54:29 -0600 Subject: [PATCH 3/3] Temp revert deleting conv file doc --- .../Repository/MongoRepository.Conversation.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Conversation.cs b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Conversation.cs index f8ae23c36..c12944d95 100644 --- a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Conversation.cs +++ b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Conversation.cs @@ -75,7 +75,7 @@ public async Task DeleteConversations(IEnumerable conversationIds) var filterContentLog = Builders.Filter.In(x => x.ConversationId, conversationIds); var filterStateLog = Builders.Filter.In(x => x.ConversationId, conversationIds); var conbTabItems = Builders.Filter.In(x => x.ConversationId, conversationIds); - var filterConvFile = Builders.Filter.In(x => x.ConversationId, conversationIds); + //var filterConvFile = Builders.Filter.In(x => x.ConversationId, conversationIds); var promptLogDeleted = await _dc.LlmCompletionLogs.DeleteManyAsync(filterPromptLog); var contentLogDeleted = await _dc.ContentLogs.DeleteManyAsync(filterContentLog); @@ -83,12 +83,12 @@ public async Task DeleteConversations(IEnumerable conversationIds) var statesDeleted = await _dc.ConversationStates.DeleteManyAsync(filterSates); var dialogDeleted = await _dc.ConversationDialogs.DeleteManyAsync(filterDialog); var cronDeleted = await _dc.CrontabItems.DeleteManyAsync(conbTabItems); - var fileDeleted = await _dc.ConversationFiles.DeleteManyAsync(filterConvFile); + //var fileDeleted = await _dc.ConversationFiles.DeleteManyAsync(filterConvFile); var convDeleted = await _dc.Conversations.DeleteManyAsync(filterConv); return convDeleted.DeletedCount > 0 || dialogDeleted.DeletedCount > 0 || statesDeleted.DeletedCount > 0 || promptLogDeleted.DeletedCount > 0 || contentLogDeleted.DeletedCount > 0 - || stateLogDeleted.DeletedCount > 0 || fileDeleted.DeletedCount > 0 + || stateLogDeleted.DeletedCount > 0 || convDeleted.DeletedCount > 0; }