The History panel only shows the states for the operations you made during the current working session. If you want to return to the last state, you can click on it.
If you save your work as a cloud document, then you can use the Version History panel.
Or you could also use Lightroom and non-destructively save various versions of settings that you apply to your photos.
What do you mean by a session? I haven't closed my file or photoshop so it's the same session, no?
Yes, a session would be from the time the file is open.
Yes, so I'm still in the same session.
Welcome to the Photoshop Community @Maggie26811090460j. I'll help you figure this out.
What version of Photoshop & the operating system are you working on? Is this a document you were working on & suddenly, the history state got cleared?
History usually goes away when you save a document & open it again. Please share more details about your workflow.
Ensure no stale preferences in your Photoshop. Go to the location of the preference folder below and rename it to backup. https://helpx.adobe.com/photoshop/using/preferences.html
These changes will give a fresh start to Photoshop as a fresh install. Let me know how it goes.
I'm on Photoshop 24.1.1 release. I clicked the history brush state and that's what happened. I haven't closed the Photoshop.
Thank you. I wanted to edit the original post with a different title but couldn't figure out how, that's why created a new post. I apologize.
It seems that I created a snapshot and it erased all my history. Can I get it back?