I wrote about how ChatGPT memory and also the chat history work a while ago.
Figured to share since it also includes prompts on how to dump the info yourself
https://embracethered.com/blog/posts/2025/chatgpt-how-does-c...