fix bug where when using prompt composition, hijack_comments generated before the final AND will be dropped
diff --git a/modules/processing.py b/modules/processing.py
index f773a30ef84..e6a3129ae69 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -312,6 +312,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
         os.makedirs(p.outpath_grids, exist_ok=True)
 
     modules.sd_hijack.model_hijack.apply_circular(p.tiling)
+    modules.sd_hijack.model_hijack.clear_comments()
 
     comments = {}
 
diff --git a/modules/sd_hijack.py b/modules/sd_hijack.py
index d68f89cc2fb..6a51ab29524 100644
--- a/modules/sd_hijack.py
+++ b/modules/sd_hijack.py
@@ -82,6 +82,9 @@ def apply_circular(self, enable):
         for layer in [layer for layer in self.layers if type(layer) == torch.nn.Conv2d]:
             layer.padding_mode = 'circular' if enable else 'zeros'
 
+    def clear_comments(self):
+        self.comments = []
+
     def tokenize(self, text):
         max_length = self.clip.max_length - 2
         _, remade_batch_tokens, _, _, _, token_count = self.clip.process_text([text])
@@ -263,7 +266,7 @@ def forward(self, text):
             batch_multipliers, remade_batch_tokens, used_custom_terms, hijack_comments, hijack_fixes, token_count = self.process_text(text)
 
         self.hijack.fixes = hijack_fixes
-        self.hijack.comments = hijack_comments
+        self.hijack.comments += hijack_comments
 
         if len(used_custom_terms) > 0:
             self.hijack.comments.append("Used embeddings: " + ", ".join([f'{word} [{checksum}]' for word, checksum in used_custom_terms]))

e.g. if using `embedding1 AND embedding2`, the messages below the image will only show that embedding2 is being used, when in fact both are being used.