Can you add `console.log("Subscribing to photoshop event %s", event);` here? Photoshop starts sending buffered menu events before the promise resolves, and this is easier to understand if we log the subscription before Photoshop reacts to it.