
Welcome to Microsoft Q&A Forum.
I understand you're trying to trigger logic in your Angular task pane when the OnMessageSend event is fired, and I can see why that would be a useful and intuitive interaction in your add-in.
Based on the documentation and resources I’ve been able to access, there doesn’t appear to be a supported or official way to communicate directly between the OnMessageSend event handler and a running task pane, as they operate in separate runtimes. As you've noted, using CustomProperties can be a possible workaround, though I understand it may feel a bit clunky given the need for polling from the task pane side. I’m really sorry for the inconvenience this limitation might cause.
I know this might not be the outcome you were hoping for, but I do hope that future updates to the Office.js platform will introduce more flexible and seamless ways to support this kind of communication.
Thank you for your patience and for sharing your scenario in such detail. If you have any other concerns, feel free to reach out again.
If the answer is partially helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.