You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release v1.0.1 + fix sync clobbering typed edits
The useLinkIndex.updateFile wrapper was dropping its third argument (mtime),
so writeNow's call resolved to mtimes.set(path, undefined) and fell through
to a Date.now() fallback in linkIndex.updateFile. Date.now() is integer ms;
fs.stat.mtimeMs has fractional precision. The watcher's stat then read a
mtime > the stored integer, isFresh fired, and the editor was reloaded from
disk mid-typing — losing the last keystrokes and jumping the cursor.
Fix the wrapper to forward mtime, and remove the misleading Date.now()
fallback in linkIndex so a missing mtime no longer silently corrupts the
self-echo guard. updateFile now preserves existing mtime if called without
one (used by the rename-echo path, where renameFile already carried the
mtime over). renameOps captures the mtime returned from writeFile so the
reference-rewrite path threads the real value through.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>