Skip to content

1.0.1

Choose a tag to compare

@github-actions github-actions released this 31 May 06:48
· 37 commits to main since this release
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>