What I did: See attached screen recording… I folded a heading, then with the cursor at the beginning of the line containing the folded heading pressed the enter key.
What happened: The folded section was expanded, and the heading text was deleted.
What I expected: An empty line to be inserted above the heading. Though I am aware of a related bug where the styling is lost. In this case the text content itself gets deleted.
Things that might be helpful to know (Agenda version, OS and model, etc):
Version 22.3.1 (397) - Mac App Store