mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 08:03:39 +00:00
Autosave writes to disk echo back as fs:changed events that were treated as external edits, triggering a setContent reload mid-typing that reset the TipTap selection to the document end (and could drop unsaved keystrokes). Stamp each self-write in a registry so useEditorExternalWatch ignores its own echo, and preserve selection when genuine external edits do arrive.