Dt is not executing AppleScript

The “Toggle the Sidebar” script is working now (after the above trick). But, the annotation pane Annotation Pane (Annotation with Links, Notes, Tags v3)) is not getting executed.

I have been using it for years. It suddenly stopped working for me. The strange part is it still works when I run it from the Script Editor; BUT not when I run it from DT’s menu (nor from Keyboard Maestro).
The Automation section of my preference looks like this: