Confirm no longer works

I updated to the latest version of Photoshop and the confirm command no longer works? It happens to you too if yes, how can you fix it.

now i tried again with prompt and it doesn’t work

confirm("WARNING!!! ALL IMAGES MUST BE CLOSED BEFORE STARTING THE BATCH? ")

Did you check this changelog?

https://developer.adobe.com/photoshop/uxp/2022/ps_reference/changelog/#uxp-v74-integration

" UXP Alerts (alert, prompt, confirm) have been moved back to beta due to a few inherent instabilities in this feature. While we work on addressing these issues, the feature can be accessed using the feature flag enableAlerts in the manifest.json file. Also, note that UXP alerts will be available only in Plugins and not in scripts."

adding enableAlerts flag on your manifest.

I hadn’t seen this documentation,
I fixed the manifest and it works,

thanks for your help
have a nice day