I found out the answer that is to set autoSend: false in the Generative answer kind: SearchAndSummarizeContent of the code editor. Hope that helps anyone with similar issues.