Skip to content

Fix dev server directory events and output cleanup races. - #16

Merged
koculu merged 5 commits into
mainfrom
stabilize-file-watcher
Oct 6, 2026
Merged

koculu merged 5 commits into
mainfrom
stabilize-file-watcher

Conversation

@koculu

@koculu koculu commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Fix dev server directory events and output cleanup races

Changes

Directory watcher events could trigger an attempt to delete an output directory as a file, causing EISDIR. The resulting setup reset could then remove HTML while a request was reading it, causing ENOENT.

Ignore existing directory notifications, refresh discovery for removed subtrees, and invalidate only known asset files. Setup resets now wait for active responses to finish, while new requests wait until setup completes. Normal requests remain parallel.

Validation

  • Added regression coverage for directory notifications, removed subtrees, and output preservation.
  • Reported errors have not recurred during manual use so far.

@koculu
koculu merged commit e826c23 into main Oct 6, 2026
2 checks passed
@koculu
koculu deleted the stabilize-file-watcher branch October 6, 2026 17:42
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.

1 participant