mirror of
https://github.com/outline/outline.git
synced 2026-11-29 00:29:36 +03:00
When a document containing an unsent draft comment mark is loaded, the initial collaborative sync applies the content in a transaction after the editor has mounted. The comment mark diffing treated these marks as newly created and focused them, which in turn opened the comments sidebar. Thread the transaction origin through the editor onChange callback and skip focusing comment marks that arrive via remote or sync transactions, so only locally created comment marks focus and open the sidebar. Claude-Session: https://claude.ai/code/session_01LBdKAtGgEJ6RcgrcrXNPQc Co-authored-by: Claude <noreply@anthropic.com>