Document controller's recent files list cleared between versions

I have a document-based app. Whenever I'm publishing a new version on App Store, and even when setting a new build number, my app completely loses the recent files list.

I'm accessing the list using recentDocumentURLs, but the recent documents are also lost from the File -> Recent files menu.

This started happening when I started building my app on Monterey. When built in Big Sur, this doesn't happen. I'm guessing this is not a feature, because other apps don't seem to behave this way when downloading a new update.

I'm guessing something has changed in sandboxing or somewhere else, and I'm missing it?

Document controller's recent files list cleared between versions
 
 
Q