The store-sync effect re-applied the stored note on every notification, including the echo of the note's own save, reverting text typed after the debounce fired; and closing the panel inside the 800ms debounce dropped the pending save. Add a dirty ref that suppresses the resync while there are unsaved edits, and flush the pending save on unmount. Fixes #18 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA