steven-tey / novel

Notion-style WYSIWYG editor with AI-powered autocompletion.
https://novel.sh
Apache License 2.0
13.22k stars 1.08k forks source link

bug: Text selection marks disappear when using the AI Extension w/ Collaboration + HocupocusProvider #408

Open r614 opened 5 months ago

r614 commented 5 months ago

Provide environment information

System:
    OS: macOS 14.4
    CPU: (11) arm64 Apple M3 Pro
    Memory: 1.00 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    bun: 1.1.10 - /private/tmp/bun-node-5102a9443/bun

Describe the bug

When using Novel + Collab, if two people are editing the same document, one person selects a bunch of text and opens the AI rewrite modal. If the other person edits the doc, or select something, the selection highlight for the first person disappears.

Link to reproduction

WIP

To reproduce

Expected Behavior: On Window 1, text remains selected + highlighted Actual Behavior: On Window 1, selected text highlight disappears on the UI, however the extension works as if the text is still selected

Additional information

No response