novel icon indicating copy to clipboard operation
novel copied to clipboard

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

Open r614 opened this issue 8 months ago • 0 comments

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

  • Add a TiptapProvider or HocusPocusProvider to use Collaboration with Novel
  • Open the editor in two windows
  • Add a bunch of text
  • Window 1: highlight bunch of text -> Ask AI -> Stay on the modal
  • Window 2: type/select something, does not have to be the same text as Window 1

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

r614 avatar Jun 11 '24 18:06 r614