diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AssistantChatDialog.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AssistantChatDialog.java index 160f3df55..5030d361f 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AssistantChatDialog.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AssistantChatDialog.java @@ -740,6 +740,8 @@ public class AssistantChatDialog extends javax.swing.JDialog { // cache incoming and outgoing messages private List messages = new ArrayList<>(); + + private String initialPrompt=""; /** * Creates new form GenericAssistantDialog @@ -813,6 +815,7 @@ public AssistantChatDialog(ArchiveFileBean selectedCase, AssistantConfig config, String promptWithValues = TemplatesUtil.replacePlaceHolders(c.getDefaultPrompt().getDefaultPrompt(), placeHolders); this.taPrompt.setText(promptWithValues); } + this.initialPrompt=this.taPrompt.getText(); this.taPrompt.setEnabled(true); } else { this.taPrompt.setEnabled(false); @@ -1297,6 +1300,7 @@ private void cmdInterruptActionPerformed(java.awt.event.ActionEvent evt) {//GEN- private void cmdResetChatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmdResetChatActionPerformed this.messages.clear(); this.pnlMessages.removeAll(); + this.taPrompt.setText(this.initialPrompt); ComponentUtils.bumpSplitPane(splitInputOutput); }//GEN-LAST:event_cmdResetChatActionPerformed