Fix comment system bugs and add UX improvements
- Fix duplicate renderCommentThreads declaration (caused editor crash)
- Fix reply button: stop click propagation, bypass openCommentForm, set
dummy pendingCommentRange so submitComment proceeds
- Fix reply AT URI map key mismatch: key replies by rkey not full AT URI
- Fix resolve 404: use rootComment.id (ATProto rkey) not threadId
- Fix highlight removal on resolve: reanchorCommentMarks now clears all
marks then re-adds only unresolved ones
- Sort comment threads by document position (top-to-bottom)
- Broadcast comments_updated WS message on create/update for live sync
- Add Comments toggle button to toolbar
- Move comment-form outside editor-page div to fix z-index stacking
- Change "Resolved" resolve button label to "Reopen"
- Inherit threadId in replies; fix reply form positioning
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>