From 906993cbc5e59af12969c4b9b2cc202799495e6a Mon Sep 17 00:00:00 2001 From: CakeRepository Date: Sun, 27 Apr 2025 20:54:07 -0500 Subject: [PATCH] Fixed confusing local chat history This was an error that was caused mainly to reduce reduce human readability to not use a class that is used by another lib --- FlowVision/Form1.cs | 6 +++--- FlowVision/lib/Classes/ai/Actioner.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FlowVision/Form1.cs b/FlowVision/Form1.cs index ffff644..8a12945 100644 --- a/FlowVision/Form1.cs +++ b/FlowVision/Form1.cs @@ -17,7 +17,7 @@ public partial class Form1 : Form private FlowLayoutPanel messagesPanel; private RichTextBox userInputTextBox; private Button sendButton; - private List chatHistory = new List(); + private List chatHistory = new List(); // Add a delegate for handling plugin output messages public delegate void PluginOutputHandler(string message); @@ -246,7 +246,7 @@ public void AddMessage(string author, string message, bool isInbound) } // Create a new chat message and add to history - var chatMessage = new ChatMessage + var chatMessage = new LocalChatMessage { Author = author, Content = message, @@ -502,7 +502,7 @@ private void newChatToolStripMenuItem_Click(object sender, EventArgs e) } } - public class ChatMessage + public class LocalChatMessage { public string Author { get; set; } public string Content { get; set; } diff --git a/FlowVision/lib/Classes/ai/Actioner.cs b/FlowVision/lib/Classes/ai/Actioner.cs index ae64ae4..c2d2f92 100644 --- a/FlowVision/lib/Classes/ai/Actioner.cs +++ b/FlowVision/lib/Classes/ai/Actioner.cs @@ -171,7 +171,7 @@ public async Task ExecuteAction(string actionPrompt) } } - internal void SetChatHistory(List chatHistory) + internal void SetChatHistory(List chatHistory) { actionerHistory.Clear(); foreach (var message in chatHistory)