I use Alfred's "restart" command to restart macOS.
I've noticed windows now reopen when logging back in. This only happens when I use Alfred's command, not when restarting via the menu (the option to "Reopen windows when logging back in" is unchecked)—so I'm hoping this is a bug, and something that can be rectified.
What you were doing: Using restart command
Able to replicate: Yes
Alfred version & build number: 5.1.3 [2175]
macOS version: Sonoma 14.0