I found this prompt to be extremely useful to recover long discussions on chatGPT: "Can you please remind me: what were we trying to do, what have we done so far, what are we trying to do now, and what else shall we do?"