When restarting cursor during code submission to git, all chats disappear

When restarting cursor during code submission to git, all chats disappeared

I have a code file marked (workspace). Three weeks ago, when I first started using cursor, I pushed the code to git once
Just now, I wanted to submit the code to git again in cursor, but I forgot to enter the submission text (log), causing the submit button to keep loading, so I wanted to restart cursor to solve the problem. When restarting, a pop-up window asked me if I wanted to save the file (I forgot what it meant specifically). I clicked save, and then restarted cursor. I saw a file marked (workspace) in .git. I clicked it and found that the code file seemed to be reloading, and then all cursor chat records were gone, as if I had opened a new file. I want to know if I can restore the chat records by rolling back the git code?
In addition, if the code cannot be successfully submitted without filling in the log, should this button be disabled first?