d36021a111
Move the inline ProseMirror comment-mark clear out of the Undo toast's onClick and into the reopen mutation's onSuccess branch. Clearing it eagerly flipped the collab mark to unresolved before the reopen result was known: on a non-404 failure the RQ cache rolls back to resolved but the doc kept an active highlight the panel treats as resolved, and a comment refetch can't heal a divergence that lives in the collab doc. Mirrors the 404 branch's editor-liveness guard/try-catch and the safe await-then-mark pattern in comment-list-item. The button-triggered reopen already sets the mark, so the onSuccess call is an idempotent no-op there. Tests: reopen failure (500) leaves the mark untouched; null editorRef on the success path degrades gracefully. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>