Skip to content

fix(watcher): ignore Windows access-only notifications (#1451) - #2050

Merged
colbymchenry merged 2 commits into
mainfrom
fix/1451-windows-atime-edits
Sep 27, 2026
Merged

colbymchenry merged 2 commits into
mainfrom
fix/1451-windows-atime-edits

Conversation

@colbymchenry

Copy link
Copy Markdown
Owner

Problem

Windows NTFS access-time notifications incorrectly marked merely-read files as pending edits.

Fix

Build on #1472 to compare current size and mtime with indexed metadata before recording pending edits on Windows. Preserve scope changes and fail open for unknown, deleted, inaccessible, or unverifiable files. Add native watcher coverage and metadata-failure controls.

Validation

  • Windows VM repro: main exited 1; fix-1451 exited 0, with real writes still detected.
  • npx vitest run __tests__/watcher.test.ts: Windows 58 passed; macOS 51 passed, 7 skipped; Linux Docker 50 passed, 8 skipped.
  • TypeScript checks, builds, and git diff --check passed.

Fixes #1451

🤖 Generated with Claude Code

JJordan0C and others added 2 commits September 27, 2026 10:04
Check indexed size and mtime before recording Windows watcher edits.
Preserve scope reconciliation and fail open when metadata cannot be verified.
Add native Windows regression coverage and validate on Windows, macOS, and Linux.

Co-authored-by: JJordan0K <69581081+JJordan0C@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File reads flagged as edits on Windows (NTFS atime)

2 participants