Making updates to the prompt template causes the loss of the attachments variable.