retain chat history when saving to a new file name

This commit is contained in:
Bane Stojkovic
2025-04-14 22:31:56 +02:00
parent 6a0ee802eb
commit 11242dcb10
5 changed files with 40 additions and 3 deletions
@@ -64,7 +64,7 @@ public class ChatbotPane extends JPanel {
super();
this.swingUI = swingUI;
this.plugInPort = plugInPort;
this.chatbotService = new ChatbotService(plugInPort);
this.chatbotService = plugInPort.getChatbotService();
setName("AI Assistant");
// Set panel background color
@@ -58,8 +58,6 @@ public class ChatbotPlugin implements IPlugIn {
switch (eventType) {
case FILE_STATUS_CHANGED:
case PROJECT_LOADED:
getChatbotPane().refreshChat(null);
break;
case CLOUD_LOGGED_IN:
case CLOUD_LOGGED_OUT:
SubscriptionEntity subscriptionInfo = null;