Previously the sidebar tree refresh was skipped entirely in EDIT mode because the check was gated on activeTab.mode === 'data', which is never true when the structure editor is open. Now we pass a commentChanged flag through the event chain and only refresh the tree when the comment was modified.