* fix: Allow inline comments on documents without collaborative state
Documents created through the API have no collaborative state until they
are opened in an editor, which made anchored comments fail. Derive the
state from the document content when it is missing.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test: Read comment marks from content instead of decoding state
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test: Read node-anchored comment mark from content
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>