Error: The command failed because Photoshop is in a modal state

this error is thrown by core.executeAsModal

No modal dialogs or other plugins are running tho. So what does this even mean?

FYI:

require(‘photoshop’).app.currentDialogMode
“silent”