Hi Ariel NORA
Thank you for reaching out to Microsoft Q&A forum
Based on my research about Office JavaScript API documentation I have found, there is currently no stable method to directly handle comment selection events in the sidebar (comment pane) without relying on preview APIs like onCommentSelected.
That event, along with others such as onCommentDeselected, is specifically designed for detecting when a comment is selected or deselected, including in the pane, but remains in public preview as of late 2025. The stable API supports working with comments via classes like Word.Comment and Word.CommentCollection, including retrieving content through methods like getComments() on a Range object or loading properties such as contentRange on a specific comment. However, these don't include built-in events for pane-specific interactions.
You can read here for more insight:
Therefore, from my perspective view about this context, to handle this without preview APIs, you can try to redesign your add-in to rely on document-body selections by using Document.onSelectionChanged to detect when the user moves the cursor, then call context.document.getSelection().getComments() to load any comments attached to that selection.
Link references: https://github.com/OfficeDev/office-js/issues/2563
Additionally, if your deployment allows switch to the preview build (reference the beta CDN) and implement onCommentSelected for full pane support, which provides CommentEventArgs including the comment ID for direct content retrieval.
Hope my answer will help you, for any further concern, kindly let me know in the comment section.
If the answer is 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.